[wp-trac] [WordPress Trac] #32786: In get_edit_term_link: $term validation

WordPress Trac noreply at wordpress.org
Fri Jun 26 00:17:09 UTC 2015

#32786: In get_edit_term_link: $term validation
 Reporter:  tmatsuur     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:  4.2.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
Changes (by MikeHansenMe):

 * keywords:  has-patch needs-unit-tests => has-patch


 [attachment: 32786.2.diff] has 4 unit tests.

 1. Valid Scenario
 2. Invalid Term ID
 3. Empty Term ID
 4. Bad Taxonomy

 When writing the tests I realized that $tax had the same problem as $term.
 The fourth test checks this. The patch corrects this.

Ticket URL: <https://core.trac.wordpress.org/ticket/32786#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list