Skip to content

Commit

Permalink
Also check for border support.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Dec 20, 2023
1 parent e301134 commit da5ad04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/global-styles-and-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function gutenberg_get_global_stylesheet( $types = array() ) {
* If the theme doesn't have theme.json but supports both appearance tools and color palette,
* the 'theme' origin should be included so color palette presets are also output.
*/
if ( ! $supports_theme_json && current_theme_supports( 'appearance-tools' ) && current_theme_supports( 'editor-color-palette' ) ) {
if ( ! $supports_theme_json && ( current_theme_supports( 'appearance-tools' ) || current_theme_supports( 'border' ) ) && current_theme_supports( 'editor-color-palette' ) ) {
$origins = array( 'default', 'theme' );
} elseif ( ! $supports_theme_json ) {
$origins = array( 'default' );
Expand Down

0 comments on commit da5ad04

Please sign in to comment.