Changeset 47122 for trunk/src/wp-admin/edit-form-advanced.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/edit-form-advanced.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r47088 r47122 7 7 */ 8 8 9 // don't load directly9 // Don't load directly. 10 10 if ( ! defined( 'ABSPATH' ) ) { 11 11 die( '-1' ); … … 96 96 } 97 97 98 // Add the local autosave notice HTML 98 // Add the local autosave notice HTML. 99 99 add_action( 'admin_footer', '_local_storage_notice' ); 100 100 … … 243 243 $form_extra .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr( $post_ID ) . "' />"; 244 244 245 // Detect if there exists an autosave newer than the post and if that autosave is different than the post 245 // Detect if there exists an autosave newer than the post and if that autosave is different than the post. 246 246 if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) { 247 247 foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) {
Note: See TracChangeset
for help on using the changeset viewer.