Changeset 5057 for branches/2.1/wp-includes/functions.php
- Timestamp:
- 03/17/2007 08:47:29 AM (19 years ago)
- File:
-
- 1 edited
-
branches/2.1/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/wp-includes/functions.php
r5050 r5057 1193 1193 $adminurl = get_option('siteurl') . '/wp-admin'; 1194 1194 if ( wp_get_referer() ) 1195 $adminurl = attribute_escape(wp_get_referer());1195 $adminurl = clean_url(wp_get_referer()); 1196 1196 1197 1197 $title = __('WordPress Confirmation'); … … 1210 1210 $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"; 1211 1211 } else { 1212 $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";1212 $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"; 1213 1213 } 1214 1214 $html .= "</body>\n</html>";
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)