WP Meta SEO - Version 4.3.6

Version Description

  • Fix : Update settings from old version to Google Analytics
Download this release

Release Info

Developer JoomUnited
Plugin Icon 128x128 WP Meta SEO
Version 4.3.6
Comparing to
See all releases

Code changes from version 4.3.5 to 4.3.6

assets/js/metaseo_admin.js CHANGED
@@ -1373,15 +1373,15 @@ function changeSettingProfile(profileId, profileList) {
1373
 
1374
  // Display select profile info
1375
  let profileInfoHtml = '';
1376
- if (selectedProfile[0]) profileInfoHtml += 'Profile Name: ' + selectedProfile[0] + '<br>';
1377
- if (selectedProfile[1]) profileInfoHtml += 'Profile ID: ' + selectedProfile[1] + '<br>';
1378
- if (selectedProfile[2]) profileInfoHtml += 'Property ID: ' + selectedProfile[2] + '<br>';
1379
- if (selectedProfile[3]) profileInfoHtml += 'Default URL: ' + selectedProfile[3] + '<br>';
1380
- if (selectedProfile[4]) profileInfoHtml += 'Property Type: ' + selectedProfile[4] + '<br>';
1381
- if (selectedProfile[5]) profileInfoHtml += 'Time Shift: ' + selectedProfile[5] + '<br>';
1382
- if (selectedProfile[6]) profileInfoHtml += 'Time Zone: ' + selectedProfile[6] + '<br>';
1383
- if (selectedProfile[7]) profileInfoHtml += 'Default Page: ' + selectedProfile[7] + '<br>';
1384
- if (selectedProfile[8]) profileInfoHtml += 'Measurement ID: ' + selectedProfile[8];
1385
 
1386
  if (profileElement != null) {
1387
  profileElement.innerHTML = profileInfoHtml;
1373
 
1374
  // Display select profile info
1375
  let profileInfoHtml = '';
1376
+ if (typeof selectedProfile[0] !== 'undefined' && selectedProfile[0]) profileInfoHtml += 'Profile Name: ' + selectedProfile[0] + '<br>';
1377
+ if (typeof selectedProfile[1] !== 'undefined' && selectedProfile[1]) profileInfoHtml += 'Profile ID: ' + selectedProfile[1] + '<br>';
1378
+ if (typeof selectedProfile[2] !== 'undefined' && selectedProfile[2]) profileInfoHtml += 'Property ID: ' + selectedProfile[2] + '<br>';
1379
+ if (typeof selectedProfile[3] !== 'undefined' && selectedProfile[3]) profileInfoHtml += 'Default URL: ' + selectedProfile[3] + '<br>';
1380
+ if (typeof selectedProfile[4] !== 'undefined' && selectedProfile[4]) profileInfoHtml += 'Property Type: ' + selectedProfile[4] + '<br>';
1381
+ if (typeof selectedProfile[5] !== 'undefined' && selectedProfile[5]) profileInfoHtml += 'Time Shift: ' + selectedProfile[5] + '<br>';
1382
+ if (typeof selectedProfile[6] !== 'undefined' && selectedProfile[6]) profileInfoHtml += 'Time Zone: ' + selectedProfile[6] + '<br>';
1383
+ if (typeof selectedProfile[7] !== 'undefined' && selectedProfile[7]) profileInfoHtml += 'Default Page: ' + selectedProfile[7] + '<br>';
1384
+ if (typeof selectedProfile[8] !== 'undefined' && selectedProfile[8]) profileInfoHtml += 'Measurement ID: ' + selectedProfile[8];
1385
 
1386
  if (profileElement != null) {
1387
  profileElement.innerHTML = profileInfoHtml;
inc/class.metaseo-admin.php CHANGED
@@ -94,7 +94,7 @@ class MetaSeoAdmin
94
  $this->setErrorTimeout();
95
  $this->initSettings();
96
  $this->initGaSettings();
97
- $this->initTagManagerSetting();
98
  if (!get_option('_wpms_dash_last_update', false)) {
99
  update_option('_wpms_dash_last_update', time());
100
  }
@@ -212,13 +212,14 @@ class MetaSeoAdmin
212
  *
213
  * @return void
214
  */
215
- public function initTagManagerSetting()
216
  {
217
- $this->google_tagmanager = array(
218
- 'list_accounts' => array(),
219
- 'list_containers' => array(),
220
- 'selected_account' => '',
221
- 'selected_container' => ''
 
222
  );
223
  }
224
 
@@ -875,6 +876,26 @@ class MetaSeoAdmin
875
  }
876
  update_option($option_v, true);
877
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
878
  }
879
 
880
  /**
@@ -4188,13 +4209,6 @@ class MetaSeoAdmin
4188
  }
4189
  } else {
4190
  // WPMS Google Service Tracking - when user don't have Google cloud credentials
4191
- $this->gaDisconnect = array(
4192
- 'wpms_gg_service_tracking_id' => '',
4193
- 'wpms_gg_service_tracking_type' => 'universal',
4194
- 'wpmsga_code_tracking' => '',
4195
- 'wpmstm_header_code_tracking' => '',
4196
- 'wpmstm_body_code_tracking' => ''
4197
- );
4198
  $gaDisconnect = get_option('_metaseo_ggtracking_disconnect_settings');
4199
  if (is_array($gaDisconnect)) {
4200
  $this->gaDisconnect = array_merge(
94
  $this->setErrorTimeout();
95
  $this->initSettings();
96
  $this->initGaSettings();
97
+ $this->initGADisconnect();
98
  if (!get_option('_wpms_dash_last_update', false)) {
99
  update_option('_wpms_dash_last_update', time());
100
  }
212
  *
213
  * @return void
214
  */
215
+ public function initGADisconnect()
216
  {
217
+ $this->gaDisconnect = array(
218
+ 'wpms_gg_service_tracking_id' => '',
219
+ 'wpms_gg_service_tracking_type' => 'universal',
220
+ 'wpmsga_code_tracking' => '',
221
+ 'wpmstm_header_code_tracking' => '',
222
+ 'wpmstm_body_code_tracking' => ''
223
  );
224
  }
225
 
876
  }
