Ticket #25324: 25324.patch
File 25324.patch, 464 bytes (added by , 11 years ago) |
---|
-
wp-includes/capabilities.php
1075 1075 1076 1076 $post_type = get_post_type_object( $post->post_type ); 1077 1077 1078 if( is_null( $post_type ) ) 1079 break; 1080 1078 1081 if ( ! $post_type->map_meta_cap ) { 1079 1082 $caps[] = $post_type->cap->$cap; 1080 1083 // Prior to 3.1 we would re-call map_meta_cap here.