Repository navigation
Conversation
Every post request went to /wp/v2/posts, so pages and custom post types could not be opened, listed, created or viewed. - Read each post type's REST route from /wp/v2/types on connect (rest_namespace + rest_base), falling back to the core post and page routes if that request fails. - Add an optional postType to wp_list_posts, wp_open_post, wp_create_post and wp_view_post. Opening or viewing by ID alone tries the site's editable types (posts, pages, then custom types) and moves on only on a 404. - Route metadata updates and the post health check through the open post's type. - Include post_type in command objects, so pre-open and channel notifications open the right type and the plugin's "Editing: ..." title lookup no longer assumes 'post'. - Show "Type: <slug>" in read output for anything other than posts. Fixes pento#60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Test plan