Changeset 57259 for trunk/src/wp-includes/global-styles-and-settings.php
- Timestamp:
- 01/09/2024 11:30:10 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/global-styles-and-settings.php
r56457 r57259 223 223 */ 224 224 $origins = array( 'default', 'theme', 'custom' ); 225 if ( ! $supports_theme_json ) { 225 /* 226 * If the theme doesn't have theme.json but supports both appearance tools and color palette, 227 * the 'theme' origin should be included so color palette presets are also output. 228 */ 229 if ( ! $supports_theme_json && ( current_theme_supports( 'appearance-tools' ) || current_theme_supports( 'border' ) ) && current_theme_supports( 'editor-color-palette' ) ) { 230 $origins = array( 'default', 'theme' ); 231 } elseif ( ! $supports_theme_json ) { 226 232 $origins = array( 'default' ); 227 233 }
Note: See TracChangeset
for help on using the changeset viewer.