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:
Sergey Biryukov
2020-01-29 00:43:23 +00:00
parent bd2cd572aa
commit cfc3b57488
810 changed files with 9893 additions and 8384 deletions
+2 -2
View File
@@ -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;