Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59049 closed defect (bug) (duplicate)

post__in array(0) workaround no longer works in 6.3

Reported by: Youdaman Owned by:
Priority: normal Milestone:
Component: Query Version: 6.3
Severity: major Keywords:
Cc: Focuses: privacy

Description

Opening a new issue as per comment and subsequent instruction here https://core.trac.wordpress.org/ticket/28099#comment:32

The previous hack of passing array(0) to post__in to return no posts no longer works, and instead displays all posts.

This has consequences for any developers using this method for content privacy/segregation.

Change History (3)

#1 @Youdaman
3 years ago

  • Resolution → invalid
  • Status new → closed
Last edited 3 years ago by Youdaman (previous) (diff)

#2 @swissspidy
3 years ago

  • Milestone Awaiting Review
  • Resolution invalid → duplicate

Duplicate of #28099.

#3 @SergeyBiryukov
3 years ago

  • Component General → Query
Note: See TracTickets for help on using tickets.