WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#7358 closed defect (bug) (fixed)

term_taxonomy_ids mislabeled as term ids

Reported by: filosofo Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: term_taxonomy_id terms term documentation
Focuses: Cc:

Description

This caused me great confusion (see #7357) because both the documentation and the variable names say $term or $terms when they mean term_taxonomy_id, which is elsewhere (and more helpfully) called $tt_id or $tt_ids.

Attachments (2)

term_taxonomy_confusion.diff (6.6 KB) - added by filosofo 6 years ago.
term_taxonomy_confusion.2.diff (582 bytes) - added by filosofo 6 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 jacobsantos6 years ago

There are probably other areas where the inline documentation is incorrect in the taxonomy.php file.

comment:2 ryan6 years ago

Patches need refresh.

comment:3 ryan5 years ago

  • Component changed from General to Taxonomy
  • Owner anonymous deleted

comment:4 westi5 years ago

(In [9349]) Better variable naming. See #7358.

comment:5 westi5 years ago

That fixes some of them

comment:6 jacobsantos5 years ago

Still need to fix the inline documentation.

comment:7 ryan5 years ago

(In [9397]) phpdoc updates. see #7358

comment:8 alexdunae5 years ago

  • Cc alexdunae added

comment:9 jacobsantos5 years ago

What else needs to be done to close this ticket?

comment:10 mattyrob5 years ago

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

Can't see anything else needs done - variables and docs are done.

Note: See TracTickets for help on using tickets.