[wp-trac] [WordPress Trac] #23761: Empty header color after enabling header text via Customizer
WordPress Trac
noreply at wordpress.org
Wed Mar 13 19:59:32 UTC 2013
#23761: Empty header color after enabling header text via Customizer
----------------------------+--------------------------
Reporter: SergeyBiryukov | Type: defect (bug)
Status: new | Priority: normal
Milestone: 3.6 | Component: Appearance
Version: 3.4 | Severity: normal
Keywords: |
----------------------------+--------------------------
Background: #23722
1. Go to Appearance > Header, disable header text.
2. Go to Customizer, enable header text.
3. Go to Appearance > Header again. `get_header_textcolor()` will return
an empty value.
Bundled themes handle this situation differently:
* Twenty Thirteen shows the header with a wrong color (see the
screenshot).
* Twenty Twelve also has an empty color in the style attribute (as in the
screenshot), but it still shows the correct color due to the declaration
in `twentytwelve_admin_header_style()`:
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
content/themes/twentytwelve/inc/custom-header.php#L109
* Twenty Eleven doesn't display the header on Appearance > Header screen
at all after those steps, because it specifically checks that
`get_header_textcolor()` is not empty:
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
content/themes/twentyeleven/functions.php#L313
If you disable and re-enable header text on Appearance > Header screen,
the correct color will be restored.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23761>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list