diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index eac359630b..da542293dd 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -67,6 +67,11 @@ function map_meta_cap( $cap, $user_id ) { } } + if ( ( get_option( 'page_for_posts' ) == $post->ID ) || ( get_option( 'page_on_front' ) == $post->ID ) ) { + $caps[] = 'manage_options'; + break; + } + $post_type = get_post_type_object( $post->post_type ); if ( ! $post_type ) { /* translators: 1: post type, 2: capability name */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 730e474090..4d1501643a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38377'; +$wp_version = '4.7-alpha-38378'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.