WordPress.org

Make WordPress Core

Changeset 11961


Ignore:
Timestamp:
09/23/2009 06:51:19 AM (9 years ago)
Author:
westi
Message:

Fix notice in wp_explain_nonce when the supplied action has no extra text. See #10830.

File:
1 edited

Legend:

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

    r11945 r11961  
    24082408        }
    24092409
    2410         return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), $matches[4] );
     2410        return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), isset($matches[4]) ? $matches[4] : '' );
    24112411    } else {
    24122412        return apply_filters( 'explain_nonce_' . $action, __( 'Are you sure you want to do this?' ) );
Note: See TracChangeset for help on using the changeset viewer.