Add introduced, modified and deprecated version post meta to imported posts #209
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As disscussed in ticked #2847 there is no easy way to query for posts with these type of change versions. This pull request imports the different change versions as post meta.
For example, with this pull request you can now query for deprecated functions in WordPress 4.9 like this.
This pull request also assigns a deprecated
@since
version term to imported (deprecated) posts.See ticket #3699
This allows for deprecated posts to also be included in the since archives. Some deprecated versions (in the source code DocBlocks) are not correctly formatted. That's why a new function
maybe_version()
is used to do a very minimal check before assigning term and meta versions.Without this pull request 95
@since
terms are imported (WP 4.9.8)The same number is imported with the
maybe_version()
check only added to the import of normal@since
terms.With this pull request 97
@since
terms are imported.This means 2 extra
@since
version terms (3.4.1 and mu) are imported for deprecated versions.Note This pull request is a copy of the closed pull request #205 as I had to move the changes to its own branch