WordPress/wp-content/themes
Sergey Biryukov 00cabf08ae Twenty Nineteen: Correctly display default color names in the color palette.
Instead of displaying the color names, two of the default colors displayed the color code, which was only intended to show when the user has enabled the custom color option in the Customizer.

The reason is that the default value for the option is `false`, and this value is changed to the string `'custom'` if the color option is enabled, and the string `'default'` if the custom color is enabled and then reset to default colors.

This commit adjusts the logic for displaying the color name, to make sure that the string value `'default'` is not compared with `false`, by adding the default value as a parameter to `get_theme_mod( 'primary_color' )`.

Follow-up to [45964].

Props poena, mukesh27, ugyensupport, shailu25, anveshika, harshgajipara, nicolefurlan, syamraj24, balub, vivekawsm.
Fixes #59566.
Built from https://develop.svn.wordpress.org/trunk@56935


git-svn-id: http://core.svn.wordpress.org/trunk@56446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-14 12:22:27 +00:00
..
twentyeleven Bundled Theme: Implement the_header_image_tag function for enhanced compatibility for older core themes. 2023-09-14 11:25:19 +00:00
twentyfifteen Bundled Themes: Use defer loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentyfourteen Twenty Fourteen: Correct @since entry for an authors list query arguments filter. 2023-10-04 12:14:24 +00:00
twentynineteen Twenty Nineteen: Correctly display default color names in the color palette. 2023-10-14 12:22:27 +00:00
twentyseventeen Bundled Themes: Use defer loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentysixteen Bundled Theme: Implement the_header_image_tag function for enhanced compatibility for older core themes. 2023-09-14 11:25:19 +00:00
twentyten Bundled Theme: Implement the_header_image_tag function for enhanced compatibility for older core themes. 2023-09-14 11:25:19 +00:00
twentythirteen Bundled Themes: Use defer loading strategy for theme scripts. 2023-09-12 00:06:19 +00:00
twentytwelve Bundled Theme: Implement the_header_image_tag function for enhanced compatibility for older core themes. 2023-09-14 11:25:19 +00:00
twentytwenty Twenty Twenty: Fix style issues within iframed editor. 2023-10-04 20:56:24 +00:00
twentytwentyfour Changes to TT4 for beta 3. 2023-10-10 09:03:25 +00:00
twentytwentyone Twenty-Twenty One: Fixes quotation mark being outside with background. 2023-09-13 15:40:20 +00:00
twentytwentythree Twenty Twenty-Three: Add missing font licenses in readme.txt file. 2023-10-05 22:46:18 +00:00
twentytwentytwo Bundled Theme: Add missing dimension attributes to images in Twenty Twenty-Two patterns. 2023-09-18 17:38:19 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00