[wp-trac] [WordPress Trac] #42253: Adjust the inline docs for register_taxonomy() and WP_Taxonomy::set_props()

WordPress Trac noreply at wordpress.org
Tue Oct 17 18:13:58 UTC 2017


#42253: Adjust the inline docs for register_taxonomy() and WP_Taxonomy::set_props()
-------------------------+-----------------------------
 Reporter:  birgire      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Taxonomy     |    Version:  4.7
 Severity:  normal       |   Keywords:
  Focuses:  docs         |
-------------------------+-----------------------------
 The {{{register_taxonomy()}}} is a wrapper for a {{{WP_Taxonomy}}} object.

 To avoid duplication, we should adjust the inline documentation for that
 function.

 It looks like the {{{WP_Taxonomy::set_props()}}} method should contain the
 main documentation.

 Similarly one can check out the documentation of the {{{get_posts()}}}
 function, that's a wrapper for a {{{WP_Query}}} object.

 Reference:

 {{{WP_Taxonomy::set_props()}}}

 https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-includes/class-
 wp-taxonomy.php#L249

 {{{register_taxonomy()}}}
 https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
 includes/taxonomy.php#L371

 {{{get_posts()}}}
 https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
 includes/post.php#L1646

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42253>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list