Ticket #22312: 22312.diff
File 22312.diff, 504 bytes (added by , 12 years ago) |
---|
-
wp-includes/capabilities.php
1073 1073 } 1074 1074 1075 1075 $post_type = get_post_type_object( $post->post_type ); 1076 1076 if ( is_null( $post_type ) ) { 1077 $caps[] = 'do_not_allow'; 1078 break; 1079 } 1077 1080 if ( ! $post_type->map_meta_cap ) { 1078 1081 $caps[] = $post_type->cap->$cap; 1079 1082 // Prior to 3.1 we would re-call map_meta_cap here.