WordPress.org

Make WordPress Core

Changeset 16463


Ignore:
Timestamp:
11/18/2010 09:51:50 AM (10 years ago)
Author:
nacin
Message:

Second half of [16462]. props duck_. see #15308.

File:
1 edited

Legend:

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

    r16462 r16463  
    197197        if ( true !== $ptype_obj->show_in_menu || ! current_user_can( $ptype_obj->cap->edit_posts ) )
    198198            continue;
    199         $actions["post-new.php?post_type=$ptype"] = array( $ptype_obj->labels->singular_name, $ptype_obj->cap->edit_posts, "new-$ptype" );
     199        $actions[ 'post-new.php?post_type=' . $ptype_obj->name ] = array( $ptype_obj->labels->singular_name, $ptype_obj->cap->edit_posts, 'new-' . $ptype_obj->name );
    200200    }
    201201
Note: See TracChangeset for help on using the changeset viewer.