Ticket #4221: patch.diff
| File patch.diff, 791 bytes (added by , 19 years ago) |
|---|
-
wp-includes/functions.php
1023 1023 return $install_status; 1024 1024 } 1025 1025 1026 function wp_nonce_url($actionurl, $action = -1) { 1027 return wp_specialchars(add_query_arg('_wpnonce', wp_create_nonce($action), $actionurl)); 1026 function 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; 1028 1029 } 1029 1030 1030 1031 function wp_nonce_field($action = -1, $name = "_wpnonce", $referer = true) { … … 1515 1516 $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' ); 1516 1517 }