[wp-trac] [WordPress Trac] #37867: Document return types for create/create_and_get/create_many() methods of factory classes

WordPress Trac noreply at wordpress.org
Mon Aug 29 15:27:56 UTC 2016


#37867: Document return types for create/create_and_get/create_many() methods of
factory classes
------------------------------+------------------------------
 Reporter:  jdgrimes          |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  3.7
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  docs
------------------------------+------------------------------
Changes (by jdgrimes):

 * keywords:  reporter-feedback 2nd-opinion =>


Comment:

 [attachment:37867.diff] is a first pass, probably we should decide on a
 standard for the class descriptions here. What I used differs from the one
 for bookmarks, which is the only one that had a docblock. I have omitted
 `@since` tags, although they could also be added, and
 [https://core.trac.wordpress.org/browser/trunk/tests/includes/factory.php?rev=25002
 I guess would be 3.7].

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


More information about the wp-trac mailing list