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

WordPress Trac noreply at wordpress.org
Fri Dec 19 12:40:56 UTC 2014


#30779: Call to undefined function wp_json_encode()
--------------------------+-----------------------------
 Reporter:  pento         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.1
 Severity:  major         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 There seem to be some circumstances where `class.wp-scripts.php` is loaded
 without `functions.php`, which causes this error:

 {{{
 Fatal error: Call to undefined function wp_json_encode() in wp-
 includes/class.wp-scripts.php on line 186
 }}}

 When this happens, it causes the entire front end of a site to fail.
 [https://www.google.com/search?q="Call+to+undefined+function+wp_json_encode"
 Some examples].

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


More information about the wp-trac mailing list