Skip to content

Commit

Permalink
Move all i18n calls to init action as per WP 6.7
Browse files Browse the repository at this point in the history
See #477
  • Loading branch information
lightningspirit committed Nov 14, 2024
1 parent cbaa556 commit 5ba0fec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HealthCheck/class-health-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct() {
* @return void
*/
public function init() {
add_action( 'plugins_loaded', array( $this, 'load_i18n' ) );
add_action( 'init', array( $this, 'load_i18n' ) );

add_filter( 'plugin_action_links', array( $this, 'troubleshoot_plugin_action' ), 20, 4 );
add_filter( 'plugin_action_links_' . plugin_basename( HEALTH_CHECK_PLUGIN_FILE ), array( $this, 'page_plugin_action' ) );
Expand Down
2 changes: 1 addition & 1 deletion health-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}

add_action(
'plugins_loaded',
'init',
function() {
// Include class-files used by our plugin.
require_once( dirname( __FILE__ ) . '/HealthCheck/class-health-check.php' );
Expand Down

0 comments on commit 5ba0fec

Please sign in to comment.