Changeset 31550
- Timestamp:
- 02/26/2015 02:46:40 AM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r31131 r31550 45 45 $user_ID = isset($user_ID) ? (int) $user_ID : 0; 46 46 $action = isset($action) ? $action : ''; 47 48 if ( $post_ID == get_option( 'page_for_posts' ) && empty( $post->post_content ) ) { 49 add_action( 'edit_form_after_title', '_wp_posts_page_notice' ); 50 remove_post_type_support( $post_type, 'editor' ); 51 } 47 52 48 53 $thumbnail_support = current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports( $post_type, 'thumbnail' ); -
trunk/src/wp-admin/includes/meta-boxes.php
r31331 r31550 740 740 } // end empty pages check 741 741 } // end hierarchical check. 742 if ( 'page' == $post->post_type && 0 != count( get_page_templates( $post ) ) ) {742 if ( 'page' == $post->post_type && 0 != count( get_page_templates( $post ) ) && get_option( 'page_for_posts' ) != $post->ID ) { 743 743 $template = !empty($post->page_template) ? $post->page_template : false; 744 744 ?> -
trunk/src/wp-admin/includes/template.php
r31446 r31550 2170 2170 echo '</div>'; 2171 2171 } 2172 2173 /** 2174 * Output a notice when editing the page for posts. 2175 * 2176 * @since 4.2.0 2177 */ 2178 function _wp_posts_page_notice() { 2179 echo '<div class="notice notice-warning inline"><p>' . __( 'You are currently editing the page that shows your latest posts.' ) . '</p></div>'; 2180 }
Note: See TracChangeset
for help on using the changeset viewer.