Changeset 55988 for trunk/src/wp-includes/revision.php
- Timestamp:
- 06/22/2023 02:34:56 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/revision.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r55406 r55988 139 139 // Grab the latest revision, but not an autosave. 140 140 foreach ( $revisions as $revision ) { 141 if ( false !== strpos( $revision->post_name, "{$revision->post_parent}-revision" ) ) {141 if ( str_contains( $revision->post_name, "{$revision->post_parent}-revision" ) ) { 142 142 $latest_revision = $revision; 143 143 break; … … 224 224 225 225 for ( $i = 0; isset( $revisions[ $i ] ); $i++ ) { 226 if ( false !== strpos( $revisions[ $i ]->post_name, 'autosave' ) ) {226 if ( str_contains( $revisions[ $i ]->post_name, 'autosave' ) ) { 227 227 continue; 228 228 } … … 314 314 } 315 315 316 if ( false !== strpos( $post->post_name, "{$post->post_parent}-autosave" ) ) {316 if ( str_contains( $post->post_name, "{$post->post_parent}-autosave" ) ) { 317 317 return (int) $post->post_parent; 318 318 }
Note: See TracChangeset
for help on using the changeset viewer.