-
Notifications
You must be signed in to change notification settings - Fork 157
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
Fix/906 Distributable post types made consistent #907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a few notes.
I've changed the search slightly in distributable_post_types()
but need to figure out whether show_in_rest
should be a requirement for internal connections.
I'll dig in to the code.
Sorry for the double post but I noticed a number of places in which The main one I suspect should use the utility function is
The appearances in |
# Conflicts: # includes/utils.php
I think this is good to go for the changes that can go in to 1.7.0 @faisal-alvi I've made the following changes since taking the PR https://github.com/10up/distributor/pull/907/files/28878153e576b45b6d7ee99d5c362676d4e36a3d..6c3e2557b6d34ecbeedc732032ae81a59875a0ab I've created #912 for some further follow up in 2.0.0 -- the changes I think are still needed don't affect any of the UI. I've asked Darin to review as this now includes my code. |
Description of the Change
get_excluded_post_types_from_permission_list
.dt_excluded_post_types_from_permission_list
.distributable_post_types
function. Added a new parameter$output
, which supports returning the result as per the given type of output.Closes #906
How to test the Change
Changelog Entry
Credits
Props @faisal-alvi
Checklist: