WordPress.org

Make WordPress Core

Changeset 16910


Ignore:
Timestamp:
12/14/10 11:25:11 (3 years ago)
Author:
nacin
Message:

I have CDO. see #15779.

File:
1 edited

Legend:

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

    r16909 r16910  
    830830            $caps[] = $post_type->cap->$cap; 
    831831            // Prior to 3.1 we would re-call map_meta_cap here. 
    832             if ( $cap == 'delete_post' ) 
     832            if ( 'delete_post' == $cap ) 
    833833                $cap = $post_type->cap->$cap; 
    834834            break; 
     
    875875            $caps[] = $post_type->cap->$cap; 
    876876            // Prior to 3.1 we would re-call map_meta_cap here. 
    877             if ( $cap == 'edit_post' ) 
     877            if ( 'edit_post' == $cap ) 
    878878                $cap = $post_type->cap->$cap; 
    879879            break; 
     
    919919            $caps[] = $post_type->cap->$cap; 
    920920            // Prior to 3.1 we would re-call map_meta_cap here. 
    921             if ( $cap == 'read_post' ) 
     921            if ( 'read_post' == $cap ) 
    922922                $cap = $post_type->cap->$cap; 
    923923            break; 
Note: See TracChangeset for help on using the changeset viewer.