[wp-trac] [WordPress Trac] #39945: WP_Query::get_posts fails to correctly sanitize 'posts_per_page'

WordPress Trac noreply at wordpress.org
Sun Feb 1 03:50:04 UTC 2026


#39945: WP_Query::get_posts fails to correctly sanitize 'posts_per_page'
-------------------------------------------------+-------------------------
 Reporter:  biisent                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Query                                |     Version:  4.7.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-refresh  |     Focuses:
-------------------------------------------------+-------------------------
Changes (by huzaifaalmesbah):

 * keywords:  has-patch needs-testing 2nd-opinion => has-patch 2nd-opinion
     needs-refresh


Comment:

 `39945.diff` failed to apply against `WordPress 7.0-alpha` with conflicts
 in `wp-includes/class-wp-query.php`.

 **Recommendation:**
 Since the ticket is 9 years old, verify the issue persists in the current
 codebase before refreshing.

 Removed `needs-testing` because the patch fails to apply, rendering
 testing meaningless. Added `needs-refresh`.

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


More information about the wp-trac mailing list