- Bugfix: WYSIWYG editor and plain text editor buttons insert footnote short code correctly (also if defined like html tag)
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@921814 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
7c038dde35
commit
6a2688058d
5 changed files with 9 additions and 3 deletions
|
@ -232,6 +232,9 @@ function footnotes_getFromString($p_str_Content)
|
|||
$l_str_EndingTag = $g_arr_FootnotesSettings[FOOTNOTE_INPUTFIELD_PLACEHOLDER_END_USERDEFINED];
|
||||
}
|
||||
|
||||
/* decode html special chars */
|
||||
$p_str_Content = htmlspecialchars_decode($p_str_Content);
|
||||
|
||||
/* check for a footnote placeholder in the current page */
|
||||
do {
|
||||
/* get first occurence of a footnote starting tag */
|
||||
|
|
|
@ -91,7 +91,7 @@ function footnotes_wysiwyg_ajax_callback() {
|
|||
require_once(dirname(__FILE__) . '/../includes/plugin-settings.php');
|
||||
|
||||
/* load footnote settings */
|
||||
$g_arr_FootnotesSettings = footnotes_filter_options(FOOTNOTE_SETTINGS_CONTAINER, Class_FootnotesSettings::$a_arr_Default_Settings, false);
|
||||
$g_arr_FootnotesSettings = footnotes_filter_options(FOOTNOTE_SETTINGS_CONTAINER, Class_FootnotesSettings::$a_arr_Default_Settings, true);
|
||||
|
||||
/* get footnote starting tag */
|
||||
$l_str_StartingTag = $g_arr_FootnotesSettings[FOOTNOTE_INPUTFIELD_PLACEHOLDER_START];
|
||||
|
|
Reference in a new issue