mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Docs: Improve inline comments per the documentation standards.
Includes minor code layout fixes for better readability. See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -53,7 +53,7 @@ switch ( $action ) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Don't allow revision restore when post is locked
|
||||
// Don't allow revision restore when post is locked.
|
||||
if ( wp_check_post_lock( $post->ID ) ) {
|
||||
break;
|
||||
}
|
||||
@@ -86,7 +86,7 @@ switch ( $action ) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Revisions disabled and we're not looking at an autosave
|
||||
// Revisions disabled and we're not looking at an autosave.
|
||||
if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) {
|
||||
$redirect = 'edit.php?post_type=' . $post->post_type;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user