Replace discouraged function

This commit is contained in:
Ben Goldsworthy 2021-02-21 11:26:05 +00:00
parent c2f0720118
commit df4c988cc7

View file

@ -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_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 ); $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( array(
'start' => htmlspecialchars( $l_str_starting_tag ), 'start' => htmlspecialchars( $l_str_starting_tag ),
'end' => htmlspecialchars( $l_str_ending_tag ), 'end' => htmlspecialchars( $l_str_ending_tag ),