WordPress.org

Make WordPress Core

Changeset 18195


Ignore:
Timestamp:
06/08/2011 04:56:26 PM (9 years ago)
Author:
markjaquith
Message:

Throw _doing_it_wrong() when nonce action not passed to check_admin_referer(). props duck_. see #16449

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r18006 r18195  
    867867 */
    868868function check_admin_referer($action = -1, $query_arg = '_wpnonce') {
     869    if ( -1 == $action )
     870        _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2' );
     871
    869872    $adminurl = strtolower(admin_url());
    870873    $referer = strtolower(wp_get_referer());
Note: See TracChangeset for help on using the changeset viewer.