Head, Footer and Post Injections - Version 3.2.1

Version Description

  • Fixed a PHP notice on admin side when creating a new page
Download this release

Release Info

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

Code changes from version 3.2.0 to 3.2.1

Files changed (3) hide show
  1. admin/admin.php +2 -0
  2. plugin.php +1 -1
  3. readme.txt +6 -1
admin/admin.php CHANGED
@@ -62,6 +62,8 @@ function hefo_meta_boxes_callback($post) {
62
 
63
  function hefo_save_post($post_id) {
64
 
 
 
65
  // First we need to check if the current user is authorised to do this action.
66
  if (isset($_POST['post_type']) && 'page' == $_POST['post_type']) {
67
  if (!current_user_can('edit_page', $post_id))
62
 
63
  function hefo_save_post($post_id) {
64
 
65
+ if (!isset($_POST['hefo'])) return;
66
+
67
  // First we need to check if the current user is authorised to do this action.
68
  if (isset($_POST['post_type']) && 'page' == $_POST['post_type']) {
69
  if (!current_user_can('edit_page', $post_id))
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.2.0
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.
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.2.1
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.
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: 4.0
4
  Tested up to: 5.4.2
5
- Stable tag: 3.2.0
6
  Donate link: http://www.satollo.net/donations
7
  Contributors: satollo
8
  Requires PHP: 5.6
@@ -87,8 +87,13 @@ You can contribute to translate this plugin in your language on [WordPress Trans
87
 
88
  FAQs are answered on [Header and Footer](http://www.satollo.net/plugins/header-footer) page.
89
 
 
90
  == Changelog ==
91
 
 
 
 
 
92
  = 3.2.0 =
93
 
94
  * Restored controls of per post injection
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: 4.0
4
  Tested up to: 5.4.2
5
+ Stable tag: 3.2.1
6
  Donate link: http://www.satollo.net/donations
7
  Contributors: satollo
8
  Requires PHP: 5.6
87
 
88
  FAQs are answered on [Header and Footer](http://www.satollo.net/plugins/header-footer) page.
89
 
90
+
91
  == Changelog ==
92
 
93
+ = 3.2.1 =
94
+
95
+ * Fixed a PHP notice on admin side when creating a new page
96
+
97
  = 3.2.0 =
98
 
99
  * Restored controls of per post injection