Changeset 47808 for trunk/src/wp-includes/revision.php
- Timestamp:
- 05/16/2020 06:40:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r47372 r47808 123 123 } 124 124 125 if ( 'auto-draft' == $post->post_status ) {125 if ( 'auto-draft' === $post->post_status ) { 126 126 return; 127 127 } … … 309 309 } 310 310 311 if ( isset( $post['post_type'] ) && 'revision' == $post['post_type'] ) {311 if ( isset( $post['post_type'] ) && 'revision' === $post['post_type'] ) { 312 312 return new WP_Error( 'post_type', __( 'Cannot create a revision of a revision' ) ); 313 313 } … … 617 617 } 618 618 619 if ( empty( $_REQUEST['post_format'] ) || $post->ID != $post_id || 'post_format' != $taxonomy || 'revision' == $post->post_type ) { 619 if ( empty( $_REQUEST['post_format'] ) || $post->ID != $post_id 620 || 'post_format' !== $taxonomy || 'revision' === $post->post_type 621 ) { 620 622 return $terms; 621 623 } 622 624 623 if ( 'standard' == $_REQUEST['post_format'] ) {625 if ( 'standard' === $_REQUEST['post_format'] ) { 624 626 $terms = array(); 625 627 } else { … … 653 655 empty( $_REQUEST['preview_id'] ) || 654 656 $post->ID != $post_id || 655 '_thumbnail_id' != $meta_key ||656 'revision' == $post->post_type ||657 '_thumbnail_id' !== $meta_key || 658 'revision' === $post->post_type || 657 659 $post_id != $_REQUEST['preview_id'] ) { 658 660
Note: See TracChangeset
for help on using the changeset viewer.