Insert Headers and Footers - Version 1.4.1

Version Description

  • Fixes for users running PHP version less than 5.5
Download this release

Release Info

Developer deb255
Plugin Icon 128x128 Insert Headers and Footers
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4 to 1.4.1

Files changed (2) hide show
  1. ihaf.php +4 -4
  2. readme.txt +4 -1
ihaf.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Insert Headers and Footers
4
  * Plugin URI: http://www.wpbeginner.com/
5
- * Version: 1.4
6
  * Author: WPBeginner
7
  * Author URI: http://www.wpbeginner.com/
8
  * Description: Allows you to insert code or text in the header or footer of your WordPress blog
@@ -38,7 +38,7 @@ class InsertHeadersAndFooters {
38
  $this->plugin = new stdClass;
39
  $this->plugin->name = 'insert-headers-and-footers'; // Plugin Folder
40
  $this->plugin->displayName = 'Insert Headers and Footers'; // Plugin Name
41
- $this->plugin->version = '1.3.3';
42
  $this->plugin->folder = plugin_dir_path( __FILE__ );
43
  $this->plugin->url = plugin_dir_url( __FILE__ );
44
  $this->plugin->db_welcome_dismissed_key = $this->plugin->name . '_welcome_dismissed_key';
@@ -99,11 +99,11 @@ class InsertHeadersAndFooters {
99
  function dashboardNotices() {
100
  global $pagenow;
101
 
102
- if ( empty( get_option( $this->plugin->db_welcome_dismissed_key ) ) ) {
103
  if ( ! ( $pagenow == 'options-general.php' && isset( $_GET['page'] ) && $_GET['page'] == 'insert-headers-and-footers' ) ) {
104
  $setting_page = admin_url( 'options-general.php?page=' . $this->plugin->name );
105
  // load the notices view
106
- include_once( WP_PLUGIN_DIR . '/' . $this->plugin->name . '/views/dashboard-notices.php' );
107
  }
108
  }
109
  }
2
  /**
3
  * Plugin Name: Insert Headers and Footers
4
  * Plugin URI: http://www.wpbeginner.com/
5
+ * Version: 1.4.1
6
  * Author: WPBeginner
7
  * Author URI: http://www.wpbeginner.com/
8
  * Description: Allows you to insert code or text in the header or footer of your WordPress blog
38
  $this->plugin = new stdClass;
39
  $this->plugin->name = 'insert-headers-and-footers'; // Plugin Folder
40
  $this->plugin->displayName = 'Insert Headers and Footers'; // Plugin Name
41
+ $this->plugin->version = '1.4.1';
42
  $this->plugin->folder = plugin_dir_path( __FILE__ );
43
  $this->plugin->url = plugin_dir_url( __FILE__ );
44
  $this->plugin->db_welcome_dismissed_key = $this->plugin->name . '_welcome_dismissed_key';
99
  function dashboardNotices() {
100
  global $pagenow;
101
 
102
+ if ( !get_option( $this->plugin->db_welcome_dismissed_key ) ) {
103
  if ( ! ( $pagenow == 'options-general.php' && isset( $_GET['page'] ) && $_GET['page'] == 'insert-headers-and-footers' ) ) {
104
  $setting_page = admin_url( 'options-general.php?page=' . $this->plugin->name );
105
  // load the notices view
106
+ include_once( $this->plugin->folder . '/views/dashboard-notices.php' );
107
  }
108
  }
109
  }
readme.txt CHANGED
@@ -43,7 +43,7 @@ To learn more about WordPress, you can also visit <a href="http://www.wpbeginner
43
 
44
  * <a href="http://www.wpbeginner.com/wordpress-performance-speed/" rel="friend" title="Ultimate Guide to WordPress Speed and Performance">WordPress Speed and Performance</a>
45
  * <a href="http://www.wpbeginner.com/wordpress-security/" rel="friend" title="Ultimate WordPress Security Guide">WordPress Security</a>
46
- * <a href="http://www.wpbeginner.com/wordpress-seo/" rel="friend" title="Ultimate WordPress SEO Guide for Beginners">WordPress Security</a>WordPress SEO</a>
47
 
48
  ...and many more <a href="http://www.wpbeginner.com/category/wp-tutorials/" rel="friend" title="WordPress Tutorials">WordPress tutorials</a>.
49
 
@@ -77,6 +77,9 @@ Syed Balkhi
77
 
78
  == Changelog ==
79
 
 
 
 
80
  = 1.4 =
81
  * Tested with WordPress 4.7.2
82
  * cleaned up code
43
 
44
  * <a href="http://www.wpbeginner.com/wordpress-performance-speed/" rel="friend" title="Ultimate Guide to WordPress Speed and Performance">WordPress Speed and Performance</a>
45
  * <a href="http://www.wpbeginner.com/wordpress-security/" rel="friend" title="Ultimate WordPress Security Guide">WordPress Security</a>
46
+ * <a href="http://www.wpbeginner.com/wordpress-seo/" rel="friend" title="Ultimate WordPress SEO Guide for Beginners">WordPress SEO</a>
47
 
48
  ...and many more <a href="http://www.wpbeginner.com/category/wp-tutorials/" rel="friend" title="WordPress Tutorials">WordPress tutorials</a>.
49
 
77
 
78
  == Changelog ==
79
 
80
+ = 1.4.1 =
81
+ * Fixes for users running PHP version less than 5.5
82
+
83
  = 1.4 =
84
  * Tested with WordPress 4.7.2
85
  * cleaned up code