Changeset 19555 for trunk/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 12/06/2011 12:31:11 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-admin-bar.php
r19548 r19555 113 113 114 114 $args = wp_parse_args( $args, $defaults ); 115 116 $back_compat_parents = array( 117 'my-account-with-avatar' => array( 'my-account', '3.3' ), 118 'my-blogs' => array( 'my-sites', '3.3' ), 119 ); 120 121 if ( isset( $back_compat_parents[ $args['parent'] ] ) ) { 122 list( $new_parent, $version ) = $back_compat_parents[ $args['parent'] ]; 123 _deprecated_argument( __METHOD__, $version, sprintf( 'Use <code>%s</code> as the parent for the <code>%s</code> admin bar node instead of <code>%s</code>.', new_parent, $args['id'], $args['parent'] ) ); 124 $args['parent'] = $new_parent; 125 } 115 126 116 127 $this->_set_node( $args );
Note: See TracChangeset
for help on using the changeset viewer.