We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ab200 commit b6fc7bbCopy full SHA for b6fc7bb
inc/packages/admin/namespace.php
@@ -41,7 +41,11 @@ function bootstrap() {
41
add_filter( 'wp_list_table_class_name', __NAMESPACE__ . '\\maybe_override_list_table' );
42
43
// Needed for pre WordPress 6.9 compatibility.
44
- add_action( 'install_plugins_featured', __NAMESPACE__ . '\\replace_featured_message', 5 );
+ global $wp_version;
45
+ if ( version_compare( $wp_version, '6.9-beta1', '<' ) ) {
46
+ add_action( 'install_plugins_featured', __NAMESPACE__ . '\\replace_featured_message' );
47
+ add_action( 'admin_init', fn() => remove_action( 'install_plugins_featured', 'install_dashboard' ) );
48
+ }
49
}
50
51
/**
0 commit comments