diff --git a/plugins/embed-optimizer/helper.php b/plugins/embed-optimizer/helper.php index 8f6d3ec937..944ba0674b 100644 --- a/plugins/embed-optimizer/helper.php +++ b/plugins/embed-optimizer/helper.php @@ -404,7 +404,7 @@ function embed_optimizer_print_row_meta_install_notice( string $plugin_file ): v $details_url = __( 'https://wordpress.org/plugins/', 'default' ) . $od_plugin_slug . '/'; $link_start_tag = sprintf( - '', + '', esc_url( $details_url ), esc_attr( $aria_label ) ); diff --git a/plugins/optimization-detective/helper.php b/plugins/optimization-detective/helper.php index 09866de406..b8b73d8f65 100644 --- a/plugins/optimization-detective/helper.php +++ b/plugins/optimization-detective/helper.php @@ -344,7 +344,7 @@ function od_render_documentation_links(): void { echo wp_kses_post( sprintf( /* translators: 1: project documentation URL, 2: introduction URL, 3: code reference URL, 4: extensions list URL. */ - __( 'The project documentation is available on GitHub, including an introduction, code reference, and a list of extensions.', 'optimization-detective' ), + __( 'The project documentation is available on GitHub, including an introduction, code reference, and a list of extensions.', 'optimization-detective' ), esc_url( 'https://github.com/WordPress/performance/tree/trunk/plugins/optimization-detective/docs' ), esc_url( 'https://github.com/WordPress/performance/blob/trunk/plugins/optimization-detective/docs/introduction.md' ), esc_url( 'https://github.com/WordPress/performance/blob/trunk/plugins/optimization-detective/docs/hooks.md' ), diff --git a/plugins/performance-lab/includes/admin/plugins.php b/plugins/performance-lab/includes/admin/plugins.php index 0b86db977e..9f25767c3d 100644 --- a/plugins/performance-lab/includes/admin/plugins.php +++ b/plugins/performance-lab/includes/admin/plugins.php @@ -219,7 +219,7 @@ static function ( string $file ) { } $plugin_list .= sprintf( - '
%s %s%s %s%s
', /* translators: Accessibility text. */ - __( 'WebP support can only be enabled by your hosting provider. Please contact them to inquire about switching to a plan that supports WebP, or consider switching to a host that offers this capability. Learn more about WebP image support for WordPress sites.', 'performance-lab' ) + __( 'WebP support can only be enabled by your hosting provider. Please contact them to inquire about switching to a plan that supports WebP, or consider switching to a host that offers this capability. Learn more about WebP image support for WordPress sites.', 'performance-lab' ) ); } diff --git a/plugins/speculation-rules/settings.php b/plugins/speculation-rules/settings.php index 8f2ada9961..d647e3d8b5 100644 --- a/plugins/speculation-rules/settings.php +++ b/plugins/speculation-rules/settings.php @@ -73,7 +73,7 @@ function plsr_get_field_description( string $field ): string { 'eagerness' => __( 'The eagerness setting defines the heuristics based on which the loading is triggered. "Eager" will have the minimum delay to start speculative loads, "Conservative" increases the chance that only URLs the user actually navigates to are loaded.', 'speculation-rules' ), 'authentication' => sprintf( /* translators: %s: URL to persistent object cache documentation */ - __( 'Only unauthenticated pages are typically served from cache. So in order to reduce load on the server, speculative loading is not enabled by default for logged-in users. If your server can handle the additional load, you can opt in to speculative loading for all logged-in users or just administrator users only. For optimal performance, regardless of the user authentication status but especially when logged-in, ensure you have a persistent object cache configured. This only applies to pages on the frontend; admin screens remain excluded.', 'speculation-rules' ), + __( 'Only unauthenticated pages are typically served from cache. So in order to reduce load on the server, speculative loading is not enabled by default for logged-in users. If your server can handle the additional load, you can opt in to speculative loading for all logged-in users or just administrator users only. For optimal performance, regardless of the user authentication status but especially when logged-in, ensure you have a persistent object cache configured. This only applies to pages on the frontend; admin screens remain excluded.', 'speculation-rules' ), 'https://developer.wordpress.org/advanced-administration/performance/optimization/#object-caching' ), ); @@ -316,13 +316,14 @@ function plsr_render_settings_field( array $args ): void { echo wp_kses( sprintf( /* translators: %s: URL to persistent object cache documentation */ - __( 'Enabling speculative loading for authenticated users may significantly increase the server load. Consider setting up a persistent object cache before enabling this feature for logged-in users.', 'speculation-rules' ), + __( 'Enabling speculative loading for authenticated users may significantly increase the server load. Consider setting up a persistent object cache before enabling this feature for logged-in users.', 'speculation-rules' ), 'https://developer.wordpress.org/advanced-administration/performance/optimization/#object-caching' ), array( 'a' => array( 'href' => array(), 'target' => array(), + 'rel' => array(), ), ) ); @@ -359,6 +360,7 @@ function plsr_render_settings_field( array $args ): void { 'a' => array( 'href' => array(), 'target' => array(), + 'rel' => array(), ), 'em' => array(), )