-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
render_block_core_latest_posts() use get_posts() instead of wp_get_recen… #11984
Conversation
8ae5857
to
b252b4c
Compare
@swissspidy Hello! Can you please check if it looks like what you suggested? |
23ec043
to
2bbbecd
Compare
@swissspidy is there a chance to include this change to WP 5.0? |
7a85740
to
74863ce
Compare
@grey-rsi Would you mind rebasing or merging the master branch into yours to fix the conflict? Thanks! After that I think this is good to go. |
@swissspidy sorry for delay, missed your comment. I have merged my changes so it should be fine now |
967e9ea
to
3521d2e
Compare
@swissspidy can you please update if you're going to include this to WP 5.0 or 5.0.1? We will be very appreciate if you can include it. Thanks! |
@grey-rsi Thanks for the ping. This is not really my call to make, but I think it's ready for inclusion in 5.0.1. I updated the milestone accordingly. |
@swissspidy Thanks a lot for the reply! |
@grey-rsi Would you mind making a patch for this change against the WordPress 5.0 branch and upload it to https://core.trac.wordpress.org/ticket/45349? Thanks! |
@swissspidy added a patch file, Thanks for update! |
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.
This needs more testing before we can merge confidently. Punting to the next release.
@grey-rsi - it looks like there are some e2e test failures which might be caused by some changes introduced in this PR. It would be surprising, but I would recommend bringing this branch up to date with the latest changes applied to |
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.
Thanks for the work, @grey-rsi! (edit: my approval implies addressing the e2e item raised by gziolo)
@grey-rsi congratulation on your first code contribution to Gutenberg 🎉 |
@mcsf @gziolo @swissspidy I really appreciate your help, Thanks a lot guys! |
…cen… (#11984) * render_block_core_latest_posts() use get_posts() instead of wp_get_recent_posts() * small fix * small fix
…cen… (#11984) * render_block_core_latest_posts() use get_posts() instead of wp_get_recent_posts() * small fix * small fix
…t_posts()
Description
Use get_posts() instead of wp_get_recent_posts(). In this way, thirty-party plugins don't have a limitation in filtering query results
it was proposed here #11195 (comment)
Checklist: