Head, Footer and Post Injections - Version 3.1.5

Version Description

  • Fixed wrong injection in amp pages
Download this release

Release Info

Developer satollo
Plugin Icon wp plugin Head, Footer and Post Injections
Version 3.1.5
Comparing to
See all releases

Code changes from version 3.1.4 to 3.1.5

Files changed (2) hide show
  1. plugin.php +3 -2
  2. readme.txt +6 -2
plugin.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Head, Footer and Post Injections
5
  Plugin URI: http://www.satollo.net/plugins/header-footer
6
  Description: Header and Footer lets to add html/javascript code to the head and footer and posts of your blog. Some examples are provided on the <a href="http://www.satollo.net/plugins/header-footer">official page</a>.
7
- Version: 3.1.4
8
  Author: Stefano Lissa
9
  Author URI: http://www.satollo.net
10
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
@@ -88,7 +88,8 @@ $hefo_generic_block = array();
88
 
89
  function hefo_template_redirect() {
90
  global $hefo_body_block, $hefo_generic_block, $hefo_options, $hefo_is_mobile;
91
-
 
92
 
93
  if ($hefo_is_mobile && isset($hefo_options['mobile_body_enabled'])) {
94
  $hefo_body_block = hefo_execute_option('mobile_body');
4
  Plugin Name: Head, Footer and Post Injections
5
  Plugin URI: http://www.satollo.net/plugins/header-footer
6
  Description: Header and Footer lets to add html/javascript code to the head and footer and posts of your blog. Some examples are provided on the <a href="http://www.satollo.net/plugins/header-footer">official page</a>.
7
+ Version: 3.1.5
8
  Author: Stefano Lissa
9
  Author URI: http://www.satollo.net
10
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
88
 
89
  function hefo_template_redirect() {
90
  global $hefo_body_block, $hefo_generic_block, $hefo_options, $hefo_is_mobile;
91
+
92
+ if (function_exists('is_amp_endpoint') && is_amp_endpoint()) return;
93
 
94
  if ($hefo_is_mobile && isset($hefo_options['mobile_body_enabled'])) {
95
  $hefo_body_block = hefo_execute_option('mobile_body');
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: header, footer, blog, page, single, post, head, tracking, facebook, og meta tag, open graph, ads, adsense, injections, analytics, amp, pixel
3
  Requires at least: 3.0
4
  Tested up to: 5.3.2
5
- Stable tag: 3.1.4
6
  Donate link: http://www.satollo.net/donations
7
  Contributors: satollo
8
 
@@ -70,7 +70,7 @@ Other plugins by Stefano Lissa:
70
  * [Newsletter](http://www.thenewsletterplugin.com)
71
  * [Include Me](http://www.satollo.net/plugins/include-me)
72
  * [Thumbnails](http://www.satollo.net/plugins/thumbnails)
73
- * [Ads for bbPress](http://www.satollo.net/plugins/ads-bbpress)
74
 
75
  = Translation =
76
 
@@ -95,6 +95,10 @@ FAQs are answered on [Header and Footer](http://www.satollo.net/plugins/header-f
95
 
96
  == Changelog ==
97
 
 
 
 
 
98
  = 3.1.4 =
99
 
100
  * Performance optimization
2
  Tags: header, footer, blog, page, single, post, head, tracking, facebook, og meta tag, open graph, ads, adsense, injections, analytics, amp, pixel
3
  Requires at least: 3.0
4
  Tested up to: 5.3.2
5
+ Stable tag: 3.1.5
6
  Donate link: http://www.satollo.net/donations
7
  Contributors: satollo
8
 
70
  * [Newsletter](http://www.thenewsletterplugin.com)
71
  * [Include Me](http://www.satollo.net/plugins/include-me)
72
  * [Thumbnails](http://www.satollo.net/plugins/thumbnails)
73
+ * [Ads for bbPress](https://wordpress.org/plugins/ads-bbpress/)
74
 
75
  = Translation =
76
 
95
 
96
  == Changelog ==
97
 
98
+ = 3.1.5 =
99
+
100
+ * Fixed wrong injection in amp pages
101
+
102
  = 3.1.4 =
103
 
104
  * Performance optimization