Skip to content

Commit

Permalink
Define json_encode() in load-scripts.php. fixes #19524 for 3.3.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/3.3@19637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Dec 30, 2011
1 parent fd2cfdf commit f50c0c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wp-admin/load-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ function includes_url() {}
*/
function wp_guess_url() {}

if ( ! function_exists( 'json_encode' ) ) :
/**
* @ignore
*/
function json_encode() {}
endif;

function get_file($path) {

if ( function_exists('realpath') )
Expand Down

0 comments on commit f50c0c9

Please sign in to comment.