Skip to content

Commit 7865b24

Browse files
Merge branch 'trunk' into fix/check-classic-theme
2 parents 8224530 + efabb2b commit 7865b24

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

plugins/auto-sizes/includes/improve-calculate-sizes.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function auto_sizes_calculate_better_sizes( int $id, $size, string $align, int $
234234
* @return string The alignment width based.
235235
*/
236236
function auto_sizes_get_layout_width( string $alignment ): string {
237-
$layout = auto_sizes_get_layout_settings();
237+
$layout = wp_get_global_settings( array( 'layout' ) );
238238

239239
$layout_widths = array(
240240
'full' => '100vw', // Todo: incorporate useRootPaddingAwareAlignments.
@@ -300,14 +300,3 @@ function auto_sizes_filter_render_block_context( array $context, array $block ):
300300

301301
return $context;
302302
}
303-
304-
/**
305-
* Retrieves the layout settings defined in theme.json.
306-
*
307-
* @since n.e.x.t
308-
*
309-
* @return array<string, mixed> Associative array of layout settings.
310-
*/
311-
function auto_sizes_get_layout_settings(): array {
312-
return wp_get_global_settings( array( 'layout' ) );
313-
}

plugins/performance-lab/includes/admin/plugins.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,31 @@ static function ( string $error_message ): string {
292292
<div class="clear"></div>
293293
</div>
294294
<?php
295+
if ( current_user_can( 'activate_plugins' ) ) {
296+
?>
297+
<p>
298+
<?php
299+
$plugins_url = add_query_arg(
300+
array(
301+
's' => 'WordPress Performance Team',
302+
'plugin_status' => 'all',
303+
),
304+
admin_url( 'plugins.php' )
305+
);
306+
echo wp_kses(
307+
sprintf(
308+
/* translators: %s is the URL to the plugins screen */
309+
__( 'Performance features are installed as plugins. To update features or remove them, <a href="%s">manage them on the plugins screen</a>.', 'performance-lab' ),
310+
esc_url( $plugins_url )
311+
),
312+
array(
313+
'a' => array( 'href' => true ),
314+
)
315+
);
316+
?>
317+
</p>
318+
<?php
319+
}
295320
}
296321

297322
/**

0 commit comments

Comments
 (0)