Make WordPress Core

Changeset 21088


Ignore:
Timestamp:
06/15/2012 05:54:13 PM (13 years ago)
Author:
markjaquith
Message:

Fix warning when processing read_post cap. Props duck_. fixes #20917 for the 3.3 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/wp-includes/capabilities.php

    r21085 r21088  
    10841084            $caps[] = $post_type->cap->read_private_posts;
    10851085        else
    1086             $caps[] = map_meta_cap( 'edit_post', $user_id, $post->ID );
     1086            $caps = map_meta_cap( 'edit_post', $user_id, $post->ID );
    10871087        break;
    10881088    case 'edit_post_meta':
Note: See TracChangeset for help on using the changeset viewer.