mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
00cabf08ae
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 |
||
---|---|---|
.. | ||
twentyeleven | ||
twentyfifteen | ||
twentyfourteen | ||
twentynineteen | ||
twentyseventeen | ||
twentysixteen | ||
twentyten | ||
twentythirteen | ||
twentytwelve | ||
twentytwenty | ||
twentytwentyfour | ||
twentytwentyone | ||
twentytwentythree | ||
twentytwentytwo | ||
index.php |