[wp-trac] [WordPress Trac] #40481: Inline docs for wp_get_post_tags() and wp_get_post_terms() don't reflect possible return values

WordPress Trac noreply at wordpress.org
Wed Apr 19 13:05:39 UTC 2017


#40481: Inline docs for wp_get_post_tags() and wp_get_post_terms() don't reflect
possible return values
--------------------------+--------------------
 Reporter:  philipjohn    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.8
Component:  Taxonomy      |     Version:  4.7.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+--------------------

Comment (by theMikeD):

 While you're in there, I suggest updating the `$args` description for
 `wp_get_post_categories()`, `wp_get_post_tags()`, and
 `wp_get_post_terms()` to be both accurate and identical since they all
 refer to the same thing. Perhaps something like


 {{{
 @param array|string $args       Optional. Array of term query parameters.
 Default empty. See WP_Term_Query::__construct() for supported arguments.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40481#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list