Commit Graph

14 Commits

Author SHA1 Message Date
Sergey Biryukov
7932193708 Coding Standards: Use strict comparison where static strings are involved.
This reduces the number of `WordPress.PHP.StrictComparisons.LooseComparison` issues in half, from 1897 to 890.

Includes minor code layout fixes for better readability.

See #49542.
Built from https://develop.svn.wordpress.org/trunk@47808


git-svn-id: http://core.svn.wordpress.org/trunk@47584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-16 18:42:12 +00:00
Sergey Biryukov
001ffe81fb Docs: Improve inline comments per the documentation standards.
Includes minor code layout fixes for better readability.

See #48303.
Built from https://develop.svn.wordpress.org/trunk@47122


git-svn-id: http://core.svn.wordpress.org/trunk@46922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-01-29 00:45:18 +00:00
Lance Willett
7d95c83257 Twenty Twelve and Thirteen: Use proper way to get customizer settings values.
Props obenland, kdoran. Fixes #29577.
Built from https://develop.svn.wordpress.org/trunk@30482


git-svn-id: http://core.svn.wordpress.org/trunk@30470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 17:06:23 +00:00
Dominik Schilling
61819a36ea Customizer: Change instances of "Theme Customizer" to just "Customizer", as the Customizer isn't necessarily theme-specific.
Also capitalize "Customizer".
See also https://make.wordpress.org/core/2014/07/08/customizer-improvements-in-4-0/.

props studionashvegas, tareq1988.
fixes #29947.
Built from https://develop.svn.wordpress.org/trunk@29903


git-svn-id: http://core.svn.wordpress.org/trunk@29658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-15 17:21:19 +00:00
Lance Willett
f41b21f4f6 Twenty Twelve: fix regression introduced in r23572, allow hide/show of Header Text in Customizer. Fixes #23600.
Also remove another `!important` -- and there was much rejoicing.

Props SergeyBiryukov and obenland.

git-svn-id: http://core.svn.wordpress.org/trunk@23711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-15 16:42:10 +00:00
Lance Willett
76e80eaa86 Twenty Twelve: enable live preview for Header Text Color in Theme Customizer. Change also removes an !important declaration (yay) in Custom Header CSS rules.
Props SriniG, fixes #23600.

git-svn-id: http://core.svn.wordpress.org/trunk@23572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-01 17:45:59 +00:00
Lance Willett
5fb24acd2b Twenty Twelve: better handling for cases where a background color is set to white or an empty value (like first run with no theme_mods set) and a background image is enabled, which resulted previously in a broken layout. Fixes #23586, props obenland.
git-svn-id: http://core.svn.wordpress.org/trunk@23568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-01 17:14:59 +00:00
Lance Willett
0c69e9f00d Twenty Eleven and Twenty Twelve: use .text() instead of .html() for blogname and blogdescription in Theme Customizer JavaScript handlers. Fixes #23435, props mfields.
git-svn-id: http://core.svn.wordpress.org/trunk@23429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-02-15 16:53:58 +00:00
Lance Willett
ce1fc87461 Twenty Twelve: remove a duplicate/misplaced condition in theme-customizer.js, props DrewAPicture. Closes #21685.
git-svn-id: http://core.svn.wordpress.org/trunk@22168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-10-10 20:47:07 +00:00
Lance Willett
b5853fcd19 Twenty Twelve: fix comments in two files, for accuracy.
git-svn-id: http://core.svn.wordpress.org/trunk@22059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-27 15:23:15 +00:00
Lance Willett
5beee34612 Twenty Twelve: simplify custom font loading behavior, see #21694.
* Remove theme options code and support from theme.
 * Keep Open Sans font first in the stack and make it always loaded.
 * Move Customizer pieces from Theme Options out of class structure and into functions.php.


git-svn-id: http://core.svn.wordpress.org/trunk@21639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-28 02:18:43 +00:00
Lance Willett
fe87773446 Twenty Twelve: JavaScript fix props obenland; no need to put the selector in a variable as it will be called only once anyway. See #21685.
git-svn-id: http://core.svn.wordpress.org/trunk@21622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-25 17:47:34 +00:00
lancewillett
ffc2e121fc Twenty Twelve: Add postMessage support in Customizer for fonts, site title and description, and background color body_class value updates.
Props obenland for first patch and testing. Fixes #21443.


git-svn-id: http://core.svn.wordpress.org/trunk@21411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-02 22:10:03 +00:00
lancewillett
9f5310274b Twenty Twelve: enable async body class value changes for custom background color changes in Theme Customizer. See #21226.
git-svn-id: http://core.svn.wordpress.org/trunk@21343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 19:42:55 +00:00