WordPress.org

Make WordPress Core

Changeset 16387


Ignore:
Timestamp:
11/15/10 17:11:34 (3 years ago)
Author:
nacin
Message:

capability_type = page and no custom caps should also kick on map_meta_cap. see #14122.

File:
1 edited

Legend:

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

    r16365 r16387  
    918918 
    919919    // Back compat with quirky handling in version 3.0. #14122 
    920     if ( 'post' == $args->capability_type && null === $args->map_meta_cap && empty( $args->capabilities ) ) 
     920    if ( empty( $args->capabilities ) && null === $args->map_meta_cap && in_array( $args->capability_type, array( 'post', 'page' ) ) ) 
    921921        $args->map_meta_cap = true; 
    922922 
Note: See TracChangeset for help on using the changeset viewer.