Unslash in the time-format and date-format ajax endpoints.

props GregLone.
fixes #27216.


git-svn-id: https://develop.svn.wordpress.org/trunk@27305 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-02-27 00:04:45 +00:00
parent 88f1b6e7ec
commit 3d8a61bc79

View File

@ -1713,11 +1713,11 @@ function wp_ajax_set_post_thumbnail() {
}
function wp_ajax_date_format() {
wp_die( date_i18n( sanitize_option( 'date_format', $_POST['date'] ) ) );
wp_die( date_i18n( sanitize_option( 'date_format', wp_unslash( $_POST['date'] ) ) ) );
}
function wp_ajax_time_format() {
wp_die( date_i18n( sanitize_option( 'time_format', $_POST['date'] ) ) );
wp_die( date_i18n( sanitize_option( 'time_format', wp_unslash( $_POST['date'] ) ) ) );
}
function wp_ajax_wp_fullscreen_save_post() {