-
Notifications
You must be signed in to change notification settings - Fork 108
chore: satisfy plugin checks for WP core 6.9 #319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: core
Are you sure you want to change the base?
Conversation
imantsk
commented
Dec 11, 2025
- Add required translators comments for placeholder strings
- Escape translatable output in AJAX/version switch/import flows
- Escape cloud search list action links
- Prefix globals/locals to satisfy naming checks in loader and views
|
|
||
| } else { | ||
| $imported_count = sprintf( '<strong>%s</strong>', esc_html( number_format_i18n( $imported ) ) ); | ||
| printf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
printf seems redundant here. What are we intending to achieve with this change?
| </div> | ||
| </h3> | ||
| <ul class="action-buttons"> | ||
| <?php echo wp_kses_post( cloud_lts_build_action_links( $item, 'search' ) ); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this will break the thickbox script. Escaping isn't necessary here – if we want to improve compliance, the underlying function really should be refactored to do output itself.
|
|
||
| if ( $install_result ) { | ||
| delete_transient( VERSION_CACHE_KEY ); | ||
| if ( $install_result ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this introduces some incorrect indentation.
| * @var Manage_Menu $this | ||
| */ | ||
|
|
||
| $search_query = isset( $_REQUEST['cloud_search'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['cloud_search'] ) ) : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why rename these?
| <form method="get" action="" id="cloud-search-form"> | ||
| <?php List_Table::required_form_fields( 'search_box' ); ?> | ||
| <label class="screen-reader-text" for="cloud_search"> | ||
| <?php esc_html_e( 'Search cloud snippets', 'code-snippets' ); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introduces incorrect indentation.