WordPress/wp-content/themes/twentynineteen
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
..
classes Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:32:23 +00:00
fonts Default Themes: Import Twenty Nineteen from the 5.0 branch. 2018-12-14 02:33:41 +00:00
images Twenty Nineteen: Add images for use in block patterns. 2020-12-11 16:55:03 +00:00
inc Bundled Theme: Update default themes to use new script function signature. 2023-09-06 21:23:20 +00:00
js Twenty Nineteen: Fix a JS coding standard issue found after [55970]. 2023-06-21 21:54:22 +00:00
sass Twenty Nineteen: Always set background color and foreground color together. 2023-06-27 10:45:30 +00:00
template-parts Bundled Themes: Remove closing PHP tag at the end of files. 2022-08-11 14:46:09 +00:00
404.php Bundled Themes: Correct `@since` tags to refer to the theme version instead of WordPress version. 2019-12-07 13:56:06 +00:00
archive.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
comments.php Twenty Nineteen: Fix a translation issue in Comments navigation text. 2023-04-18 08:24:25 +00:00
footer.php Bundled Themes: Correct `@since` tags to refer to the theme version instead of WordPress version. 2019-12-07 13:56:06 +00:00
functions.php Twenty Nineteen: Correctly display default color names in the color palette. 2023-10-14 12:22:27 +00:00
header.php I18N: Mark screen reader strings as such with translator comments. 2023-02-07 17:10:21 +00:00
image.php I18N: Mark screen reader strings as such with translator comments. 2023-02-07 17:10:21 +00:00
index.php Bundled Themes: Correct `@since` tags to refer to the theme version instead of WordPress version. 2019-12-07 13:56:06 +00:00
package-lock.json Bundled Themes: Update npm dependencies for Twenty Nineteen and Twenty Twenty. 2023-09-07 00:59:18 +00:00
package.json Bundled Themes: Update npm dependencies for Twenty Nineteen and Twenty Twenty. 2023-09-07 00:59:18 +00:00
page.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
postcss.config.js Twenty Nineteen: Update PostCSS to version 8.x. 2023-03-03 20:22:23 +00:00
print.css Twenty Nineteen: Remove stray `÷` character in `print.css`. 2019-02-28 02:47:51 +00:00
print.scss Twenty Nineteen: Fix inconsistent tab/space indentation in style files. 2019-04-07 06:18:51 +00:00
readme.txt Bundled Themes: Bump version numbers for WordPress 6.3. 2023-07-26 22:09:22 +00:00
screenshot.png Default Themes: Import Twenty Nineteen from the 5.0 branch. 2018-12-14 02:33:41 +00:00
search.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
single.php I18N: Mark screen reader strings as such with translator comments. 2023-02-07 17:10:21 +00:00
style-editor-customizer.css Bundled Themes: Correct `customzier` typo. 2021-07-06 14:02:57 +00:00
style-editor-customizer.scss Bundled Themes: Correct `customzier` typo. 2021-07-06 14:02:57 +00:00
style-editor.css Twenty Nineteen: Add margins to editor iframe content. 2023-10-12 10:17:27 +00:00
style-editor.scss Twenty Nineteen: Add margins to editor iframe content. 2023-10-12 10:17:27 +00:00
style-rtl.css Twenty Ninteen: Revert changes to 'style-rtl.css'. 2023-09-14 10:25:22 +00:00
style.css Bundled Themes: Bump version numbers for WordPress 6.3. 2023-07-26 22:09:22 +00:00
style.scss Bundled Themes: Bump version numbers for WordPress 6.3. 2023-07-26 22:09:22 +00:00

readme.txt

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

=== Twenty Nineteen ===
Contributors: wordpressdotorg
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Requires at least: 4.9.6
Tested up to: 6.3
Requires PHP: 5.2.4
Stable tag: 2.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Our 2019 default theme is designed to show off the power of the block editor.

== Description ==
Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.

For more information about Twenty Nineteen please go to https://wordpress.org/documentation/article/twenty-nineteen/.

== Installation ==

1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Nineteen in the search form and press the 'Enter' key on your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to https://wordpress.org/documentation/article/twenty-nineteen/ for a guide on how to customize this theme.
5. Navigate to Appearance > Customize in your admin panel and customize to taste.

== Copyright ==

Twenty Nineteen WordPress Theme, Copyright 2018-2023 WordPress.org
Twenty Nineteen is distributed under the terms of the GNU GPL

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

== Changelog ==

= 2.6 =
* Released: August 8, 2023

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.6

= 2.5 =
* Released: March 28, 2023

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.5

= 2.4 =
* Released: November 1, 2022

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.4

= 2.3 =
* Released: May 24, 2022

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.3

= 2.2 =
* Released: January 25, 2022

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.2

= 2.1 =
* Released: July 20, 2021

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.1

= 2.0 =
* Released: March 9, 2021

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.0

= 1.9 =
* Released: December 22, 2020

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.9

= 1.8 =
* Released: December 8, 2020

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.8

= 1.7 =
* Released: August 11, 2020

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.7

= 1.6 =
* Released: June 10, 2020

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.6

= 1.5 =
* Released: March 31, 2020

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.5

= 1.4 =
* Released: May 7, 2019

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.4

= 1.3 =
* Released: February 21, 2019

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.3

= 1.2 =
* Released: January 9, 2019

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.2

= 1.1 =
* Released: December 19, 2018

https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.1

= 1.0 =
* Released: December 6, 2018

Initial release

== Resources ==
* normalize.css, © 2012-2018 Nicolas Gallagher and Jonathan Neal, MIT
* Underscores, © 2012-2023 Automattic, Inc., GNU GPL v2 or later
* Bundled block pattern images:
	* Abstract Background by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-background-0SRRVNMKBX
	* Abstract Waves by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-waves-0KREGLTZQ3
	* Abstract Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-bokeh-P4KVZBMQ6L
	* Colorful Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/colorful-bokeh-VN4G84GL8H