[wp-trac] [WordPress Trac] #28203: Improve inline docs description for WP_Error::__construct()

WordPress Trac noreply at wordpress.org
Sat May 10 13:45:36 UTC 2014


#28203: Improve inline docs description for WP_Error::__construct()
--------------------------+-----------------------------
 Reporter:  jdgrimes      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  2.7
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The docblock description of `WP_Error::__construct()` is confusing.

 {{{
          * If code parameter is empty then nothing will be done. It is
 possible to
          * add multiple messages to the same code, but with other methods
 in the
          * class.
          *
          * All parameters are optional, but if the code parameter is set,
 then the
          * data parameter is optional.
 }}}

 Introduced in [8900].

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


More information about the wp-trac mailing list