Ticket #37580: 37580.diff
File 37580.diff, 533 bytes (added by , 8 years ago) |
---|
-
wp-includes/capabilities.php
67 67 } 68 68 } 69 69 70 if ( ( get_option( 'page_for_posts' ) == $post->ID ) || ( get_option( 'page_on_front' ) == $post->ID ) ) { 71 $caps[] = 'manage_options'; 72 break; 73 } 74 70 75 $post_type = get_post_type_object( $post->post_type ); 71 76 if ( ! $post_type ) { 72 77 /* translators: 1: post type, 2: capability name */