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

props GregLone.
fixes #27216.

Built from https://develop.svn.wordpress.org/trunk@27305


git-svn-id: http://core.svn.wordpress.org/trunk@27158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-02-27 00:05:14 +00:00
parent 1d06679518
commit bee73edb62

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() {