diff --git a/wp-content/plugins/wp-footnotes/footnotes.php b/wp-content/plugins/wp-footnotes/footnotes.php index f2449a37a8515f797b51db5c838e22f7a8a76fec..48e7c17c1fdc2e48a652c27ed66d8a1aff51fe6c 100644 --- a/wp-content/plugins/wp-footnotes/footnotes.php +++ b/wp-content/plugins/wp-footnotes/footnotes.php @@ -85,7 +85,8 @@ class swas_wp_footnotes { } else { // Set any unset options - if ($this->current_options['version'] != WP_FOOTNOTES_VERSION) { + if ( !isset( $this->current_options['version'] ) || $this->current_options['version'] != WP_FOOTNOTES_VERSION ) { + foreach ($this->default_options as $key => $value) { if (!isset($this->current_options[$key])) { $this->current_options[$key] = $value; @@ -197,7 +198,7 @@ class swas_wp_footnotes { // Add footnote and record the key $identifiers[$i]['use_footnote'] = count($footnotes); $footnotes[$identifiers[$i]['use_footnote']]['text'] = $identifiers[$i]['text']; - $footnotes[$identifiers[$i]['use_footnote']]['symbol'] = $identifiers[$i]['symbol']; + $footnotes[$identifiers[$i]['use_footnote']]['symbol'] = isset( $identifiers[$i]['symbol'] ) ? $identifiers[$i]['symbol'] : ''; $footnotes[$identifiers[$i]['use_footnote']]['identifiers'][] = $i; } } @@ -270,7 +271,7 @@ class swas_wp_footnotes { */ function add_options_page() { // Add a new menu under Options: - add_options_page('Footnotes', 'Footnotes', 8, __FILE__, array($this, 'footnotes_options_page')); + add_options_page('Footnotes', 'Footnotes', 'manage_options', __FILE__, array($this, 'footnotes_options_page')); } diff --git a/wp-content/plugins/wp-footnotes/options.php b/wp-content/plugins/wp-footnotes/options.php index 273c29c533c76c6824bc4b1741a08108d474d986..16bd7277ef383b47e35f37d25a751a10ec174b3f 100644 --- a/wp-content/plugins/wp-footnotes/options.php +++ b/wp-content/plugins/wp-footnotes/options.php @@ -44,6 +44,10 @@