| 116 | $back_compat_parents = array( |
| 117 | 'my-account' => array( 'account', '3.3' ); |
| 118 | 'my-account-with-avatar' => array( 'account', '3.3' ), |
| 119 | 'my-blogs' => array( 'my-sites', '3.3' ), |
| 120 | ); |
| 121 | |
| 122 | if ( isset( $back_compat_parents[ $args['parent'] ] ) ) { |
| 123 | list( $new_parent, $version ) = $back_compat_parents[ $args['parent'] ]; |
| 124 | _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'] ) ); |
| 125 | $args['parent'] = $new_parent; |
| 126 | } |
| 127 | |