Make WordPress Core

Ticket #37580: 37580.diff

File 37580.diff, 533 bytes (added by JakePT, 8 years ago)
  • wp-includes/capabilities.php

     
    6767                        }
    6868                }
    6969
     70                if ( ( get_option( 'page_for_posts' ) == $post->ID ) || ( get_option( 'page_on_front' ) == $post->ID ) ) {
     71                        $caps[] = 'manage_options';
     72                        break;
     73                }
     74
    7075                $post_type = get_post_type_object( $post->post_type );
    7176                if ( ! $post_type ) {
    7277                        /* translators: 1: post type, 2: capability name */