[wp-trac] [WordPress Trac] #28637: get_theme_mod returns empty string instead of default

WordPress Trac noreply at wordpress.org
Wed Aug 19 18:15:18 UTC 2015


#28637: get_theme_mod returns empty string instead of default
----------------------------------------+-----------------------------
 Reporter:  philipjohn                  |       Owner:  valendesigns
     Type:  defect (bug)                |      Status:  assigned
 Priority:  normal                      |   Milestone:  4.4
Component:  Customize                   |     Version:  3.9.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  administration
----------------------------------------+-----------------------------

Comment (by valendesigns):

 The sad part is that I just did a search for `get_theme_mod` unit tests
 and there are none is isolation. There's some in the context of the
 Customizer getting and setting values, but not from the front-end
 perspective. We could use more coverage here anyhow.

 Maybe a plugin will demonstrate the issue better, IDK. If you feel that's
 the case then do what you think is right and we'll go from there.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28637#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list