[wp-trac] [WordPress Trac] #24343: Correct inline docs for hook parameters for wp_delete_term()

WordPress Trac noreply at wordpress.org
Wed May 15 08:09:53 UTC 2013


#24343: Correct inline docs for hook parameters for wp_delete_term()
----------------------------+-----------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  3.6
Component:  Inline Docs     |    Version:  2.6
 Severity:  normal          |   Keywords:
----------------------------+-----------------
 According to `@uses` comment in `wp_delete_term()`, `delete_term` and
 `delete_$taxonomy` actions receive term object and term ID as the first
 two parameters: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
 includes/taxonomy.php#L1754

 This isn't the case. `$term` is an ID, so the first two parameters are
 term ID and term taxonomy ID: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
 includes/taxonomy.php#L1838

 The comment also doesn't reflect the change in [21939].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24343>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list