Changeset 46501 for branches/4.1/src/wp-includes/pluggable.php
- Timestamp:
- 10/14/2019 07:16:30 PM (5 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
- Property svn:mergeinfo changed
/trunk merged: 46474-46478,46483,46485
- Property svn:mergeinfo changed
-
branches/4.1/src/wp-includes/pluggable.php
r45984 r46501 1064 1064 * @param string $query_arg Where to look for nonce in $_REQUEST (since 2.5) 1065 1065 */ 1066 function check_admin_referer( $action = -1, $query_arg = '_wpnonce') {1067 if ( -1 == $action )1068 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2 ' );1066 function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) { 1067 if ( -1 === $action ) 1068 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); 1069 1069 1070 1070 $adminurl = strtolower(admin_url()); … … 1085 1085 */ 1086 1086 do_action( 'check_admin_referer', $action, $result ); 1087 1088 if ( ! $result && ! ( -1 === $action && strpos( $referer, $adminurl ) === 0 ) ) { 1089 wp_nonce_ays( $action ); 1090 die(); 1091 } 1092 1087 1093 return $result; 1088 1094 } … … 1099 1105 */ 1100 1106 function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) { 1107 if ( -1 === $action ) 1108 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); 1109 1101 1110 $nonce = ''; 1102 1111 … … 2290 2299 } 2291 2300 endif; 2292
Note: See TracChangeset
for help on using the changeset viewer.