WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16857 closed defect (bug) (fixed)

[15613] -> no more _make_cat_compat() on queried_object

Reported by: duck_ Owned by:
Milestone: 3.1.1 Priority: normal
Severity: normal Version: 3.1
Component: Query Keywords: has-patch
Focuses: Cc:

Description

[15613] condensed the three different tax handling branches in WP_Query::get_queried_object() into one using calls to get_term or get_term_by. This means that there is no longer a call to _make_cat_compat() when is_category so a category object is missing the backwards compatible cat_* properties.

Reported in #wordpress-dev by kennetha

Attachments (1)

16857.diff (558 bytes) - added by scribu 3 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 nacin3 years ago

  • Milestone changed from Awaiting Review to 3.1.1

scribu3 years ago

comment:2 scribu3 years ago

  • Keywords has-patch added; needs-patch removed

comment:3 ryan3 years ago

Looks good.

comment:4 ryan3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [17528]) Add back compat fields to queried category objects. Props scribu, duck_. fixes #16857 for trunk

comment:5 ryan3 years ago

(In [17529]) Add back compat fields to queried category objects. Props scribu, duck_. fixes #16857 for 3.1

Note: See TracTickets for help on using tickets.