Make WordPress Core


Ignore:
Timestamp:
10/24/2012 10:15:43 PM (13 years ago)
Author:
ryan
Message:

Use the create_posts capability in more places.

In get_post_type_capabilities(), make sure create_posts reflects customizations to the edit_posts capability when create_posts is not specifically set.

File:
1 edited

Legend:

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

    r22089 r22291  
    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( 'edit_posts' ) ) {
     79if ( current_user_can( '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.