Changeset 5056 for trunk/wp-includes/functions.php
- Timestamp:
- 03/17/2007 08:46:59 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r5044 r5056 1273 1273 $adminurl = get_option('siteurl') . '/wp-admin'; 1274 1274 if ( wp_get_referer() ) 1275 $adminurl = attribute_escape(wp_get_referer());1275 $adminurl = clean_url(wp_get_referer()); 1276 1276 1277 1277 $title = __('WordPress Confirmation'); … … 1290 1290 $html .= "\t\t<div id='message' class='confirm fade'>\n\t\t<p>" . wp_specialchars(wp_explain_nonce($action)) . "</p>\n\t\t<p><a href='$adminurl'>" . __('No') . "</a> <input type='submit' value='" . __('Yes') . "' /></p>\n\t\t</div>\n\t</form>\n"; 1291 1291 } else { 1292 $html .= "\t<div id='message' class='confirm fade'>\n\t<p>" . wp_specialchars(wp_explain_nonce($action)) . "</p>\n\t<p><a href='$adminurl'>" . __('No') . "</a> <a href='" . attribute_escape(add_query_arg( '_wpnonce', wp_create_nonce($action), $_SERVER['REQUEST_URI'] )) . "'>" . __('Yes') . "</a></p>\n\t</div>\n";1292 $html .= "\t<div id='message' class='confirm fade'>\n\t<p>" . wp_specialchars(wp_explain_nonce($action)) . "</p>\n\t<p><a href='$adminurl'>" . __('No') . "</a> <a href='" . clean_url(add_query_arg( '_wpnonce', wp_create_nonce($action), $_SERVER['REQUEST_URI'] )) . "'>" . __('Yes') . "</a></p>\n\t</div>\n"; 1293 1293 } 1294 1294 $html .= "</body>\n</html>";
Note: See TracChangeset
for help on using the changeset viewer.