Release 1.2.3

- Bugfix: Removed 'Warning output' of Plugins activation and deactivation function (thanks to Piet Bos, Spain)
- Bugfix: Added missing meta boxes parameter on Settings page (thanks to Piet Bos, Spain)
- Bugfix: Removed Widget text formatting
- Bugfix: Load default settings value of setting doesn't exist yet (first usage)
- Bugfix: Replacement of footnotes tag on public pages with html special characters in the content
- Feature: Footnotes tag color is set to the default link color depending on the current Theme (thanks to Daniel Formo, Norway)

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@929484 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
Aricura 2014-06-10 08:51:02 +00:00
parent fbfa893886
commit 3b7e77da48
9 changed files with 37 additions and 21 deletions

View file

@ -66,6 +66,14 @@ function footnotes_filter_options($p_str_OptionsField, $p_arr_DefaultValues, $p_
$l_arr_Options[$l_str_Key] = "";
}
}
// check if each key from the default values exist in return array
foreach($p_arr_DefaultValues as $l_str_Key => $l_str_Value) {
// if key not exists, add it with its default value
if (!array_key_exists($l_str_Key, $l_arr_Options)) {
$l_arr_Options[$l_str_Key] = $l_str_Value;
}
}
/* returns the filtered array */
return $l_arr_Options;
}