Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#43507 closed defect (bug) (fixed)

Update hook docs in wp-admin/edit-tag-form.php to use `WP_Term` instead of generic `object` type

Reported by: ocean90's profile ocean90 Owned by: xhezairi's profile xhezairi
Milestone: 5.1 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch
Focuses: docs Cc:

Description

wp-admin/edit-tag-form.php still uses object for all $tag parameters although we now have a specific WP_Term object, see [34997].

https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-admin/term.php?marks=23,67#L21

Attachments (1)

0001-Update-docs.patch (4.9 KB) - added by xhezairi 6 years ago.
Update hook docs to use WP_Term instead of object.

Download all attachments as: .zip

Change History (6)

@xhezairi
6 years ago

Update hook docs to use WP_Term instead of object.

#1 @xhezairi
6 years ago

  • Keywords has-patch added; needs-patch removed

#2 @netweb
6 years ago

  • Keywords good-first-bug removed
  • Owner set to xhezairi
  • Status changed from new to assigned

#3 @SergeyBiryukov
6 years ago

  • Milestone changed from Future Release to 5.0

#4 @SergeyBiryukov
6 years ago

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

In 42822:

Docs: Use WP_Term instead of generic object type for the $tag parameter in wp-admin/edit-tag-form.php hook docs.

Props xhezairi, ocean90.
Fixes #43507.

#5 @johnbillion
5 years ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.