Make WordPress Core

Changeset 21258


Ignore:
Timestamp:
07/10/2012 08:46:22 PM (13 years ago)
Author:
nacin
Message:

Admin bar: Avoid clash with a parent node and a 'content' post type. see #21117.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r21028 r21258  
    509509        $actions[ $key ] = array( $cpt->labels->name_admin_bar, 'new-' . $cpt->name );
    510510    }
     511    // Avoid clash with parent node and a 'content' post type.
     512    if ( isset( $actions['post-new.php?post_type=content'] ) )
     513        $actions['post-new.php?post_type=content'][1] = 'add-new-content';
    511514
    512515    if ( current_user_can( 'create_users' ) || current_user_can( 'promote_users' ) )
Note: See TracChangeset for help on using the changeset viewer.