diff --git src/wp-includes/functions.php src/wp-includes/functions.php
index 32fe225..d62e0b2 100644
|
|
|
function is_blog_installed() { |
| 1197 | 1197 | * @return string Escaped URL with nonce action added. |
| 1198 | 1198 | */ |
| 1199 | 1199 | function wp_nonce_url( $actionurl, $action = -1, $name = '_wpnonce' ) { |
| | 1200 | if ( -1 == $action ) |
| | 1201 | _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action as the second parameter.' ), '3.9' ); |
| | 1202 | |
| 1200 | 1203 | $actionurl = str_replace( '&', '&', $actionurl ); |
| 1201 | 1204 | return esc_html( add_query_arg( $name, wp_create_nonce( $action ), $actionurl ) ); |
| 1202 | 1205 | } |
| … |
… |
function wp_nonce_url( $actionurl, $action = -1, $name = '_wpnonce' ) { |
| 1230 | 1233 | * @return string Nonce field. |
| 1231 | 1234 | */ |
| 1232 | 1235 | function wp_nonce_field( $action = -1, $name = "_wpnonce", $referer = true , $echo = true ) { |
| | 1236 | if ( -1 == $action ) |
| | 1237 | _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action as the first parameter.' ), '3.9' ); |
| | 1238 | |
| 1233 | 1239 | $name = esc_attr( $name ); |
| 1234 | 1240 | $nonce_field = '<input type="hidden" id="' . $name . '" name="' . $name . '" value="' . wp_create_nonce( $action ) . '" />'; |
| 1235 | 1241 | |
diff --git src/wp-includes/pluggable.php src/wp-includes/pluggable.php
index 9fe26d5..b739bc4 100644
|
|
|
if ( !function_exists('check_ajax_referer') ) : |
| 828 | 828 | * @param string $query_arg where to look for nonce in $_REQUEST (since 2.5) |
| 829 | 829 | */ |
| 830 | 830 | function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) { |
| | 831 | if ( -1 == $action ) |
| | 832 | _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.9' ); |
| | 833 | |
| 831 | 834 | $nonce = ''; |
| 832 | 835 | |
| 833 | 836 | if ( $query_arg && isset( $_REQUEST[ $query_arg ] ) ) |