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

Data Module: Refactor the Post Type Capabilities fetching to use the data module #5875

Closed
wants to merge 1 commit into from

Conversation

youknowriad
Copy link
Contributor

This pull request is part of a series of pull request targeted at more complex use of selector resolvers introduced in #5219.

The current PR moves the fetching of the post type user capabilities to the data module.

Testing instructions

Check that you can publish properly and that the sidebar panels show up as expected.

@youknowriad youknowriad self-assigned this Mar 29, 2018
yield receiveUserPostTypeCapabilities( postTypeSlug, userWithCapabilities.post_type_capabilities );
}

export const getUserPostTypeCapability = getUserPostTypeCapabilities;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now this is hacky as it creates several requests if we pass different capabilities. A solution for these is being discussed in #5826

@youknowriad
Copy link
Contributor Author

Closing this as it's a bit outdated

@youknowriad youknowriad deleted the update/post-type-capabilities branch May 10, 2018 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant