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.
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
Add Indexable visibility columns #17757
base: trunk
Are you sure you want to change the base?
Add Indexable visibility columns #17757
Changes from 1 commit
b3fd2cd
87c11c3
2eef6e2
b5bc8db
6c015ba
3d96968
acdf97a
e18c9ac
58d6a71
b7cfa04
c2d121e
38b552d
2fdce2f
3a18f72
5e89640
0a38f49
81e7421
1564f53
ecae28e
ea0a46e
6ccacd5
ccf7f9b
af7b219
510f9de
ed46abb
ff247f9
ca85a07
faf1180
f6a8adf
274df53
d51829e
5c1193a
661e9a3
82f8a78
66d6e4d
cf56df4
68aba31
3329a1b
e906ace
29739ee
66c9433
9eb9263
0c9ac1a
2059186
b95492e
101edcf
5d095a5
d8f754f
f613dfc
3e7e755
c24488e
4ed8b38
275c423
08c1f5f
e1c5055
6cf15bf
bad2929
148d47c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
idea: how about getting post ID's for an author first and iterating over those - using primary keys seems more efficient than where-ing over a set of fields.
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.
Maybe a check if $post_types is array here, before merging it to the $replacement?
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.
Yes! that could've been a nasty bug. I added validation higher up in the get_author_post_types so we're sure that we get an array.