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; }