Changeset 58069 for trunk/src/wp-admin/revision.php
- Timestamp:
- 05/01/2024 05:59:05 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/revision.php
r56437 r58069 22 22 * @global int $to Optional, required if revision missing. The revision to compare to. 23 23 */ 24 wp_reset_vars( array( 'revision', 'action', 'from', 'to' ) );25 24 26 $revision_id = absint( $revision ); 25 $revision_id = ! empty( $_REQUEST['revision'] ) ? absint( $_REQUEST['revision'] ) : 0; 26 $action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : ''; 27 $from = ! empty( $_REQUEST['from'] ) && is_numeric( $_REQUEST['from'] ) ? absint( $_REQUEST['from'] ) : null; 28 $to = ! empty( $_REQUEST['to'] ) && is_numeric( $_REQUEST['to'] ) ? absint( $_REQUEST['to'] ) : null; 27 29 28 $from = is_numeric( $from ) ? absint( $from ) : null;29 30 if ( ! $revision_id ) { 30 $revision_id = absint( $to );31 $revision_id = $to; 31 32 } 33 32 34 $redirect = 'edit.php'; 33 35
Note: See TracChangeset
for help on using the changeset viewer.