Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lint and typos
  • Loading branch information
oandregal committed Nov 18, 2021
commit eb8176ed9d224b79c5988ac32cc51b88305e19e5
4 changes: 2 additions & 2 deletions lib/compat/wordpress-5.9/get-global-styles-and-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function gutenberg_get_global_settings( $path = array(), $context ) {
/**
* Function to get the styles resulting of merging core, theme, and user data.
*
* @param array $path Path to the specific style to retrieve. Optional.
* @param array $path Path to the specific style to retrieve. Optional.
* If empty, will return all styles.
* @param array $context {
* Metadata to know where to retrieve the $path from. Optional.
Expand All @@ -56,7 +56,7 @@ function gutenberg_get_global_settings( $path = array(), $context ) {
*/
function gutenberg_get_global_styles( $path = array(), $context ) {
if ( ! empty( $context['block_name'] ) ) {
$path = array_merge( array( 'blocks', $block_name ), $path );
$path = array_merge( array( 'blocks', $context['block_name'] ), $path );
}

$origin = 'user';
Expand Down