Changeset 56359
- Timestamp:
- 08/04/2023 11:56:16 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r56192 r56359 769 769 } 770 770 771 if ( empty( $_REQUEST['post_format'] ) || $post->ID != $post_id771 if ( empty( $_REQUEST['post_format'] ) || $post->ID !== $post_id 772 772 || 'post_format' !== $taxonomy || 'revision' === $post->post_type 773 773 ) { … … 779 779 } else { 780 780 $term = get_term_by( 'slug', 'post-format-' . sanitize_key( $_REQUEST['post_format'] ), 'post_format' ); 781 781 782 if ( $term ) { 782 783 $terms = array( $term ); // Can only have one post format. … … 805 806 } 806 807 807 if ( empty( $_REQUEST['_thumbnail_id'] ) || 808 empty( $_REQUEST['preview_id'] ) || 809 $post->ID != $post_id || 810 '_thumbnail_id' !== $meta_key || 811 'revision' === $post->post_type || 812 $post_id != $_REQUEST['preview_id'] ) { 813 808 if ( empty( $_REQUEST['_thumbnail_id'] ) || empty( $_REQUEST['preview_id'] ) 809 || $post->ID !== $post_id || $post_id !== (int) $_REQUEST['preview_id'] 810 || '_thumbnail_id' !== $meta_key || 'revision' === $post->post_type 811 ) { 814 812 return $value; 815 813 }
Note: See TracChangeset
for help on using the changeset viewer.