Changeset 46642 for trunk/src/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 11/03/2019 10:12:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-admin-bar.php
r46140 r46642 83 83 84 84 /** 85 * @param array $node 85 * Add a node (menu item) to the Admin Bar menu. 86 * 87 * @since 3.3.0 88 * @since 5.4.0 Deprecated in favor of {@see WP_Admin_Bar::add_node()}. 89 * 90 * @param array $node The attributes that define the node. 86 91 */ 87 92 public function add_menu( $node ) { 93 _deprecated_function( __METHOD__, '5.4.0', __CLASS__ . '::add_node()' ); 88 94 $this->add_node( $node ); 89 95 } 90 96 91 97 /** 92 * @param string $id 98 * Remove a node from the admin bar. 99 * 100 * @since 3.1.0 101 * @since 5.4.0 Deprecated in favor of {@see WP_Admin_Bar::remove_node()}. 102 * 103 * @param string $id The menu slug to remove. 93 104 */ 94 105 public function remove_menu( $id ) { 106 _deprecated_function( __METHOD__, '5.4.0', __CLASS__ . '::remove_node()' ); 95 107 $this->remove_node( $id ); 96 108 }
Note: See TracChangeset
for help on using the changeset viewer.