Make WordPress Core

Opened 5 weeks ago

Last modified 11 days ago

#63098 new defect (bug)

Passing array in term query arg triggers fatal error

Reported by: sohan5005's profile sohan5005 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.7.2
Component: Query Keywords: has-patch
Focuses: Cc:

Description (last modified by sabernhardt)

Passing array in term query arg triggers fatal error.
For example: https://wordpress.org/news/?taxonomy=category&term%5B%5D=a&b

Just added a taxonomy & set term as an array, decoded param looks something like this:
?taxonomy=category&term[]=a&b

  • This bug is present on latest version of WordPress
  • Can be triggered by reference URL on fresh WP install

Change History (3)

#1 @sainathpoojary
5 weeks ago

Hey @sohan5005,
Thanks for raising the issue. I was able to reproduce the fatal error by following the given URL structure. I will try to look into the cause of this issue.

#2 @sabernhardt
5 weeks ago

  • Description modified (diff)
  • Summary changed from Passing array in term query arg triggers fetal error to Passing array in term query arg triggers fatal error

Is this the same issue as #57300 ?

This ticket was mentioned in PR #8669 on WordPress/wordpress-develop by @sukhendu2002.


11 days ago
#3

  • Keywords has-patch added; needs-patch removed
Note: See TracTickets for help on using tickets.