Make WordPress Core


Ignore:
Timestamp:
11/28/2012 10:28:20 PM (12 years ago)
Author:
nacin
Message:

Use the create_posts post type cap in more places. Remove the janky create_posts meta cap. see #16714.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r22812 r22908  
    7777if ( current_user_can( 'publish_posts' ) )
    7878    $help .= '<p>' . __('<strong>Incoming Links</strong> - Shows links to your site found by Google Blog Search.') . '</p>';
    79 if ( current_user_can( 'create_posts' ) ) {
     79if ( current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
    8080    $help .= '<p>' . __('<strong>QuickPress</strong> - Allows you to create a new post and either publish it or save it as a draft.') . '</p>';
    8181    $help .= '<p>' . __('<strong>Recent Drafts</strong> - Displays links to the 5 most recent draft posts you&#8217;ve started.') . '</p>';
Note: See TracChangeset for help on using the changeset viewer.