Skip to content

Commit b7029f4

Browse files
committed
remove duplicate method from rebase
1 parent 760a094 commit b7029f4

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/wp-includes/class-wp-theme-json.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,31 +1069,6 @@ public function get_custom_css() {
10691069
return $stylesheet;
10701070
}
10711071

1072-
/**
1073-
* Returns the global styles custom css.
1074-
*
1075-
* @since 6.2.0
1076-
*
1077-
* @return string
1078-
*/
1079-
public function get_custom_css() {
1080-
// Add the global styles root CSS.
1081-
$stylesheet = _wp_array_get( $this->theme_json, array( 'styles', 'css' ), '' );
1082-
1083-
// Add the global styles block CSS.
1084-
if ( isset( $this->theme_json['styles']['blocks'] ) ) {
1085-
foreach ( $this->theme_json['styles']['blocks'] as $name => $node ) {
1086-
$custom_block_css = _wp_array_get( $this->theme_json, array( 'styles', 'blocks', $name, 'css' ) );
1087-
if ( $custom_block_css ) {
1088-
$selector = static::$blocks_metadata[ $name ]['selector'];
1089-
$stylesheet .= $this->process_blocks_custom_css( $custom_block_css, $selector );
1090-
}
1091-
}
1092-
}
1093-
1094-
return $stylesheet;
1095-
}
1096-
10971072
/**
10981073
* Returns the page templates of the active theme.
10991074
*

0 commit comments

Comments
 (0)