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)

#1 @jacobsantos
7 years ago

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

#2 @ryan
7 years ago

Patches need refresh.

#3 @ryan
7 years ago

  • Component changed from General to Taxonomy
  • Owner anonymous deleted

#4 @westi
7 years ago

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

#5 @westi
7 years ago

That fixes some of them

#6 @jacobsantos
7 years ago

Still need to fix the inline documentation.

#7 @ryan
7 years ago

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

#8 @alexdunae
7 years ago

  • Cc alexdunae added

#9 @jacobsantos
7 years ago

What else needs to be done to close this ticket?

#10 @mattyrob
7 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.