Changeset 16909 for trunk/wp-includes/capabilities.php
- Timestamp:
- 12/14/2010 11:22:32 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r16551 r16909 829 829 if ( ! $post_type->map_meta_cap ) { 830 830 $caps[] = $post_type->cap->$cap; 831 // Prior to 3.1 we would re-call map_meta_cap here. 832 if ( $cap == 'delete_post' ) 833 $cap = $post_type->cap->$cap; 831 834 break; 832 835 } … … 871 874 if ( ! $post_type->map_meta_cap ) { 872 875 $caps[] = $post_type->cap->$cap; 876 // Prior to 3.1 we would re-call map_meta_cap here. 877 if ( $cap == 'edit_post' ) 878 $cap = $post_type->cap->$cap; 873 879 break; 874 880 } … … 912 918 if ( ! $post_type->map_meta_cap ) { 913 919 $caps[] = $post_type->cap->$cap; 920 // Prior to 3.1 we would re-call map_meta_cap here. 921 if ( $cap == 'read_post' ) 922 $cap = $post_type->cap->$cap; 914 923 break; 915 924 }
Note: See TracChangeset
for help on using the changeset viewer.