[wp-trac] [WordPress Trac] #30613: Check the return value of wp_json_encode()

WordPress Trac noreply at wordpress.org
Wed Mar 18 23:03:35 UTC 2015


#30613: Check the return value of wp_json_encode()
--------------------------+-----------------------------
 Reporter:  pento         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-----------------------------
Changes (by pento):

 * milestone:  4.2 => Future Release


Comment:

 At the moment, the patch stops invalid JS from being generated, but that's
 still not great. Valid JS is a step up, but a long way from informing the
 user that something went wrong, or better yet - fixing the situation.

 I'm not entirely sure what form that error handling would take - I suspect
 it'll be handled differently for each case.

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


More information about the wp-trac mailing list