Changes between Initial Version and Version 2 of Ticket #62118
- Timestamp:
- 09/26/2024 08:59:08 AM (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #62118
- Property Focuses coding-standards removed
-
Property
Component
changed from
GeneraltoAdministration -
Property
Priority
changed from
normaltolow - Property Keywords needs-testing changes-requested removed
-
Property
Type
changed from
feature requesttoenhancement -
Property
Severity
changed from
normaltominor
-
Ticket #62118 – Description
initial v2 1 1 Code Improvement Suggestion for admin footer \wp-admin\admin-footer.php line No. 35 2 3 {{{#!php 2 4 3 5 $text = sprintf( … … 6 8 __( 'https://wordpress.org/' ) 7 9 ); 10 }}} 8 11 9 12 10 11 Should we use esc_url() here instead of __ (underscore) to ensure that the URL is valid and protected from cross-site scripting? 13 Should we use `esc_url()` here instead of `__` (underscore) to ensure that the URL is valid and protected from cross-site scripting? 12 14 13 15 16 {{{#!php 14 17 $text = sprintf( 15 18 /* translators: %s: https://wordpress.org/ */ 16 19 __('Thank you for creating with <a href="%s">WordPress</a>.'), 17 esc_url( 'https://wordpress.org/')20 esc_url( 'https://wordpress.org/' ) 18 21 ); 22 }}} 19 23 20 24 Thanks!