WordPress.org

Make WordPress Core

Ticket #4221: wp-includes_functions.php.diff

File wp-includes_functions.php.diff, 829 bytes (added by filosofo, 14 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}
    15171518
    1518 ?>
    1519  No newline at end of file
     1519?>