Changeset 46498 for branches/4.4/src/wp-includes/pluggable.php
- Timestamp:
- 10/14/2019 07:08:52 PM (6 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
- Property svn:mergeinfo changed
/trunk merged: 46474-46478,46483,46485
- Property svn:mergeinfo changed
-
branches/4.4/src/wp-includes/pluggable.php
r45981 r46498 1102 1102 */ 1103 1103 function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) { 1104 if ( -1 == $action )1105 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2 ' );1104 if ( -1 === $action ) 1105 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); 1106 1106 1107 1107 $adminurl = strtolower(admin_url()); … … 1120 1120 do_action( 'check_admin_referer', $action, $result ); 1121 1121 1122 if ( ! $result && ! ( -1 == $action && strpos( $referer, $adminurl ) === 0 ) ) {1122 if ( ! $result && ! ( -1 === $action && strpos( $referer, $adminurl ) === 0 ) ) { 1123 1123 wp_nonce_ays( $action ); 1124 1124 die(); … … 1145 1145 */ 1146 1146 function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) { 1147 if ( -1 === $action ) 1148 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); 1149 1147 1150 $nonce = ''; 1148 1151 … … 2494 2497 } 2495 2498 endif; 2496
Note: See TracChangeset
for help on using the changeset viewer.