Merge pull request #10677 from shivapoudel/wp-json-encode

Use of wp_json_encode since WC 2.6 requires at least WP 4.4+
This commit is contained in:
Mike Jolley 2016-04-15 10:12:16 -05:00
commit 1824b61355
1 changed files with 1 additions and 1 deletions

View File

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