Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ public function get_settings() {
*
* @return string The processed CSS.
*/
public function process_blocks_custom_css( $css, $selector ) {
protected function process_blocks_custom_css( $css, $selector ) {
$processed_css = '';

// Split CSS nested rules.
Expand Down
4 changes: 3 additions & 1 deletion phpunit/class-wp-theme-json-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2010,8 +2010,10 @@ public function test_process_blocks_custom_css( $input, $expected ) {
'styles' => array(),
)
);
$reflection = new ReflectionMethod( $theme_json, 'process_blocks_custom_css' );
$reflection->setAccessible( true );

$this->assertEquals( $expected, $theme_json->process_blocks_custom_css( $input['css'], $input['selector'] ) );
$this->assertEquals( $expected, $reflection->invoke( $theme_json, $input['css'], $input['selector'] ) );
}

/**
Expand Down