Skip to content

Commit

Permalink
Coding Standards: Add missing escaping functions in `wp-admin/export.…
Browse files Browse the repository at this point in the history
…php`

Props viralsampat.
See #58831.





git-svn-id: https://develop.svn.wordpress.org/trunk@56632 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Sep 20, 2023
1 parent 1113b2d commit 8fea8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>';
}
}
?>
Expand Down

0 comments on commit 8fea8aa

Please sign in to comment.