[wp-trac] [WordPress Trac] #16782: PHP5-Port - WP_Error Class

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 7 01:04:25 UTC 2011


#16782: PHP5-Port - WP_Error Class
------------------------------------+------------------------------
 Reporter:  hakre                   |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  General                 |     Version:  3.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------
Changes (by hakre):

 * keywords:  has-patch => has-patch dev-feedback


Comment:

 Please review the patch. I would like to get feedback on the issue: How to
 deal with constructors return something which is not possible with PHP.
 Normally it's thrown an exception which is something new, therefore the
 patch contains a general WP_Exception.

 Feedback appreciated. The WP_Error class is a nice and small class to
 start with such IMHO.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16782#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list