AddFunc Head & Footer Code - Version 2.2

Version Description

23 Apr 2019

  • Fixes a PHP notice, which appeared on the login dialog when WP_DEBUG was ON.
Download this release

Release Info

Developer joerhoney
Plugin Icon AddFunc Head & Footer Code
Version 2.2
Comparing to
See all releases

Code changes from version 2.1 to 2.2

Files changed (2) hide show
  1. addfunc-head-footer-code.php +2 -1
  2. readme.txt +7 -2
addfunc-head-footer-code.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: AddFunc Head & Footer Code
4
  Plugin URI:
5
  Description: Allows administrators to add code to the <head> and/or <footer> of an individual post and/or site-wide. Ideal for scripts such as Google Analytics conversion tracking codes and any other general or page-specific JavaScript.
6
- Version: 2.1
7
  Author: AddFunc
8
  Author URI: http://profiles.wordpress.org/addfunc
9
  License: Public Domain
@@ -108,6 +108,7 @@ if(!class_exists('aFHFCClass')) :
108
  $body_code = new aFHFCClass;
109
  $tape = ob_get_clean();
110
  $pattern = '/<[bB][oO][dD][yY]\s[A-Za-z]{2,5}[A-Za-z0-9 "_,=%*\'\/():;\[\]\-\.]+>|<body>/';
 
111
  preg_match($pattern,$tape,$queue);
112
  $q = $queue[0];
113
  $q = $q.$body_code->output_body_code();
3
  Plugin Name: AddFunc Head & Footer Code
4
  Plugin URI:
5
  Description: Allows administrators to add code to the &lt;head&gt; and/or &lt;footer&gt; of an individual post and/or site-wide. Ideal for scripts such as Google Analytics conversion tracking codes and any other general or page-specific JavaScript.
6
+ Version: 2.2
7
  Author: AddFunc
8
  Author URI: http://profiles.wordpress.org/addfunc
9
  License: Public Domain
108
  $body_code = new aFHFCClass;
109
  $tape = ob_get_clean();
110
  $pattern = '/<[bB][oO][dD][yY]\s[A-Za-z]{2,5}[A-Za-z0-9 "_,=%*\'\/():;\[\]\-\.]+>|<body>/';
111
+ $queue = array();
112
  preg_match($pattern,$tape,$queue);
113
  $q = $queue[0];
114
  $q = $q.$body_code->output_body_code();
readme.txt CHANGED
@@ -5,8 +5,8 @@ Contributors: AddFunc,joerhoney
5
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7AF7P3TFKQ2C2
6
  Tags: head code, footer code, add to head, per page, tracking code, Google Analytics, javascript, meta tags, wp_head, wp_footer, body tag code, opening body tag
7
  Requires at least: 3.0.1
8
- Tested up to: 5.0
9
- Stable tag: 2.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -64,6 +64,11 @@ Yes. [addfunc.com](http://addfunc.com/)
64
 
65
  == Changelog ==
66
 
 
 
 
 
 
67
  = 2.1 =
68
  28 Nov 2018
69
 
5
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7AF7P3TFKQ2C2
6
  Tags: head code, footer code, add to head, per page, tracking code, Google Analytics, javascript, meta tags, wp_head, wp_footer, body tag code, opening body tag
7
  Requires at least: 3.0.1
8
+ Tested up to: 5.1
9
+ Stable tag: 2.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
64
 
65
  == Changelog ==
66
 
67
+ = 2.2 =
68
+ 23 Apr 2019
69
+
70
+ * Fixes a PHP notice, which appeared on the login dialog when WP_DEBUG was ON.
71
+
72
  = 2.1 =
73
  28 Nov 2018
74