Coding Standards: Use a more meaningful variable name in WP_List_Table::months_dropdown().

As per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]:
> Don't abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.

Follow-up to [8646], [15491].

See #62279.
Built from https://develop.svn.wordpress.org/trunk@59755


git-svn-id: http://core.svn.wordpress.org/trunk@59097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2025-02-03 23:43:21 +00:00
parent b765f8b44c
commit 6e0285406d
2 changed files with 4 additions and 4 deletions

View File

@@ -763,11 +763,11 @@ class WP_List_Table {
return;
}
$m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
$selected_month = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
?>
<label for="filter-by-date" class="screen-reader-text"><?php echo get_post_type_object( $post_type )->labels->filter_by_date; ?></label>
<select name="m" id="filter-by-date">
<option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
<option<?php selected( $selected_month, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
<?php
foreach ( $months as $arc_row ) {
if ( 0 === (int) $arc_row->year ) {
@@ -779,7 +779,7 @@ class WP_List_Table {
printf(
"<option %s value='%s'>%s</option>\n",
selected( $m, $year . $month, false ),
selected( $selected_month, $year . $month, false ),
esc_attr( $arc_row->year . $month ),
/* translators: 1: Month name, 2: 4-digit year. */
sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year )

View File

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