Ticket #26366: 26366.diff
File 26366.diff, 470 bytes (added by , 11 years ago) |
---|
-
wp-includes/capabilities.php
1113 1113 1114 1114 $post_type = get_post_type_object( $post->post_type ); 1115 1115 1116 if( is_null( $post_type ) ) { 1117 break; 1118 } 1119 1116 1120 if ( ! $post_type->map_meta_cap ) { 1117 1121 $caps[] = $post_type->cap->$cap; 1118 1122 // Prior to 3.1 we would re-call map_meta_cap here.