Skip to content

Commit

Permalink
Social: Call Publicize_UI::init on admin_init instead of on init (#39342
Browse files Browse the repository at this point in the history
)

* Call Publicize_UI::init on admin_init

* changelog
  • Loading branch information
oskosk authored Sep 11, 2024
1 parent 1ea6041 commit 618b702
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Moved initialization of Publicize UI from init action to admin_init action
2 changes: 1 addition & 1 deletion projects/packages/publicize/src/class-publicize-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct() {
}
$this->publicize = $publicize;

add_action( 'init', array( $this, 'init' ) );
add_action( 'admin_init', array( $this, 'init' ) );
}

/**
Expand Down

0 comments on commit 618b702

Please sign in to comment.