[wp-trac] [WordPress Trac] #39167: Theme mods should be able to be gotten/changed on inactive themes.
WordPress Trac
noreply at wordpress.org
Wed Dec 7 22:37:55 UTC 2016
#39167: Theme mods should be able to be gotten/changed on inactive themes.
-----------------------------+-----------------------------------
Reporter: georgestephanis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 2.1
Severity: normal | Keywords: has-patch 2nd-opinion
Focuses: |
-----------------------------+-----------------------------------
Currently, there is no way (short of direct option queries) to get theme
mods of an inactive theme. This can be problematic when a user wants to
see what changes they had configured on a parent theme, when on a child
theme, or when trying to see the other theme mods they had configured
elsewhere.
This change moves the bulk of the theme mod functions to be methods on the
`WP_Theme` class -- so if you `wp_get_theme()` any theme -- active or
inactive -- you can view and change its mods.
The attached changeset also converts the existing legacy methods to use
the new versions on the current theme.
Related: [4401]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39167>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list