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

WordPress Trac noreply at wordpress.org
Thu Feb 5 12:01:52 UTC 2015


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

 * milestone:  Future Release => 4.2


Comment:

 Let's do this in 4.2, to not unnecessarily stretch the time span between
 the introduction of `wp_json_encode()` and proper usage.

 @DrewAPicture: What kind of docs do you have in mind here? Just something
 simple like `// Sanity check.` for each of the changes?

 @pento: Any other reasons for using `"` instead of `'` for the strings
 than making it more look like JSON?

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


More information about the wp-trac mailing list