Make WordPress Core

Ticket #25324: 25324.patch

File 25324.patch, 464 bytes (added by nofearinc, 11 years ago)
  • wp-includes/capabilities.php

     
    10751075
    10761076                $post_type = get_post_type_object( $post->post_type );
    10771077
     1078                if( is_null( $post_type ) )
     1079                        break;
     1080               
    10781081                if ( ! $post_type->map_meta_cap ) {
    10791082                        $caps[] = $post_type->cap->$cap;
    10801083                        // Prior to 3.1 we would re-call map_meta_cap here.