Changeset 46477 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 10/14/2019 03:38:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r46472 r46477 1107 1107 */ 1108 1108 function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) { 1109 if ( -1 == $action ) {1109 if ( -1 === $action ) { 1110 1110 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); 1111 1111 } … … 1126 1126 do_action( 'check_admin_referer', $action, $result ); 1127 1127 1128 if ( ! $result && ! ( -1 == $action && strpos( $referer, $adminurl ) === 0 ) ) {1128 if ( ! $result && ! ( -1 === $action && strpos( $referer, $adminurl ) === 0 ) ) { 1129 1129 wp_nonce_ays( $action ); 1130 1130 die();
Note: See TracChangeset
for help on using the changeset viewer.