wp_json_encode is 4.1 +

This commit is contained in:
Mike Jolley 2015-08-13 12:07:12 +01:00
parent 4908131b86
commit a545a3aa02
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class WC_Admin_Pointers {
* @param array $pointers
*/
public function enqueue_pointers( $pointers ) {
$pointers = wp_json_encode( $pointers );
$pointers = json_encode( $pointers );
wp_enqueue_style( 'wp-pointer' );
wp_enqueue_script( 'wp-pointer' );
wc_enqueue_js( "