Make WordPress Core


Ignore:
Timestamp:
02/06/2025 12:22:22 PM (6 hours ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in media_upload_library_form().

Includes bringing some consistency with a similar fragment in WP_List_Table::months_dropdown().

Follow-up to [3724], [7062], [15491], [59755].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r59755 r59767  
    781781                "<option %s value='%s'>%s</option>\n",
    782782                selected( $selected_month, $year . $month, false ),
    783                 esc_attr( $arc_row->year . $month ),
     783                esc_attr( $year . $month ),
    784784                /* translators: 1: Month name, 2: 4-digit year. */
    785                 sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year )
     785                esc_html( sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year ) )
    786786            );
    787787        }
Note: See TracChangeset for help on using the changeset viewer.