Ticket #17470: patch.diff
File patch.diff, 1.2 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/post.php
1284 1284 } 1285 1285 1286 1286 /** 1287 * Outputs the notice message to say that this page is used for posts and content will be ignored. 1288 * 1289 * @since 3.2 1290 * @return none 1291 */ 1292 function _admin_notice_page_for_posts() { 1293 $message = __( 'This page is used to display a list of posts; content here will not be displayed. You can change this in your <a href="%s">Reading Settings</a>.' ); 1294 echo '<div class="error"><p>' . sprintf( $message, esc_url( admin_url( 'options-reading.php' ) ) ) . '</p></div>'; 1295 } 1296 1297 /** 1287 1298 * Creates autosave data for the specified post from $_POST data. 1288 1299 * 1289 1300 * @package WordPress -
wp-admin/post.php
176 176 wp_enqueue_script('autosave'); 177 177 } 178 178 179 if ( $post_id == get_option( 'page_for_posts' ) ) { 180 add_action( 'admin_notices', '_admin_notice_page_for_posts' ); 181 } 182 179 183 $title = $post_type_object->labels->edit_item; 180 184 $post = get_post_to_edit($post_id); 181 185