Skip to content

Conversation

@imantsk
Copy link
Member

@imantsk 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

@imantsk imantsk marked this pull request as draft December 11, 2025 22:01
@imantsk imantsk added the run-tests Trigger automated tests label Dec 11, 2025

} else {
$imported_count = sprintf( '<strong>%s</strong>', esc_html( number_format_i18n( $imported ) ) );
printf(
Copy link
Member

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' ) ); ?>
Copy link
Member

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 ) {
Copy link
Member

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'] ) ) : '';
Copy link
Member

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' ); ?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introduces incorrect indentation.

@imantsk imantsk changed the title fix: satisfy plugin checks for WP core 6.9 chore: satisfy plugin checks for WP core 6.9 Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-tests Trigger automated tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants