Changeset 62550 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 06/23/2026 01:53:35 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r62353 r62550 1981 1981 1982 1982 // If the new autosave has the same content as the post, delete the autosave. 1983 $autosave_is_different = false; 1984 foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ) as $field ) { 1985 if ( normalize_whitespace( $new_autosave[ $field ] ) !== normalize_whitespace( $post->$field ) ) { 1986 $autosave_is_different = true; 1987 break; 1988 } 1989 } 1983 $fields = array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ); 1984 $autosave_is_different = array_any( $fields, fn( $field ) => normalize_whitespace( $new_autosave[ $field ] ) !== normalize_whitespace( $post->$field ) ); 1990 1985 1991 1986 if ( ! $autosave_is_different ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)