Version Description
- Fixed the bug due to which the the "Warning: Illegal string offset 'version' in" and the "Warning: Illegal string offset 'old_version' in" warnings are displayed. (Thanks to Sven Brill)
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | Head and Footer Scripts Inserter |
Version | 4.0.1 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.0.1
- header-and-footer-scripts-inserter.php +2 -2
- inc/php/version.php +5 -1
- readme.txt +4 -1
header-and-footer-scripts-inserter.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily add your scripts to the WordPress website's head and footer sections. This is a must have tool for authors and website's owners.
|
6 |
* Author: Arthur Gareginyan
|
7 |
* Author URI: http://www.arthurgareginyan.com
|
8 |
-
* Version: 4.0
|
9 |
* License: GPL3
|
10 |
* Text Domain: header-and-footer-scripts-inserter
|
11 |
* Domain Path: /languages/
|
@@ -62,7 +62,7 @@ defined('HFSINS_BASE') or define('HFSINS_BASE', plugin_basename(__FILE__));
|
|
62 |
defined('HFSINS_URL') or define('HFSINS_URL', plugin_dir_url(__FILE__));
|
63 |
defined('HFSINS_PATH') or define('HFSINS_PATH', plugin_dir_path(__FILE__));
|
64 |
defined('HFSINS_TEXT') or define('HFSINS_TEXT', 'header-and-footer-scripts-inserter');
|
65 |
-
defined('HFSINS_VERSION') or define('HFSINS_VERSION', '4.0');
|
66 |
|
67 |
/**
|
68 |
* Load the plugin modules
|
5 |
* Description: Easily add your scripts to the WordPress website's head and footer sections. This is a must have tool for authors and website's owners.
|
6 |
* Author: Arthur Gareginyan
|
7 |
* Author URI: http://www.arthurgareginyan.com
|
8 |
+
* Version: 4.0.1
|
9 |
* License: GPL3
|
10 |
* Text Domain: header-and-footer-scripts-inserter
|
11 |
* Domain Path: /languages/
|
62 |
defined('HFSINS_URL') or define('HFSINS_URL', plugin_dir_url(__FILE__));
|
63 |
defined('HFSINS_PATH') or define('HFSINS_PATH', plugin_dir_path(__FILE__));
|
64 |
defined('HFSINS_TEXT') or define('HFSINS_TEXT', 'header-and-footer-scripts-inserter');
|
65 |
+
defined('HFSINS_VERSION') or define('HFSINS_VERSION', '4.0.1');
|
66 |
|
67 |
/**
|
68 |
* Load the plugin modules
|
inc/php/version.php
CHANGED
@@ -10,15 +10,19 @@ defined('ABSPATH') or die("Restricted access!");
|
|
10 |
/**
|
11 |
* Function for managing information about the version number of the plugin
|
12 |
*
|
13 |
-
* @since 4.0
|
14 |
*/
|
15 |
function HFScriptsIns_plugin_version_number() {
|
16 |
|
17 |
// Set variables:
|
18 |
// - Read the plugin service information from the database and put it into an array
|
|
|
19 |
// - Get the current plugin version number from the database
|
20 |
// - Get the new plugin version number from the global constant
|
21 |
$info = get_option( 'HFScriptsIns_service_info' );
|
|
|
|
|
|
|
22 |
$current_number = isset( $info['version'] ) && !empty( $info['version'] ) ? $info['version'] : '0';
|
23 |
$new_number = HFSINS_VERSION;
|
24 |
|
10 |
/**
|
11 |
* Function for managing information about the version number of the plugin
|
12 |
*
|
13 |
+
* @since 4.0.1
|
14 |
*/
|
15 |
function HFScriptsIns_plugin_version_number() {
|
16 |
|
17 |
// Set variables:
|
18 |
// - Read the plugin service information from the database and put it into an array
|
19 |
+
// - Make the "$info" array if the plugin service information in the database is not exist
|
20 |
// - Get the current plugin version number from the database
|
21 |
// - Get the new plugin version number from the global constant
|
22 |
$info = get_option( 'HFScriptsIns_service_info' );
|
23 |
+
if ( !is_array( $info ) ) {
|
24 |
+
$info = array();
|
25 |
+
}
|
26 |
$current_number = isset( $info['version'] ) && !empty( $info['version'] ) ? $info['version'] : '0';
|
27 |
$new_number = HFSINS_VERSION;
|
28 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: inject, insert, insert scripts, insert javascript, insert js, insert html,
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 4.0
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -146,6 +146,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
146 |
|
147 |
== Changelog ==
|
148 |
|
|
|
|
|
|
|
149 |
= 4.0 =
|
150 |
* The design of the plugin settings page is completely redone.
|
151 |
* Added additional donate link to the "Plugins" page.
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 4.0.1
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
= 4.0.1 =
|
150 |
+
* Fixed the bug due to which the the "Warning: Illegal string offset 'version' in" and the "Warning: Illegal string offset 'old_version' in" warnings are displayed. (Thanks to Sven Brill)
|
151 |
+
|
152 |
= 4.0 =
|
153 |
* The design of the plugin settings page is completely redone.
|
154 |
* Added additional donate link to the "Plugins" page.
|