| 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 | } |
| 126 | |