Can‘t get posts after update from V5.9.9
-
After I updated from V5.9.9 to V5.10.0, I found that I could not get posts through ‘query_args’, then I looked at the source code and found that the boxed code in the figure below was very strange:
meta-box\inc\fields\post.php
It means “if the current user does not have permission to read the post, then continue” Is it wrong here, it should be “if the current user has permission to read the post, then continue”.
Then I modified the code as follows, and the function returned to normal:
if ( current_user_can( 'read_post', $post ) ) {
continue;
}I hope it can be corrected, thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.