Changeset 46497 for branches/4.5/src/wp-includes/pluggable.php
- Timestamp:
- 10/14/2019 07:06:04 PM (7 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/pluggable.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/trunk merged: 46474-46478,46483,46485
- Property svn:mergeinfo changed
-
branches/4.5/src/wp-includes/pluggable.php
r45980 r46497 1045 1045 */ 1046 1046 function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) { 1047 if ( -1 == $action )1048 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2 ' );1047 if ( -1 === $action ) 1048 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); 1049 1049 1050 1050 $adminurl = strtolower(admin_url()); … … 1063 1063 do_action( 'check_admin_referer', $action, $result ); 1064 1064 1065 if ( ! $result && ! ( -1 == $action && strpos( $referer, $adminurl ) === 0 ) ) {1065 if ( ! $result && ! ( -1 === $action && strpos( $referer, $adminurl ) === 0 ) ) { 1066 1066 wp_nonce_ays( $action ); 1067 1067 die(); … … 1088 1088 */ 1089 1089 function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) { 1090 if ( -1 === $action ) 1091 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); 1092 1090 1093 $nonce = ''; 1091 1094 … … 2448 2451 } 2449 2452 endif; 2450
Note: See TracChangeset
for help on using the changeset viewer.