From df4c988cc73a1727c8d0786a72605d4b8ac527e5 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 21 Feb 2021 11:26:05 +0000 Subject: [PATCH] Replace discouraged function --- class/wysiwyg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/wysiwyg.php b/class/wysiwyg.php index 34ce8fd..42eb9bd 100644 --- a/class/wysiwyg.php +++ b/class/wysiwyg.php @@ -77,7 +77,7 @@ class MCI_Footnotes_WYSIWYG { $l_str_starting_tag = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED ); $l_str_ending_tag = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED ); } - echo json_encode( + echo wp_json_encode( array( 'start' => htmlspecialchars( $l_str_starting_tag ), 'end' => htmlspecialchars( $l_str_ending_tag ),