WordPress.org

Make WordPress Core

Ticket #4221: patch.diff

File patch.diff, 791 bytes (added by filosofo, 11 years ago)
  • wp-includes/functions.php

     
    10231023        return $install_status;
    10241024}
    10251025
    1026 function wp_nonce_url($actionurl, $action = -1) {
    1027         return wp_specialchars(add_query_arg('_wpnonce', wp_create_nonce($action), $actionurl));
     1026function wp_nonce_url($actionurl, $action = -1, $special_chars = true) {
     1027        $url = add_query_arg('_wpnonce', wp_create_nonce($action), $actionurl);
     1028        return ( $special_chars ) ? wp_specialchars( $url ) : $url;
    10281029}
    10291030
    10301031function wp_nonce_field($action = -1, $name = "_wpnonce", $referer = true) {
     
    15151516        $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' );
    15161517}