[wp-trac] [WordPress Trac] #14761: unregister_post_type()
WordPress Trac
noreply at wordpress.org
Sun Feb 7 09:40:34 UTC 2016
#14761: unregister_post_type()
-------------------------------------------------+-------------------------
Reporter: nacin | Owner: swissspidy
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.5
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: early has-patch has-unit-tests | Focuses:
commit |
-------------------------------------------------+-------------------------
Comment (by GaryJ):
Replying to [comment:45 johnjamesjacoby]:
> Replying to [comment:44 DrewAPicture]:
>
> I don't disagree with the semantics, but WordPress already uses
`unregister_` in a few other places, and does not use `deregister_`
anywhere.
There is `wp_deregister_style()` and `wp_deregister_script()`, and their
related ''dequeue'' functions.
> If semantics now matters more than consistency, we should open a new
ticket to deprecate semantically incorrect function names and use them as
wrappers for newly named ones.
deregister vs unregister, prefixed vs not prefixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14761#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list