| @@ -334,9 +334,9 @@ | ||
| 334 | 334 | // default values because it can't get them from the Global Styles. |
| 335 | 335 | $background_color = '#fff'; |
| 336 | 336 | $close_button_color = '#000'; |
| 337 | 337 | if ( wp_theme_has_theme_json() ) { |
| 338 | - $global_styles_color = wp_get_global_styles( array( 'color' ) ); | |
| 338 | + $global_styles_color = gutenberg_get_global_styles( array( 'color' ) ); | |
| 339 | 339 | if ( ! empty( $global_styles_color['background'] ) ) { |
| 340 | 340 | $background_color = esc_attr( $global_styles_color['background'] ); |
| 341 | 341 | } |
| 342 | 342 | if ( ! empty( $global_styles_color['text'] ) ) { |