Make WordPress Core

Ticket #26366: 26366.diff

File 26366.diff, 470 bytes (added by carldanley, 11 years ago)
  • wp-includes/capabilities.php

     
    11131113
    11141114                $post_type = get_post_type_object( $post->post_type );
    11151115
     1116                if( is_null( $post_type ) ) {
     1117                        break;
     1118                }
     1119
    11161120                if ( ! $post_type->map_meta_cap ) {
    11171121                        $caps[] = $post_type->cap->$cap;
    11181122                        // Prior to 3.1 we would re-call map_meta_cap here.