Skip to content

Commit

Permalink
json_encode flags must now be int
Browse files Browse the repository at this point in the history
  • Loading branch information
jjpmann committed Oct 19, 2023
1 parent ac2d213 commit 4ab56b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ public function admin_enqueue_scripts() {
'wp-jarvis',
sprintf(
'window.jarvis = new Jarvis(%s, %s);',
wp_json_encode( $this->get_options(), ( WP_DEBUG ? JSON_PRETTY_PRINT : null ) ),
wp_json_encode( $this->get_suggestions(), ( WP_DEBUG ? JSON_PRETTY_PRINT : null ) )
wp_json_encode( $this->get_options(), ( WP_DEBUG ? JSON_PRETTY_PRINT : 0 ) ),
wp_json_encode( $this->get_suggestions(), ( WP_DEBUG ? JSON_PRETTY_PRINT : 0 ) )
),
'after'
);
Expand Down

0 comments on commit 4ab56b9

Please sign in to comment.