mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
88f1b6e7ec
commit
3d8a61bc79
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user