Make WordPress Core


Ignore:
Timestamp:
07/26/2020 08:41:13 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Synchronize some comments in wp-admin/revision.php.

See #49572.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/revision.php

    r47198 r48624  
    4848        }
    4949
    50         // Restore if revisions are enabled or this is an autosave.
     50        // Don't restore if revisions are disabled and this is not an autosave.
    5151        if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) {
    5252            $redirect = 'edit.php?post_type=' . $post->post_type;
     
    5454        }
    5555
    56         // Don't allow revision restore when post is locked.
     56        // Don't restore if the post is locked.
    5757        if ( wp_check_post_lock( $post->ID ) ) {
    5858            break;
     
    6262
    6363        wp_restore_post_revision( $revision->ID );
     64
    6465        $redirect = add_query_arg(
    6566            array(
     
    8788        }
    8889
    89         // Revisions disabled and we're not looking at an autosave.
     90        // Bail if revisions are disabled and this is not an autosave.
    9091        if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) {
    9192            $redirect = 'edit.php?post_type=' . $post->post_type;
Note: See TracChangeset for help on using the changeset viewer.