Make WordPress Core

Opened 7 years ago

Closed 7 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:


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 7 years ago.
term_taxonomy_confusion.2.diff (582 bytes) - added by filosofo 7 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 @jacobsantos7 years ago

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

comment:2 @ryan7 years ago

Patches need refresh.

comment:3 @ryan7 years ago

  • Component changed from General to Taxonomy
  • Owner anonymous deleted

comment:4 @westi7 years ago

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

comment:5 @westi7 years ago

That fixes some of them

comment:6 @jacobsantos7 years ago

Still need to fix the inline documentation.

comment:7 @ryan7 years ago

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

comment:8 @alexdunae7 years ago

  • Cc alexdunae added

comment:9 @jacobsantos7 years ago

What else needs to be done to close this ticket?

comment:10 @mattyrob7 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.