Changeset 56192 for trunk/src/wp-includes/revision.php
- Timestamp:
- 07/10/2023 10:46:22 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r55988 r56192 191 191 $return = _wp_put_post_revision( $post ); 192 192 193 // If a limit for the number of revisions to keep has been set, 194 // delete the oldest ones. 193 /* 194 * If a limit for the number of revisions to keep has been set, 195 * delete the oldest ones. 196 */ 195 197 $revisions_to_keep = wp_revisions_to_keep( $post ); 196 198 … … 870 872 871 873 if ( ! $locked ) { 872 // Can't write to the lock, and can't read the lock. 873 // Something broken has happened. 874 /* 875 * Can't write to the lock, and can't read the lock. 876 * Something broken has happened. 877 */ 874 878 return false; 875 879 } … … 900 904 } 901 905 902 // 1 is the latest revision version, so we're already up to date. 903 // No need to add a copy of the post as latest revision. 906 /* 907 * 1 is the latest revision version, so we're already up to date. 908 * No need to add a copy of the post as latest revision. 909 */ 904 910 if ( 0 < $this_revision_version ) { 905 911 $add_last = false;
Note: See TracChangeset
for help on using the changeset viewer.