Changeset 45583 for trunk/src/wp-admin/includes/revision.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/revision.php
r43571 r45583 21 21 */ 22 22 function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) { 23 if ( ! $post = get_post( $post ) ) { 23 $post = get_post( $post ); 24 if ( ! $post ) { 24 25 return false; 25 26 } 26 27 27 28 if ( $compare_from ) { 28 if ( ! $compare_from = get_post( $compare_from ) ) { 29 $compare_from = get_post( $compare_from ); 30 if ( ! $compare_from ) { 29 31 return false; 30 32 } … … 34 36 } 35 37 36 if ( ! $compare_to = get_post( $compare_to ) ) { 38 $compare_to = get_post( $compare_to ); 39 if ( ! $compare_to ) { 37 40 return false; 38 41 }
Note: See TracChangeset
for help on using the changeset viewer.