877
  update_option($option_v, true);
878
  }
879
+
880
+ $option_v = 'metaseo_db_version4.0.4';
881
+ $db_installed = get_option($option_v, false);
882
+ $wpms_db_version = get_option('metaseo_db_version', false);
883
+ // update plugin v4.3.5
884
+ if ($db_installed && !$wpms_db_version) {
885
+ // Get old settings
886
+ $gaDisconnect = get_option('_metaseo_ggtracking_disconnect_settings');
887
+
888
+ // Update value to new ga parameters
889
+ if ($gaDisconnect) {
890
+ $this->gaDisconnect['wpms_gg_service_tracking_id'] = $gaDisconnect['wpms_ga_uax_reference'];
891
+ $this->gaDisconnect['wpms_gg_service_tracking_type'] = $gaDisconnect['wpmsga_dash_tracking_type'];
892
+ $this->gaDisconnect['wpmsga_code_tracking'] = $gaDisconnect['wpmsga_code_tracking'];
893
+ $this->gaDisconnect['wpmstm_header_code_tracking'] = '';
894
+ $this->gaDisconnect['wpmstm_body_code_tracking'] = '';
895
+ update_option('_metaseo_ggtracking_disconnect_settings', $this->gaDisconnect);
896
+ }
897
+ update_option('metaseo_db_version', WPMSEO_VERSION);
898
+ }
899
  }
900
 
