| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Easy Footnotes |
| 4 | 4 | * Plugin URI: https://jasonyingling.me/easy-footnotes-wordpress/ |
| 5 | 5 | * Description: Easily add footnotes to your posts with a simple shortcode. |
| 6 | - * Version: 1.1.2 | |
| 6 | + * Version: 1.1.1 | |
| 7 | 7 | * Author: Jason Yingling |
| 8 | 8 | * Author URI: https://jasonyingling.me |
| 9 | 9 | * License: GPL2 |
| 10 | 10 | * |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | /** |
| 48 | 48 | * Constructing the initial plugin options, shortcodes, and hooks. |
| 49 | 49 | */ |
| 50 | 50 | public function __construct() { |
| 51 | - $this->footnoteSettings = array( | |
| 51 | + $footnoteSettings = array( | |
| 52 | 52 | 'footnoteLabel' => __( 'Footnotes', 'easy-footnotes' ), |
| 53 | 53 | 'useLabel' => false, |
| 54 | 54 | 'hide_easy_footnote_after_posts' => false, |
| 55 | 55 | 'show_easy_footnote_on_front' => false, |
| @@ -160,12 +160,11 @@ | ||
| 160 | 160 | if ( ( is_singular() || $efn_show_on_front ) && is_main_query() ) { |
| 161 | 161 | $footnotesInsert = $this->footnotes; |
| 162 | 162 | |
| 163 | 163 | $footnoteCopy = ''; |
| 164 | - $efn_output = ''; | |
| 165 | 164 | |
| 166 | - $useLabel = isset( $this->footnoteOptions['useLabel'] ) ? $this->footnoteOptions['useLabel'] : false; | |
| 167 | - $efLabel = isset($this->footnoteOptions['footnoteLabel'] ) ? $this->footnoteOptions['footnoteLabel'] : __( 'Footnotes', 'easy-footnotes' ); | |
| 165 | + $useLabel = $this->footnoteOptions['useLabel']; | |
| 166 | + $efLabel = $this->footnoteOptions['footnoteLabel']; | |
| 168 | 167 | |
| 169 | 168 | $post_id = get_the_ID(); |
| 170 | 169 | |
| 171 | 170 | foreach ( $footnotesInsert as $count => $footnote ) { |
| @@ -176,9 +175,9 @@ | ||
| 176 | 175 | $footnote_label = '<h4>' . esc_html( $efLabel ) . '</h4>'; |
| 177 | 176 | // Filter for editing footnote label markup and output. |
| 178 | 177 | $footnote_label = apply_filters( 'efn_footnote_label', $footnote_label, $efLabel ); |
| 179 | 178 | |
| 180 | - $efn_output .= sprintf( | |
| 179 | + $efn_output = sprintf( | |
| 181 | 180 | '<div class="easy-footnote-title"> |
| 182 | 181 | %s |
| 183 | 182 | </div>', |
| 184 | 183 | $footnote_label |