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
Rename function to wp_enqueue_block_style
  • Loading branch information
aristath committed Oct 7, 2021
commit 24ae1eaf19425d46abff5d1268e172d853efb57e
4 changes: 2 additions & 2 deletions lib/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,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 @@ -599,7 +599,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