[wp-trac] [WordPress Trac] #21888: Correct wp_count_terms() @return value

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 14 09:48:08 UTC 2012


#21888: Correct wp_count_terms() @return value
----------------------------+--------------------------
 Reporter:  SergeyBiryukov  |       Type:  defect (bug)
   Status:  new             |   Priority:  normal
Milestone:  3.5             |  Component:  Inline Docs
  Version:                  |   Severity:  normal
 Keywords:  has-patch       |
----------------------------+--------------------------
 `wp_count_terms()` calls `get_terms()`, which returns a `WP_Error` object
 on failure: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.2/wp-
 includes/taxonomy.php#L1163

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


More information about the wp-trac mailing list