Skip to content

Commit

Permalink
Merge branch 'trunk' into fix/check-classic-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshpanchal27 authored Dec 16, 2024
2 parents 8224530 + efabb2b commit 7865b24
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
13 changes: 1 addition & 12 deletions plugins/auto-sizes/includes/improve-calculate-sizes.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function auto_sizes_calculate_better_sizes( int $id, $size, string $align, int $
* @return string The alignment width based.
*/
function auto_sizes_get_layout_width( string $alignment ): string {
$layout = auto_sizes_get_layout_settings();
$layout = wp_get_global_settings( array( 'layout' ) );

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

return $context;
}

/**
* Retrieves the layout settings defined in theme.json.
*
* @since n.e.x.t
*
* @return array<string, mixed> Associative array of layout settings.
*/
function auto_sizes_get_layout_settings(): array {
return wp_get_global_settings( array( 'layout' ) );
}
25 changes: 25 additions & 0 deletions plugins/performance-lab/includes/admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,31 @@ static function ( string $error_message ): string {
<div class="clear"></div>
</div>
<?php
if ( current_user_can( 'activate_plugins' ) ) {
?>
<p>
<?php
$plugins_url = add_query_arg(
array(
's' => 'WordPress Performance Team',
'plugin_status' => 'all',
),
admin_url( 'plugins.php' )
);
echo wp_kses(
sprintf(
/* translators: %s is the URL to the plugins screen */
__( 'Performance features are installed as plugins. To update features or remove them, <a href="%s">manage them on the plugins screen</a>.', 'performance-lab' ),
esc_url( $plugins_url )
),
array(
'a' => array( 'href' => true ),
)
);
?>
</p>
<?php
}
}

/**
Expand Down

0 comments on commit 7865b24

Please sign in to comment.