Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPCOM merge: list post type taxonomies endpoint #9428

Merged
merged 3 commits into from
Apr 30, 2018

Conversation

nylen
Copy link
Contributor

@nylen nylen commented Apr 26, 2018

r146417-wpcom - has tests on .com side.

Andrew Duthie and others added 3 commits April 26, 2018 18:43
This revision seeks to resolve an issue where localized requests for taxonomies for themes where custom taxonomy associations exist will not preserve those associations.

For example, themes where "featured-content" is supported (e.g. Sketch) register the "post_tag" taxonomy for "page" types. If a request is issued with locale specified for this site to retrieve page taxonomies, previously the "post_tag" taxonomy was not returned.

The fix here is to track taxonomies for the requested post type before calling this method, then reapplying them after create_initial_taxonomies is called.

We need to call create_initial_taxonomies because it runs very early in the page lifecycle, before localization has had a chance to take effect.

See: Automattic/wp-calypso#6934 (comment)
Differential Revision: D3465

Merges r146417-wpcom.
…that defines it.

Details: https://[private link]

Merges r161691-wpcom.
Copy link
Member

@dereksmart dereksmart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dereksmart dereksmart added [Feature] WPCOM API [Status] Ready to Merge Go ahead, you can push that green button! labels Apr 26, 2018
@dereksmart dereksmart merged commit eeb7243 into master Apr 30, 2018
@ghost ghost removed the [Status] Ready to Merge Go ahead, you can push that green button! label Apr 30, 2018
@dereksmart dereksmart deleted the sync/list-post-type-taxonomies-endpoint branch April 30, 2018 18:53
@oskosk oskosk added this to the 6.2 milestone May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants