Changeset 48624 for trunk/src/wp-admin/revision.php
- Timestamp:
- 07/26/2020 08:41:13 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/revision.php
r47198 r48624 48 48 } 49 49 50 // Restore if revisions are enabled or this isan autosave.50 // Don't restore if revisions are disabled and this is not an autosave. 51 51 if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) { 52 52 $redirect = 'edit.php?post_type=' . $post->post_type; … … 54 54 } 55 55 56 // Don't allow revision restore whenpost is locked.56 // Don't restore if the post is locked. 57 57 if ( wp_check_post_lock( $post->ID ) ) { 58 58 break; … … 62 62 63 63 wp_restore_post_revision( $revision->ID ); 64 64 65 $redirect = add_query_arg( 65 66 array( … … 87 88 } 88 89 89 // Revisions disabled and we're not looking at an autosave.90 // Bail if revisions are disabled and this is not an autosave. 90 91 if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) { 91 92 $redirect = 'edit.php?post_type=' . $post->post_type;
Note: See TracChangeset
for help on using the changeset viewer.