[wp-trac] [WordPress Trac] #58426: Bug: Query Loop: Authors filter generates posts of only first selected author.

WordPress Trac noreply at wordpress.org
Tue May 30 06:27:57 UTC 2023


#58426: Bug: Query Loop: Authors filter generates posts of only first selected
author.
----------------------------------------+-----------------------
 Reporter:  adi3890                     |       Owner:  (none)
     Type:  defect (bug)                |      Status:  assigned
 Priority:  normal                      |   Milestone:  6.3
Component:  Editor                      |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch has-testing-info  |     Focuses:
----------------------------------------+-----------------------
Changes (by costdev):

 * keywords:  has-patch => has-patch has-testing-info
 * component:  General => Editor
 * milestone:  Awaiting Review => 6.3


Comment:

 == Test Report

 Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress
 /wordpress-develop/pull/4521.diff

 === Steps to Reproduce or Test
 1. Create two additional author users: `Author 1` and `Author 2`.
 2. Create two posts. Assign `Author 1` to the first, and `Author 2` to the
 second.
 3. Create a new post as the default `admin` user.
 4. Add a Query Loop block.
 5. Click the `+` in the `Filters` section and select `Authors`.
 6. Add `Author 1` and `Author 2`.
 7. Save the post.
 8. 🐞 View the post on the frontend.

 === Expected Results
 When reproducing a bug:
 - ❌ Only the post assigned to `Author 1` is shown.

 When testing a patch to validate it works as expected:
 - ✅ Posts by both `Author 1` and `Author 2` should be shown.

 === Environment
 - WordPress: 6.3-alpha-55505
 - PHP: 7.4.33
 - Server: Apache/2.4.56 (Ubuntu)
 - Database: mysqli (Server: 5.7.41-0ubuntu0.18.04.1 / Client: mysqlnd
 7.4.33)
 - Browser: Chrome 113.0.0.0 (Windows 10/11)
 - Theme: Twenty Twenty-Three 1.1
 - MU-Plugins: None activated.
 - Plugins: None activated.

 ==== Actual Results
 When reproducing a bug/defect:
 - ❌ Only the post assigned to `Author 1` was shown. Issue reproduced.

 When testing the bugfix patch:
 - ✅ Posts by both `Author 1` and `Author 2` were shown. Issue resolved
 with the patch.

 -----

 - Moving to the `Editor` component and milestoning for 6.3.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58426#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list