Ticket #11827: patch-compat.diff
File patch-compat.diff, 733 bytes (added by , 15 years ago) |
---|
-
wp-includes/compat.php
129 129 global $wp_json; 130 130 131 131 if ( !is_a($wp_json, 'Services_JSON') ) { 132 require_once( 'class-json.php' ); 132 if ( !in_array('Services_JSON', get_declared_classes() ) ) 133 require_once( 'class-json.php' ); 134 133 135 $wp_json = new Services_JSON(); 134 136 } 135 137 … … 142 144 global $wp_json; 143 145 144 146 if ( !is_a($wp_json, 'Services_JSON') ) { 145 require_once( 'class-json.php' ); 147 if ( !in_array('Services_JSON', get_declared_classes() ) ) 148 require_once( 'class-json.php' ); 149 146 150 $wp_json = new Services_JSON(); 147 151 } 148 152