Skip to content

Commit

Permalink
Rename function to wp_enqueue_block_style
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jul 21, 2021
1 parent 0d4b8f3 commit 1d836c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ function gutenberg_migrate_old_typography_shape( $metadata ) {
*
* @return void
*/
function gutenberg_enqueue_block_style( $block_name, $args ) {
function wp_enqueue_block_style( $block_name, $args ) {
$args = wp_parse_args(
$args,
array(
Expand Down Expand Up @@ -595,7 +595,7 @@ function gutenberg_multiple_block_styles( $metadata ) {
if ( ! empty( $metadata[ $key ] ) && is_array( $metadata[ $key ] ) ) {
$default_style = array_shift( $metadata[ $key ] );
foreach ( $metadata[ $key ] as $handle ) {
gutenberg_enqueue_block_style( $metadata['name'], array( 'handle' => $handle ) );
wp_enqueue_block_style( $metadata['name'], array( 'handle' => $handle ) );
}

// Only return the 1st item in the array.
Expand Down

0 comments on commit 1d836c1

Please sign in to comment.