901
  /**
4209
  }
4210
  } else {
4211
  // WPMS Google Service Tracking - when user don't have Google cloud credentials
 
 
 
 
 
 
 
4212
  $gaDisconnect = get_option('_metaseo_ggtracking_disconnect_settings');
4213
  if (is_array($gaDisconnect)) {
4214
  $this->gaDisconnect = array_merge(
inc/pages/google-services/ga-trackcode.php CHANGED
@@ -132,35 +132,35 @@ require_once(WPMETASEO_PLUGIN_DIR . 'inc/pages/google-services/menu.php');
132
  $this->google_alanytics['profile_list'],
133
  $this->google_alanytics['tableid_jail']
134
  );
135
- if (!empty($profile_info[0])
136
  && !empty($this->ga_tracking['wpmsga_dash_tracking'])) {
137
  echo '<pre class="p-lr-20" style="white-space: nowrap;width: 100%;overflow: hidden;text-overflow: ellipsis;"><div id="tracking-profile-info">';
138
- if ($profile_info[0]) {
139
- echo 'Profile Name: ' . esc_html($profile_info[0]) . '<br>';
140
  }
141
- if ($profile_info[1]) {
142
- echo 'Profile ID: ' . esc_html($profile_info[1]) . '<br>';
143
  }
144
- if ($profile_info[2]) {
145
- echo 'Property ID: ' . esc_html($profile_info[2]) . '<br>';
146
  }
147
- if ($profile_info[3]) {
148
- echo 'Default URL: ' . esc_html($profile_info[3]) . '<br>';
149
  }
150
- if ($profile_info[4]) {
151
- echo 'Property Type: ' . esc_html($profile_info[4]) . '<br>';
152
  }
153
- if ($profile_info[5]) {
154
- echo 'Time Shift: ' . esc_html($profile_info[5]) . '<br>';
155
  }
156
- if ($profile_info[6]) {
157
- echo 'Time Zone: ' . esc_html($profile_info[6]) . '<br>';
158
  }
159
- if ($profile_info[7]) {
160
- echo 'Default Page: ' . esc_html($profile_info[7]) . '<br>';
161
  }
162
- if ($profile_info[8]) {
163
- echo 'Measurement ID: ' . esc_html($profile_info[8]) . '<br>';
164
  }
165
  echo '</div></pre>';
166
  }
132
  $this->google_alanytics['profile_list'],
133
  $this->google_alanytics['tableid_jail']
134
  );
135
+ if (isset($profile_info[0]) && !empty($profile_info[0])
136
  && !empty($this->ga_tracking['wpmsga_dash_tracking'])) {
137
  echo '<pre class="p-lr-20" style="white-space: nowrap;width: 100%;overflow: hidden;text-overflow: ellipsis;"><div id="tracking-profile-info">';
138
+ if (isset($profile_info[0]) && $profile_info[0]) {
139
+ echo esc_html('Profile Name: ', 'wp-meta-seo') . esc_html($profile_info[0]) . '<br>';
140
  }
141
+ if (isset($profile_info[1]) && $profile_info[1]) {
142
+ echo esc_html('Profile ID: ', 'wp-meta-seo') . esc_html($profile_info[1]) . '<br>';
143
  }
144
+ if (isset($profile_info[2]) && $profile_info[2]) {
145
+ echo esc_html('Property ID: ', 'wp-meta-seo') . esc_html($profile_info[2]) . '<br>';
146
  }
147
+ if (isset($profile_info[3]) && $profile_info[3]) {
148
+ echo esc_html('Default URL: ', 'wp-meta-seo') . esc_html($profile_info[3]) . '<br>';
149
  }
150
+ if (isset($profile_info[4]) && $profile_info[4]) {
151
+ echo esc_html('Property Type: ', 'wp-meta-seo') . esc_html($profile_info[4]) . '<br>';
152
  }
153
+ if (isset($profile_info[5]) && $profile_info[5]) {
154
+ echo esc_html('Time Shift: ', 'wp-meta-seo') . esc_html($profile_info[5]) . '<br>';
155
  }
156
+ if (isset($profile_info[6]) && $profile_info[6]) {
157
+ echo esc_html('Time Zone: ', 'wp-meta-seo') . esc_html($profile_info[6]) . '<br>';
158
  }
159
+ if (isset($profile_info[7]) && $profile_info[7]) {
160
+ echo esc_html('Default Page: ', 'wp-meta-seo') . esc_html($profile_info[7]) . '<br>';
161
  }
162
+ if (isset($profile_info[8]) && $profile_info[8]) {
163
+ echo esc_html('Measurement ID: ', 'wp-meta-seo') . esc_html($profile_info[8]) . '<br>';
164
  }
165
  echo '</div></pre>';
166
  }
languages/wp-meta-seo-en_US.mo CHANGED
Binary file
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: JoomUnited
3
  Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
  Requires at least: 4.7
5
- Tested up to: 5.7.1
6
- Stable tag: 4.3.5
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -258,6 +258,9 @@ Yes WP Meta SEO is compatible with Gutenberg editor since 3.7 version.
258
 
259
  == Changelog ==
260
 
 
 
 
261
  = 4.3.5 =
262
  * Add : New Google Analytics tracking UX
263
  * Add : Support Google Analytics v4 property
2
  Contributors: JoomUnited
3
  Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
  Requires at least: 4.7
5
+ Tested up to: 5.7.2
6
+ Stable tag: 4.3.6
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
258
 
259
  == Changelog ==
260
 
261
+ = 4.3.6 =
262
+ * Fix : Update settings from old version to Google Analytics
263
+
264
  = 4.3.5 =
265
  * Add : New Google Analytics tracking UX
266
  * Add : Support Google Analytics v4 property
wp-meta-seo.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WP Meta SEO
5
  * Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
  * Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
- * Version: 4.3.5
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
@@ -133,7 +133,7 @@ if (!defined('WPMSEO_VERSION')) {
133
  /**
134
  * Plugin version
135
  */
136
- define('WPMSEO_VERSION', '4.3.5');
137
  }
138
 
139
  if (!defined('WPMS_CLIENTID')) {
4
  * Plugin Name: WP Meta SEO
5
  * Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
  * Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
+ * Version: 4.3.6
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
133
  /**
134
  * Plugin version
135
  */
136
+ define('WPMSEO_VERSION', '4.3.6');
137
  }
138
 
139
  if (!defined('WPMS_CLIENTID')) {