[wp-trac] [WordPress Trac] #25671: get_theme_mods does not have a filter
WordPress Trac
noreply at wordpress.org
Thu Oct 24 13:31:17 UTC 2013
#25671: get_theme_mods does not have a filter
-------------------------+------------------------------
Reporter: scottsweb | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by mark-k):
The way I see it, get_theme_mods is an internal function used by
*_theme_mod functions. The only reason to call it directly is in a
misguided attempt in early optimization or for debugging.
I think it is just need to be documented as internal, otherwise its
functionality should match performing multiple calls to get_them_mod and
to do that you will need to have a loop that applies the relevant filter
to each mod name.
Otherwise, if a new filter will be added like in the patch a plugin that
wants to change a specific theme mod will have to hook on both filters.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25671#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list