[wp-trac] [WordPress Trac] #30779: Call to undefined function wp_json_encode()

WordPress Trac noreply at wordpress.org
Wed Dec 24 06:35:07 UTC 2014


#30779: Call to undefined function wp_json_encode()
--------------------------+------------------
 Reporter:  pento         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  4.2
Component:  General       |     Version:  4.1
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------
Changes (by nacin):

 * priority:  high => low
 * severity:  major => minor
 * milestone:  Awaiting Review => 4.2


Comment:

 Yeah, I have a feeling this is happening on regular frontend hits, not
 even load-scripts.php hits, and is simply due to a bad upgrade.

 Let's see if the no-op json_encode() in load-scripts.php needs to be
 changed to wp_json_encode() or can simply be removed.

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


More information about the wp-trac mailing list