WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/08/2019 01:17:35 PM (2 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-admin-bar.php

    r46642 r46678  
    9191     */
    9292    public function add_menu( $node ) {
    93         _deprecated_function( __METHOD__, '5.4.0', __CLASS__ . '::add_node()' );
    9493        $this->add_node( $node );
    9594    }
     
    104103     */
    105104    public function remove_menu( $id ) {
    106         _deprecated_function( __METHOD__, '5.4.0', __CLASS__ . '::remove_node()' );
    107105        $this->remove_node( $id );
    108106    }
Note: See TracChangeset for help on using the changeset viewer.