Skip to content

Commit

Permalink
Renaming the generate public method to generate_block_styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Jul 5, 2022
1 parent 2750d3f commit e515464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/style-engine/class-wp-style-engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

0 comments on commit e515464

Please sign in to comment.