WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#39234 closed defect (bug) (invalid)

REST API: filter[pagename] no longer filters

Reported by: reekrd Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: REST API Keywords:
Focuses: Cc:

Description

After updating from 4.6 to 4.7 I deactivated WP Rest API.

The route localhost/wp-json/wp/v2/pages?filter[pagename]=parentpage/childpage no longer filters. Instead it returns the parent page and all it's children.

I activated the plugin. Same result.

I downgraded to 4.6 and it works as expected.

Change History (2)

#1 follow-up: @ocean90
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hello @reekrd, welcome to WordPress Trac!

The filter parameter has been removed in [38968], see #38378. To restore the filter parameter you can use https://github.com/wp-api/rest-filter.

#2 in reply to: ↑ 1 @reekrd
3 years ago

Thanks.

I guess my trac searching skills are up to to par.

Replying to ocean90:

Hello @reekrd, welcome to WordPress Trac!

The filter parameter has been removed in [38968], see #38378. To restore the filter parameter you can use https://github.com/wp-api/rest-filter.

Note: See TracTickets for help on using tickets.