WordPress.org

Make WordPress Core

Changeset 21060


Ignore:
Timestamp:
06/12/12 13:50:51 (3 years ago)
Author:
ryan
Message:

Fix warning when processing read_post cap. Props duck_. fixes #20917

File:
1 edited

Legend:

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

    r21046 r21060  
    10951095            $caps[] = $post_type->cap->read_private_posts; 
    10961096        else 
    1097             $caps[] = map_meta_cap( 'edit_post', $user_id, $post->ID ); 
     1097            $caps = map_meta_cap( 'edit_post', $user_id, $post->ID ); 
    10981098        break; 
    10991099    case 'edit_post_meta': 
Note: See TracChangeset for help on using the changeset viewer.