From e515464bb3777eed3cf99008801b0e0eb5f5df23 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Tue, 5 Jul 2022 15:08:05 +1000 Subject: [PATCH] Renaming the `generate` public method to `generate_block_styles` --- packages/style-engine/class-wp-style-engine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/style-engine/class-wp-style-engine.php b/packages/style-engine/class-wp-style-engine.php index 385594c4c2ce72..163e22cf8e5bee 100644 --- a/packages/style-engine/class-wp-style-engine.php +++ b/packages/style-engine/class-wp-style-engine.php @@ -396,7 +396,7 @@ protected static function get_css_declarations( $style_value, $style_definition, * 'classnames' => (string) Classnames separated by a space. * ); */ - public function generate( $block_styles, $options ) { + public function generate_block_styles( $block_styles, $options ) { if ( empty( $block_styles ) || ! is_array( $block_styles ) ) { return null; } @@ -519,7 +519,7 @@ protected static function get_individual_property_css_declarations( $style_value function wp_style_engine_generate_block_styles( $block_styles, $options = array() ) { if ( class_exists( 'WP_Style_Engine' ) ) { $style_engine = WP_Style_Engine::get_instance(); - return $style_engine->generate( $block_styles, $options ); + return $style_engine->generate_block_styles( $block_styles, $options ); } return null; }