- Bugfix: uninstall function to really remove all settings done in the settings page
- Bugfix: load default settings after plugin is installed git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@919395 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
a42f55165a
commit
ca2c42eeaa
5 changed files with 29 additions and 46 deletions
|
@ -44,6 +44,10 @@ function footnotes_plugin_settings_link($links, $file)
|
|||
function footnotes_filter_options($p_str_OptionsField, $p_arr_DefaultValues, $p_bool_ConvertHtmlChars = true)
|
||||
{
|
||||
$l_arr_Options = get_option($p_str_OptionsField);
|
||||
/* if no settings set yet return default values */
|
||||
if (empty($l_arr_Options)) {
|
||||
return $p_arr_DefaultValues;
|
||||
}
|
||||
/* loop through all keys in the array and filters them */
|
||||
foreach ($l_arr_Options as $l_str_Key => $l_str_Value) {
|
||||
/* removes special chars from the settings value */
|
||||
|
|
Reference in a new issue