[wp-trac] [WordPress Trac] #42834: Doc mismatch between developer. and codex., codex appears to be more correct
WordPress Trac
noreply at wordpress.org
Fri Dec 8 02:35:58 UTC 2017
#42834: Doc mismatch between developer. and codex., codex appears to be more
correct
--------------------------+-----------------------------
Reporter: kluny | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I’m looking at some code that uses the switch_theme hook. The docs are
quite different between the
(current)[https://developer.wordpress.org/reference/hooks/switch_theme/]
docs and the old
(codex)[https://codex.wordpress.org/Plugin_API/Action_Reference/switch_theme].
Specifically, the old version specified that switch_theme is best used for
things that should happen when a theme is *deactivated*, and actions
related to the new theme should be on after_switch_theme. The new docs
don’t make the distinction, but the code hasn’t changed since like 4.5.
I'm wonder whether developer.wordpress.org has the most correct info?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42834>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list