[wp-trac] [WordPress Trac] #35235: remove_permastruct()
WordPress Trac
noreply at wordpress.org
Tue Jan 5 04:47:41 UTC 2016
#35235: remove_permastruct()
--------------------------------------+------------------
Reporter: swissspidy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Rewrite Rules | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------
Comment (by boonebgorges):
A question about the semantics of the new function and method.
`remove_permastruct()` will only allow for the removal of
`extra_permastructs`, ie those that have been added via
`add_permastruct()`. It won't be possible to use it to remove built-in,
hardcoded permastructs like 'post_tag' or whatever. Is it worth
considering a more descriptive name like `remove_extra_permastruct()`? Or
is it enough to note the limitation in the documentation? (The latter
seems right to me - I just want to get a second opinion on it.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35235#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list