mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Toolbar: Un-deprecate the WP_Admin_Bar::add_menu() method.
This is only a wrapper for the `add_node()` method, but it's in widespread use both in core until [46642] and in thousands of plugins and themes. Deprecating it would have made sense when #19647 was originally opened but that's no longer the case. Props whyisjake Fixes #19647 git-svn-id: https://develop.svn.wordpress.org/trunk@46678 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -90,7 +90,6 @@ class WP_Admin_Bar {
|
||||
* @param array $node The attributes that define the node.
|
||||
*/
|
||||
public function add_menu( $node ) {
|
||||
_deprecated_function( __METHOD__, '5.4.0', __CLASS__ . '::add_node()' );
|
||||
$this->add_node( $node );
|
||||
}
|
||||
|
||||
@@ -103,7 +102,6 @@ class WP_Admin_Bar {
|
||||
* @param string $id The menu slug to remove.
|
||||
*/
|
||||
public function remove_menu( $id ) {
|
||||
_deprecated_function( __METHOD__, '5.4.0', __CLASS__ . '::remove_node()' );
|
||||
$this->remove_node( $id );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user