wp core update 6.6
This commit is contained in:
@@ -21,14 +21,16 @@ require ABSPATH . 'wp-admin/includes/revision.php';
|
||||
* @global int $from The revision to compare from.
|
||||
* @global int $to Optional, required if revision missing. The revision to compare to.
|
||||
*/
|
||||
wp_reset_vars( array( 'revision', 'action', 'from', 'to' ) );
|
||||
|
||||
$revision_id = absint( $revision );
|
||||
$revision_id = ! empty( $_REQUEST['revision'] ) ? absint( $_REQUEST['revision'] ) : 0;
|
||||
$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
|
||||
$from = ! empty( $_REQUEST['from'] ) && is_numeric( $_REQUEST['from'] ) ? absint( $_REQUEST['from'] ) : null;
|
||||
$to = ! empty( $_REQUEST['to'] ) && is_numeric( $_REQUEST['to'] ) ? absint( $_REQUEST['to'] ) : null;
|
||||
|
||||
$from = is_numeric( $from ) ? absint( $from ) : null;
|
||||
if ( ! $revision_id ) {
|
||||
$revision_id = absint( $to );
|
||||
$revision_id = $to;
|
||||
}
|
||||
|
||||
$redirect = 'edit.php';
|
||||
|
||||
switch ( $action ) {
|
||||
|
||||
Reference in New Issue
Block a user