Make WordPress Core


Ignore:
Timestamp:
09/20/2023 08:42:46 AM (12 months ago)
Author:
audrasjb
Message:

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

Props viralsampat.
See #58831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/export.php

    r55917 r56632  
    161161
    162162        $month = zeroise( $date->month, 2 );
    163         echo '<option value="' . $date->year . '-' . $month . '">' . $wp_locale->get_month( $month ) . ' ' . $date->year . '</option>';
     163        echo '<option value="' . esc_attr( $date->year ) . '-' . esc_attr( $month ) . '">' . $wp_locale->get_month( $month ) . ' ' . $date->year . '</option>';
    164164    }
    165165}
Note: See TracChangeset for help on using the changeset viewer.