Remove code that is dead as of [19523].
git-svn-id: http://svn.automattic.com/wordpress/trunk@19526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c06518a851
commit
2cee887c0b
|
@ -503,10 +503,9 @@ function wp_admin_bar_new_content_menu( $wp_admin_bar ) {
|
||||||
|
|
||||||
foreach ( $actions as $link => $action ) {
|
foreach ( $actions as $link => $action ) {
|
||||||
list( $title, $id ) = $action;
|
list( $title, $id ) = $action;
|
||||||
$parent = empty( $action[2] ) ? 'new-content' : $action[2];
|
|
||||||
|
|
||||||
$wp_admin_bar->add_menu( array(
|
$wp_admin_bar->add_menu( array(
|
||||||
'parent' => $parent,
|
'parent' => 'new-content',
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'href' => admin_url( $link )
|
'href' => admin_url( $link )
|
||||||
|
|
Loading…
Reference in New Issue