WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/10/2010 02:50:14 PM (10 years ago)
Author:
nacin
Message:

Cripple capability_type. Produced inconsistent, janky meta cap mapping; now only acts as a capability base. see #14122.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r16268 r16273  
    843843 * - menu_position - The position in the menu order the post type should appear. Defaults to the bottom.
    844844 * - menu_icon - The url to the icon to be used for this menu. Defaults to use the posts icon.
    845  * - capability_type - The post type to use for checking read, edit, and delete capabilities. Defaults to 'post'.
     845 * - capability_type - The string to use to build the read, edit, and delete capabilities. Defaults to 'post'.
    846846 *   May be passed as an array to allow for alternative plurals when using this argument as a base to construct the
    847847 *   capabilities, e.g. array('story', 'stories').
     
    917917    if ( null === $args->exclude_from_search )
    918918        $args->exclude_from_search = !$args->public;
    919 
    920     if ( empty($args->capability_type) )
    921         $args->capability_type = 'post';
    922919
    923920    $args->cap = get_post_type_capabilities( $args );
Note: See TracChangeset for help on using the changeset viewer.