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

Props viralsampat.
See #58831.




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


git-svn-id: http://core.svn.wordpress.org/trunk@56144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-09-20 08:44:20 +00:00
parent 25b109a0e5
commit 5cce7674ca
2 changed files with 2 additions and 2 deletions

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>';
}
}
?>

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.4-alpha-56631';
$wp_version = '6.4-alpha-56632';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.