[wp-hackers] Why WP_Error Sucks
William P. Davis
will.davis at gmail.com
Tue Jul 24 13:20:21 UTC 2012
PHP5 is required in recent versions of WordPress, so I would agree that WP_Error should use exceptions. I would urge you to submit a patch to Trac.
Will
------Original Message------
From: Harry Metcalfe
Sender: wp-hackers-bounces at lists.automattic.com
To: wp-hackers at lists.automattic.com
ReplyTo: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] Why WP_Error Sucks
Sent: Jul 24, 2012 9:16 AM
Did someone post some stats recently about what versions of PHP in use by WP sites?
I completely agree that exceptions would be better, but presumably, that has to wait until so few people are still on PHP4 that we can make PHP5+ a requirement.
Harry
On 24 Jul 2012, at 13:56, Ryan McCue wrote:
> Hi hackers!
>
> I just posted a blog post regarding WP_Error, and why it (quite frankly)
> sucks: http://journal.ryanmccue.info/165/why-wp_error-sucks/
>
> I'd be interested to hear your thoughts on WP_Error and the possibility
> of using exceptions as well. I'd also love to hear from anyone who has
> implemented exceptions in their own plugin code.
>
> (Bonus points if you're a core developer, especially if you're westi ;) ).
>
> Cheers,
> --
> Ryan McCue
> <http://ryanmccue.info/>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
Sent from my BlackBerry
More information about the wp-hackers
mailing list