[wp-meta] [Making WordPress.org] #2847: allow filtering of @since tax archive by the type of change
Making WordPress.org
noreply at wordpress.org
Tue Jul 10 17:22:23 UTC 2018
#2847: allow filtering of @since tax archive by the type of change
------------------------------------+---------------------
Reporter: pbiron | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Developer Hub | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+---------------------
Comment (by pbiron):
2847.2.diff addresses the following:
1. does the change lookup via `term_meta` attached to each term in
`@since` (see below)
* I ended up taking a slightly different approach than I thought when
I wrote [ticket:2847#comment:1]
* but it's still much more efficient than the original patch
1. adds a `deprecated` change type to the dropdown
* see #3699
1. defaults the change type dropdown to `introduced`
* this hopefully will address the concerns in [ticket:2847#comment:6]
and [ticket:3699#comment:1]
I have also released a new version of [[https://github.com/pbiron/wp-
since|WP Since CLI]] mentioned in [ticket:2847#comment:4]. This new
version contains callbacks hooked to a couple of actions from `phpdoc-
parser` to add the necessary `term_meta` to support 2847.2.diff:
* if you've already slurped the sources with `wp parser create`, then the
first time you run `wp since` the `term_meta`'s will be added to the db
before it's output is produced
* if you haven't yet slurped the sources, then just activate the `wp-
since` plugin and when you run `wp parser create` the `term_meta`'s will
be added
* ultimately, the code in the `wp-since` plugin that adds the `term_meta`
should be incorporated into `phpdoc-parser`. But I didn't feel it was
quite ready for a PR against `phpdoc-parser`, so I did it this way
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2847#comment:9>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list