All Meta Tags - Version 4.0.1

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 Icon 128x128 All Meta Tags
Version 4.0.1
Comparing to
See all releases

Code changes from version 4.0 to 4.0.1

Files changed (3) hide show
  1. all-meta-tags.php +2 -2
  2. inc/php/version.php +5 -1
  3. readme.txt +4 -1
all-meta-tags.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
- * Version: 4.0
9
  * License: GPL3
10
  * Text Domain: all-meta-tags
11
  * Domain Path: /languages/
@@ -62,7 +62,7 @@ defined('ALLMT_BASE') or define('ALLMT_BASE', plugin_basename(__FILE__));
62
  defined('ALLMT_URL') or define('ALLMT_URL', plugin_dir_url(__FILE__));
63
  defined('ALLMT_PATH') or define('ALLMT_PATH', plugin_dir_path(__FILE__));
64
  defined('ALLMT_TEXT') or define('ALLMT_TEXT', 'all-meta-tags');
65
- defined('ALLMT_VERSION') or define('ALLMT_VERSION', '4.0');
66
 
67
  /**
68
  * Load the plugin modules
5
  * Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
+ * Version: 4.0.1
9
  * License: GPL3
10
  * Text Domain: all-meta-tags
11
  * Domain Path: /languages/
62
  defined('ALLMT_URL') or define('ALLMT_URL', plugin_dir_url(__FILE__));
63
  defined('ALLMT_PATH') or define('ALLMT_PATH', plugin_dir_path(__FILE__));
64
  defined('ALLMT_TEXT') or define('ALLMT_TEXT', 'all-meta-tags');
65
+ defined('ALLMT_VERSION') or define('ALLMT_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 allmetatags_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( 'allmetatags_service_info' );
 
 
 
22
  $current_number = isset( $info['version'] ) && !empty( $info['version'] ) ? $info['version'] : '0';
23
  $new_number = ALLMT_VERSION;
24
 
10
  /**
11
  * Function for managing information about the version number of the plugin
12
  *
13
+ * @since 4.0.1
14
  */
15
  function allmetatags_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( 'allmetatags_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 = ALLMT_VERSION;
28
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: meta, tag,tags, custom, simple, plugin, twitter, facebook, g+, google, goo
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
 
@@ -184,6 +184,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
184
 
185
  == Changelog ==
186
 
 
 
 
187
  = 4.0 =
188
  * The design of the plugin settings page is completely redone.
189
  * 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
 
184
 
185
  == Changelog ==
186
 
187
+ = 4.0.1 =
188
+ * 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)
189
+
190
  = 4.0 =
191
  * The design of the plugin settings page is completely redone.
192
  * Added additional donate link to the "Plugins" page.