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:
commit
1824b61355
|
@ -220,7 +220,7 @@ class WC_Admin_Pointers {
|
||||||
* @param array $pointers
|
* @param array $pointers
|
||||||
*/
|
*/
|
||||||
public function enqueue_pointers( $pointers ) {
|
public function enqueue_pointers( $pointers ) {
|
||||||
$pointers = json_encode( $pointers );
|
$pointers = wp_json_encode( $pointers );
|
||||||
wp_enqueue_style( 'wp-pointer' );
|
wp_enqueue_style( 'wp-pointer' );
|
||||||
wp_enqueue_script( 'wp-pointer' );
|
wp_enqueue_script( 'wp-pointer' );
|
||||||
wc_enqueue_js( "
|
wc_enqueue_js( "
|
||||||
|
|
Loading…
Reference in New Issue