[wp-meta] [Making WordPress.org] #3680: Remove post_type_link filter from the WP Parser plugin
Making WordPress.org
noreply at wordpress.org
Sat Jun 23 11:39:51 UTC 2018
#3680: Remove post_type_link filter from the WP Parser plugin
---------------------------+-----------------------
Reporter: keesiemeijer | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: Developer Hub | Keywords: has-patch
---------------------------+-----------------------
The wporg-developer theme and the WP parser plugin both register the
parsed post types but with different slugs. The parser doesn't register
the post types if the theme has registered them already, but it does
change the [https://github.com/WordPress/phpdoc-
parser/blob/42e4de3f4f2b78049d4b2a25e7fe303a10b3dbfb/lib/class-
plugin.php#L205 permalink] for method permalinks in the `post_type_link`
filter.
If the parser plugin is activated the reference permalink for a method
links to
{{{
/method/<classname>/<methodname>
}}}
While the correct reference permalink for a method is
{{{
/reference/classes/<classname>/<methodname>
}}}
The following patch removes the `post_type_link` filter from the parser as
it's not needed for the reference.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3680>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list