WordPress.org

Make WordPress Core

Ticket #9674: 9674_pluralcaps.diff

File 9674_pluralcaps.diff, 570 bytes (added by technosailor, 6 years ago)
  • wp-admin/post-new.php

     
    4949} 
    5050 
    5151// Show post form. 
    52 if ( current_user_can('edit_' . $post_type_object->capability_type . 's') ) { 
     52if ( ( $post_type == 'edit' && current_user_can('edit_' . $post_type_object->capability_type . 's') ) || current_user_can( 'edit_' . $post_type_object->capability_type )  ) { 
    5353        $post = get_default_post_to_edit( $post_type ); 
    5454        include('edit-form-advanced.php'); 
    5555}