PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | src/frontend/frontend-filters-search.php +2 -8 3.8.9 → trunk View file →
@@ -94,16 +94,10 @@
94 94 *
95 95 * @return void
96 96 */
97 97 public function add_admin_bar_menus() {
98 - // Backward compatibility with WP < 6.6. The priority was 4 before this version, 9999 since then.
99 - $priority = has_action( 'admin_bar_menu', 'wp_admin_bar_search_menu' );
100 - if ( ! is_int( $priority ) ) {
101 - return;
102 - }
103 -
104 - remove_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', $priority );
105 - add_action( 'admin_bar_menu', array( $this, 'admin_bar_search_menu' ), $priority );
98 + remove_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 9999 );
99 + add_action( 'admin_bar_menu', array( $this, 'admin_bar_search_menu' ), 9999 );
106 100 }
107 101
108 102 /**
109 103 * Rewrites the admin bar search form to pass our get_search_form filter. See #21342.