Coding Standards: Add missing escaping functions in wp-admin/export.php

Props viralsampat.
See #58831.





git-svn-id: https://develop.svn.wordpress.org/trunk@56632 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2023-09-20 08:42:46 +00:00
parent 1113b2df5a
commit 8fea8aa389

View File

@@ -160,7 +160,7 @@ function export_date_options( $post_type = 'post' ) {
}
$month = zeroise( $date->month, 2 );
echo '<option value="' . $date->year . '-' . $month . '">' . $wp_locale->get_month( $month ) . ' ' . $date->year . '</option>';
echo '<option value="' . esc_attr( $date->year ) . '-' . esc_attr( $month ) . '">' . $wp_locale->get_month( $month ) . ' ' . $date->year . '</option>';
}
}
?>