Platinum SEO Pack - Version 2.1.8

Version Description

  • 2020-08-11 - Compatible with WordPress 5.5. Added support for migration of data from All in One SEO Pack.
Download this release

Release Info

Developer Rajesh Babu
Plugin Icon 128x128 Platinum SEO Pack
Version 2.1.8
Comparing to
See all releases

Code changes from version 2.1.7 to 2.1.8

Changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = 2.1.7 =
2
  * 2020-07-13 - Fixed bugs in JS files to be compliant with the proposed JQuery versions in WordPress 5.5 and beyond. Since WordPress sitemap files is proposed to be integrated into the Core in V5.5, made the necessary changes in the plugin's version of the files.
3
 
1
+ = 2.1.8 =
2
+ * 2020-08-11 - Compatible with WordPress 5.5. Added support for migration of data from All in One SEO Pack.
3
+
4
  = 2.1.7 =
5
  * 2020-07-13 - Fixed bugs in JS files to be compliant with the proposed JQuery versions in WordPress 5.5 and beyond. Since WordPress sitemap files is proposed to be integrated into the Core in V5.5, made the necessary changes in the plugin's version of the files.
6
 
platinum-seo-pack.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Platinum SEO Pack
5
  Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
6
  Description: Complete SEO and Social optimization solution for your Wordpress blog/site. It is Simple, Uncomplicated and User friendly with several useful features.
7
- Version: 2.1.7
8
  Author: Techblissonline.com (Rajesh)
9
  Author URI: https://techblissonline.com/
10
  Text Domain: platinum-seo-pack
4
  Plugin Name: Platinum SEO Pack
5
  Plugin URI: https://techblissonline.com/platinum-wordpress-seo-plugin/
6
  Description: Complete SEO and Social optimization solution for your Wordpress blog/site. It is Simple, Uncomplicated and User friendly with several useful features.
7
+ Version: 2.1.8
8
  Author: Techblissonline.com (Rajesh)
9
  Author URI: https://techblissonline.com/
10
  Text Domain: platinum-seo-pack
psp-include/importers/psp_data_importer.php CHANGED
@@ -10,7 +10,7 @@ Author URI: http://techblissonline.com/
10
  $import_yoast_data_nonce = wp_create_nonce( 'import_yoast_data_nonce' );
11
  // in JavaScript, object properties are accessed as ajax_object.ajax_url,
12
  //wp_enqueue_script( 'psp-ajax-import-script', plugins_url( '/js/psp-importer.js', __FILE__ ), array('jquery') );
13
- wp_enqueue_script( 'psp-ajax-import-script', plugins_url( 'settings/js/psp-importer.js', PSP_PLUGIN_SETTINGS_URL ), array('jquery'), '2.1' );
14
  wp_localize_script( 'psp-ajax-import-script', 'psp_ajax_importer_object', array( 'ajax_url' => admin_url( 'admin-ajax.php'), 'pspnonce' => $import_yoast_data_nonce) );
15
  //wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
16
  wp_enqueue_style("psp-settings-bs-css", plugins_url( 'settings/css/psp-settings-bs.css', PSP_PLUGIN_SETTINGS_URL ));
@@ -64,6 +64,7 @@ Author URI: http://techblissonline.com/
64
  <button class="psp-bar-item psp-button psp-tab psp-cyan" onclick="openLink(event, 'Fade')">Yoast</button>
65
  <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Right')">RankMath</button>
66
  <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Bottom')">Yoast Indexable</button>
 
67
  <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Zoom')">Platinum SEO</button>
68
  </div>
69
 
@@ -217,6 +218,44 @@ Author URI: http://techblissonline.com/
217
 
218
  <br class="clear" />
219
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  </div>
221
  <div id="Zoom" class="psp-container plugin psp-animate-zoom" style="display:none">
222
 
@@ -224,7 +263,7 @@ Author URI: http://techblissonline.com/
224
  <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"><?php esc_html_e('Platinum SEO WordPress Plugin', 'platinum-seo-pack') ?></a>
225
 
226
  <br class="clear" />
227
- <div id="pspimporter-4">
228
  <table class="form-table">
229
  <tr class="form-field">
230
  <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Robots Meta Data: ', 'platinum-seo-pack'); ?></label>
10
  $import_yoast_data_nonce = wp_create_nonce( 'import_yoast_data_nonce' );
11
  // in JavaScript, object properties are accessed as ajax_object.ajax_url,
12
  //wp_enqueue_script( 'psp-ajax-import-script', plugins_url( '/js/psp-importer.js', __FILE__ ), array('jquery') );
13
+ wp_enqueue_script( 'psp-ajax-import-script', plugins_url( 'settings/js/psp-importer.js', PSP_PLUGIN_SETTINGS_URL ), array('jquery'), '2.1.8' );
14
  wp_localize_script( 'psp-ajax-import-script', 'psp_ajax_importer_object', array( 'ajax_url' => admin_url( 'admin-ajax.php'), 'pspnonce' => $import_yoast_data_nonce) );
15
  //wp_enqueue_style("psp-settings-bs-css", plugins_url( '/css/psp-settings-bs.css', __FILE__ ));
16
  wp_enqueue_style("psp-settings-bs-css", plugins_url( 'settings/css/psp-settings-bs.css', PSP_PLUGIN_SETTINGS_URL ));
64
  <button class="psp-bar-item psp-button psp-tab psp-cyan" onclick="openLink(event, 'Fade')">Yoast</button>
65
  <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Right')">RankMath</button>
66
  <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Bottom')">Yoast Indexable</button>
67
+ <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Input')">All in One SEO</button>
68
  <button class="psp-bar-item psp-button psp-tab" onclick="openLink(event, 'Zoom')">Platinum SEO</button>
69
  </div>
70
 
218
 
219
  <br class="clear" />
220
 
221
+ </div>
222
+ <div id="Input" class="psp-container plugin psp-animate-input" style="display:none">
223
+
224
+ <h2><?php esc_html_e('Import ALL in One SEO Pack Data into Platinum SEO:', 'platinum-seo-pack'); ?></h2>
225
+ <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"><?php esc_html_e('Platinum SEO WordPress Plugin', 'platinum-seo-pack') ?></a>
226
+
227
+ <br class="clear" />
228
+ <div id="pspimporter-4">
229
+ <table class="form-table">
230
+ <tr class="form-field">
231
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Titles and Descriptions: ', 'platinum-seo-pack'); ?></label>
232
+ <p class="description"><?php esc_html_e('This will import all your Titles and Descriptions from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
233
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="aioseop_title" id="import_aioseop_title_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="aioseop-titles-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
234
+ </div>
235
+ </td>
236
+ </tr>
237
+ <tr class="form-field">
238
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Basic Robots Meta Data: ', 'platinum-seo-pack'); ?></label>
239
+ <p class="description"><?php esc_html_e('This will import all your basic robots meta data (noindex, nofollow) from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
240
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="aioseop_basicrobots" id="import_aioseop_brobots_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="aioseop-basicrobots-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
241
+ </div>
242
+ </td>
243
+ </tr>
244
+ <tr class="form-field">
245
+ <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import other SEO and Social Meta Data: ', 'platinum-seo-pack'); ?></label>
246
+ <p class="description"><?php esc_html_e('This will import all your other SEO and Social meta data from your current SEO Plugin into Platinum SEO Plugin', 'platinum-seo-pack'); ?></p></th>
247
+ <td><div class="psp-bs alignright"><input style="display:block;margin:auto" name="aioseop_others" id="import_aioseop_others_data_btn" class="psp_importer btn btn-success" type="btn" value="Import" /><p class="aioseop-others-loader hidden"><img src="<?php echo esc_url(PSP_PLUGIN_URL).'images/techblissonline-video-loader.gif'; ?>" class="img-responsive" alt="Loading..."/></p>
248
+ </div>
249
+ </td>
250
+ </tr>
251
+ <tr class="form-field">
252
+ <th style="width:100%;" scope="row" valign="top"><label><?php esc_html_e('Set up the One time Configuration for Platinum SEO: ', 'platinum-seo-pack'); ?></label>
253
+ <p class="description"><?php esc_html_e('Platinum SEO sets up the default configuration on installation and activation. If you are done with Importing, you may go to SEO Settings and Social Settings to review and make any necessary changes', 'platinum-seo-pack'); ?></p><p><a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('SEO Settings', 'platinum-seo-pack') ?></a> | <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=psp-social-by-techblissonline" ?>"> <?php esc_html_e('Social Settings', 'platinum-seo-pack') ?></a></p></th>
254
+ </tr>
255
+ </table>
256
+ </div>
257
+ <br class="clear" />
258
+
259
  </div>
260
  <div id="Zoom" class="psp-container plugin psp-animate-zoom" style="display:none">
261
 
263
  <a href="<?php echo get_admin_url(get_current_blog_id())."admin.php?page=platinum-seo-social-pack-by-techblissonline" ?>"> <?php esc_html_e('Settings', 'platinum-seo-pack') ?></a> | <a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"><?php esc_html_e('Platinum SEO WordPress Plugin', 'platinum-seo-pack') ?></a>
264
 
265
  <br class="clear" />
266
+ <div id="pspimporter-5">
267
  <table class="form-table">
268
  <tr class="form-field">
269
  <th style="width:70%;" scope="row" valign="top"><label><?php esc_html_e('Import Robots Meta Data: ', 'platinum-seo-pack'); ?></label>
psp-include/importers/psp_import.php CHANGED
@@ -209,6 +209,104 @@ class PspImporter {
209
  wp_die(); // terminate
210
  }
211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  private function import_yoast_rm_post_meta($meta = "", $plugin = "") {
213
 
214
  //error_log("import_yoast_rm_post_meta_1");
@@ -277,6 +375,37 @@ class PspImporter {
277
  $psp_meta = "_techblissonline_psp_advmetarobots";
278
  }
279
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
 
281
  if($plugin == "psp") {
282
 
@@ -361,31 +490,45 @@ class PspImporter {
361
  $yoast_meta_value = preg_replace('/%[^%]+%/',"", $yoast_meta->meta_value);
362
  $yoast_meta_value = preg_replace('/\s+/', ' ', $yoast_meta_value);
363
 
 
 
 
 
 
 
 
364
  }
365
  //$yoast_meta_value = preg_replace('/\'/', '&#039;', $yoast_meta_value);
366
  //$yoast_meta_value = preg_replace('/\"/', '', $yoast_meta_value);
367
 
368
  } else if($meta == "noindex") {
369
-
370
- if( $yoast_meta->meta_value == 1) {
371
- $yoast_meta_value = 'on';
372
- } /***else {
373
- $yoast_meta_value = 0;
374
- } ***/
 
375
 
376
  } else if($meta == "nofollow") {
377
- if( $yoast_meta->meta_value == 1) {
378
- $yoast_meta_value = 'on';
379
- } /***else {
380
- $yoast_meta_value = 0;
381
- } ***/
382
- } else if($meta == "focuskeywords") {
383
- $yoast_meta_value = $yoast_meta->meta_value;
384
- $yoast_meta_value = json_decode( $yoast_meta_value, true );
385
- if(!$yoast_meta_value) {
386
- $yoast_meta_value = implode( ', ', array_map( [ &$this, 'psp_get_focus_keyword' ], $yoast_meta_value ) );
387
- //$yoast_meta_value = implode( ', ', array_map( array( &$this, 'psp_get_focus_keyword' ), $yoast_meta_value ) );
388
  }
 
 
 
 
 
 
 
 
 
 
 
389
  } else if($meta == "robots") {
390
 
391
  //$yoast_meta_value = $yoast_meta->meta_value;
@@ -623,7 +766,7 @@ class PspImporter {
623
  if($plugin == "yoast") {
624
 
625
  //error_log("yoast");
626
-
627
  $yoast_post_meta = array(
628
  //'_techblissonline_psp_title' => 'title',
629
  //'_techblissonline_psp_description' => 'description',
@@ -690,6 +833,29 @@ class PspImporter {
690
 
691
  };
692
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
693
  if($plugin == "psp") {
694
 
695
  $yoast_post_meta = array(
@@ -816,6 +982,12 @@ class PspImporter {
816
 
817
  }
818
 
 
 
 
 
 
 
819
  return "";
820
 
821
  }
209
  wp_die(); // terminate
210
  }
211
 
212
+ private function import_aioseop_post_social_meta($meta = "", $plugin = "") {
213
+
214
+ //error_log("import_yoast_rm_post_meta_1");
215
+
216
+ global $wpdb;
217
+
218
+ $psp_post_meta_tbl = $wpdb->prefix . "postmeta";
219
+ $psp_post_seo_tbl = $wpdb->prefix . "platinumseometa";
220
+
221
+ $max_metas_per_page = 100;
222
+ $meta_to_import = "";
223
+
224
+ $counter = 0;
225
+ //While ($counter < 20) {
226
+ $last_post_id = 0;
227
+ $rows_exist = true;
228
+
229
+ While ($rows_exist) {
230
+
231
+ $meta_to_import = "_aioseop_opengraph_settings";
232
+
233
+ $yoast_meta_sql = $wpdb->prepare("Select post_id, meta_key, meta_value from {$psp_post_meta_tbl} WHERE post_id > %d and meta_key = %s and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key in (%s, %s, %s, %s)) ORDER by post_id LIMIT %d", $last_post_id, $meta_to_import, $last_post_id, '_techblissonline_psp_fb_title', '_techblissonline_psp_fb_description', '_techblissonline_psp_fb_image', '_techblissonline_psp_tw_card_type', $max_metas_per_page);
234
+
235
+ $yoast_metas = $wpdb->get_results($yoast_meta_sql, OBJECT);
236
+
237
+ if (!$yoast_metas) {
238
+
239
+ $rows_exist = false;
240
+
241
+ } else {
242
+
243
+ $values = "";
244
+
245
+ $psp_values = array();
246
+ $place_holders = array();
247
+ $psp_query = "INSERT INTO {$psp_post_seo_tbl} (platinumseo_id, meta_key, meta_value) VALUES ";
248
+
249
+ foreach ($yoast_metas as $yoast_meta) {
250
+
251
+ if($meta == "socialmeta") {
252
+ //rankmath adv robots
253
+ $aioseop_sm_arr = unserialize($yoast_meta->meta_value);
254
+
255
+ $aioseop_fb_title = ! empty( $aioseop_sm_arr['aioseop_opengraph_settings_title'] ) ? $aioseop_sm_arr['aioseop_opengraph_settings_title'] : "";
256
+ if ( ! empty( $aioseop_fb_title ) ) {
257
+ $place_holders[] = "(%d, %s, %s)";
258
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_fb_title', $aioseop_fb_title);
259
+ }
260
+
261
+ $aioseop_fb_desc = ! empty( $aioseop_sm_arr['aioseop_opengraph_settings_desc'] ) ? $aioseop_sm_arr['aioseop_opengraph_settings_desc'] : "";
262
+ if ( ! empty( $aioseop_fb_desc ) ) {
263
+ $place_holders[] = "(%d, %s, %s)";
264
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_fb_description', $aioseop_fb_desc);
265
+ }
266
+
267
+ $aioseop_fb_image = ! empty( $aioseop_sm_arr['aioseop_opengraph_settings_customimg'] ) ? $aioseop_sm_arr['aioseop_opengraph_settings_customimg'] : ( ! empty( $aioseop_sm_arr['aioseop_opengraph_settings_image'] ) ? $aioseop_sm_arr['aioseop_opengraph_settings_image'] : '' );
268
+ if ( ! empty( $aioseop_fb_image ) ) {
269
+ $place_holders[] = "(%d, %s, %s)";
270
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_fb_image', $aioseop_fb_image);
271
+ }
272
+
273
+ //$aioseop_tw_cardtype = ! empty( $aioseop_sm_arr['aioseop_opengraph_settings_desc'] ) ? $aioseop_sm_arr['aioseop_opengraph_settings_desc'] : "";
274
+ $aioseop_tw_cardtype = 'summary' === $opengraph_meta['aioseop_opengraph_settings_setcard'] ? 'summary' : 'summary_large_image';
275
+ if ( ! empty( $aioseop_tw_cardtype ) ) {
276
+ $place_holders[] = "(%d, %s, %s)";
277
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_tw_card_type', $aioseop_tw_cardtype);
278
+ }
279
+
280
+ $aioseop_tw_image = ! empty( $aioseop_sm_arr['aioseop_opengraph_settings_customimg_twitter'] ) ? $aioseop_sm_arr['aioseop_opengraph_settings_customimg_twitter'] : "";
281
+ if ( ! empty( $aioseop_tw_image ) ) {
282
+ $place_holders[] = "(%d, %s, %s)";
283
+ array_push($psp_values, $yoast_meta->post_id, '_techblissonline_psp_tw_image', $aioseop_tw_image);
284
+ }
285
+
286
+
287
+ }
288
+
289
+ }
290
+ //$values = rtrim($values, ",");
291
+ //error_log($values);
292
+ $last_post_id = $yoast_meta->post_id;
293
+
294
+ if ($psp_values) {
295
+ $psp_query .= implode(', ', $place_holders);
296
+ $wpdb->query( $wpdb->prepare("$psp_query", $psp_values));
297
+ }
298
+
299
+ if ($values) {
300
+
301
+ //$wpdb->query("INSERT INTO {$psp_post_seo_tbl} (post_id, meta_key, meta_value) VALUES {$values}");
302
+
303
+ }
304
+ }
305
+
306
+ }
307
+
308
+ }
309
+
310
  private function import_yoast_rm_post_meta($meta = "", $plugin = "") {
311
 
312
  //error_log("import_yoast_rm_post_meta_1");
375
  $psp_meta = "_techblissonline_psp_advmetarobots";
376
  }
377
  }
378
+ if($plugin == "aioseop") {
379
+
380
+ if($meta == "title") {
381
+
382
+ //$meta_to_import = "title";
383
+ $meta_to_import = "_aioseop_title";
384
+ $psp_meta = "_techblissonline_psp_title";
385
+
386
+ } else if ($meta == "description") {
387
+
388
+ //$meta_to_import = "description";
389
+ $meta_to_import = "_aioseop_description";
390
+ $psp_meta = "_techblissonline_psp_description";
391
+
392
+ } else if ($meta == "noindex") {
393
+
394
+ $meta_to_import = "_aioseop_noindex";
395
+ $psp_meta = "_techblissonline_psp_noindex";
396
+
397
+ } else if ($meta == "nofollow") {
398
+
399
+ $meta_to_import = "_aioseop_nofollow";
400
+ $psp_meta = "_techblissonline_psp_nofollow";
401
+
402
+ } else if ($meta == "focuskeywords") {
403
+
404
+ $meta_to_import = "_aioseop_keywords";
405
+ $psp_meta = "_techblissonline_psp_focuswords";
406
+
407
+ }
408
+ }
409
 
410
  if($plugin == "psp") {
411
 
490
  $yoast_meta_value = preg_replace('/%[^%]+%/',"", $yoast_meta->meta_value);
491
  $yoast_meta_value = preg_replace('/\s+/', ' ', $yoast_meta_value);
492
 
493
+ } else if ($plugin == "aioseop") {
494
+
495
+ $yoast_meta_value = "";
496
+ //$yoast_meta_value = preg_replace('/%[^%]+%/',"", $yoast_meta->meta_value);
497
+ //$yoast_meta_value = preg_replace('/\s+/', ' ', $yoast_meta_value);
498
+ $yoast_meta_value = $yoast_meta->meta_value;
499
+
500
  }
501
  //$yoast_meta_value = preg_replace('/\'/', '&#039;', $yoast_meta_value);
502
  //$yoast_meta_value = preg_replace('/\"/', '', $yoast_meta_value);
503
 
504
  } else if($meta == "noindex") {
505
+ if ( $plugin == "aioseop" && $yoast_meta->meta_value === "on" ) {
506
+ $yoast_meta_value = 'on';
507
+ } else {
508
+ if( $yoast_meta->meta_value == 1) {
509
+ $yoast_meta_value = 'on';
510
+ }
511
+ }
512
 
513
  } else if($meta == "nofollow") {
514
+ if ( $plugin == "aioseop" && $yoast_meta->meta_value === "on" ) {
515
+ $yoast_meta_value = 'on';
516
+ } else {
517
+ if( $yoast_meta->meta_value == 1) {
518
+ $yoast_meta_value = 'on';
519
+ }
 
 
 
 
 
520
  }
521
+ } else if($meta == "focuskeywords") {
522
+ //if ($plugin == "aioseop") {
523
+ // $yoast_meta_value = $yoast_meta->meta_value;
524
+ //} else {
525
+ $yoast_meta_value = $yoast_meta->meta_value;
526
+ $yoast_meta_value = json_decode( $yoast_meta_value, true );
527
+ if(!$yoast_meta_value) {
528
+ $yoast_meta_value = implode( ', ', array_map( [ &$this, 'psp_get_focus_keyword' ], $yoast_meta_value ) );
529
+ //$yoast_meta_value = implode( ', ', array_map( array( &$this, 'psp_get_focus_keyword' ), $yoast_meta_value ) );
530
+ }
531
+ //}
532
  } else if($meta == "robots") {
533
 
534
  //$yoast_meta_value = $yoast_meta->meta_value;
766
  if($plugin == "yoast") {
767
 
768
  //error_log("yoast");
769
+
770
  $yoast_post_meta = array(
771
  //'_techblissonline_psp_title' => 'title',
772
  //'_techblissonline_psp_description' => 'description',
833
 
834
  };
835
 
836
+ if($plugin == "aioseop") {
837
+
838
+ //error_log("yoast");
839
+
840
+ $yoast_post_meta = array(
841
+ //'_techblissonline_psp_title' => 'title',
842
+ //'_techblissonline_psp_description' => 'description',
843
+ '_techblissonline_psp_keywords' => '_aioseop_keywords',
844
+ '_techblissonline_psp_canonical_url' => '_aioseop_custom_link',
845
+ '_techblissonline_psp_nositemap' => '_aioseop_sitemap_exclude',
846
+ //'_techblissonline_psp_fb_title' => '_yoast_wpseo_opengraph-title',
847
+ //'_techblissonline_psp_fb_description' => '_yoast_wpseo_opengraph-description',
848
+ //'_techblissonline_psp_fb_image' => '_yoast_wpseo_opengraph-image',
849
+ //'_techblissonline_psp_tw_title' => '_yoast_wpseo_twitter-title',
850
+ //'_techblissonline_psp_tw_description' => '_yoast_wpseo_twitter-description',
851
+ //'_techblissonline_psp_tw_image' => '_yoast_wpseo_twitter-image',
852
+ //'_techblissonline_psp_preferred_term' => '_yoast_wpseo_primary_category',
853
+ //'_techblissonline_psp_bc_title' => '_yoast_wpseo_bctitle',
854
+
855
+ );
856
+
857
+ };
858
+
859
  if($plugin == "psp") {
860
 
861
  $yoast_post_meta = array(
982
 
983
  }
984
 
985
+ if($plugin == "aioseop") {
986
+
987
+ $this->import_aioseop_post_social_meta( "socialmeta", "aioseop");
988
+
989
+ }
990
+
991
  return "";
992
 
993
  }
psp-include/settings/js/psp-importer.js CHANGED
@@ -128,6 +128,23 @@ jQuery(document).ready(function($) {
128
  $(".yoastnew-terms-loader").removeClass('hidden');
129
  import_seo_data(this.name, $btn);
130
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  jQuery('#import_psp_robots_data_btn').on('click', function (){
132
  $btn = $(".psp-robots-loader");
133
  $(".psp-robots-loader").removeClass('hidden');
128
  $(".yoastnew-terms-loader").removeClass('hidden');
129
  import_seo_data(this.name, $btn);
130
  });
131
+ jQuery('#import_aioseop_title_data_btn').on('click', function (){
132
+ //jQuery(".psp-titles-loader").show();
133
+ $btn = $(".aioseop-titles-loader");
134
+ $(".aioseop-titles-loader").removeClass('hidden');
135
+ import_seo_data(this.name, $btn);
136
+ });
137
+ jQuery('#import_aioseop_brobots_data_btn').on('click', function (){
138
+ //jQuery(".psp-titles-loader").show();
139
+ $btn = $(".aioseop-basicrobots-loader");
140
+ $(".aioseop-basicrobots-loader").removeClass('hidden');
141
+ import_seo_data(this.name, $btn);
142
+ });
143
+ jQuery('#import_aioseop_others_data_btn').on('click', function (){
144
+ $btn = $(".aioseop-others-loader");
145
+ $(".aioseop-others-loader").removeClass('hidden');
146
+ import_seo_data(this.name, $btn);
147
+ });
148
  jQuery('#import_psp_robots_data_btn').on('click', function (){
149
  $btn = $(".psp-robots-loader");
150
  $(".psp-robots-loader").removeClass('hidden');
psp-include/settings/psp_settings.php CHANGED
@@ -3368,14 +3368,16 @@ class PspSettings {
3368
  $psp_post_metabox_hidden = isset($psp_post_settings['hide_metabox']) ? $psp_post_settings['hide_metabox'] : '';
3369
  if (!$psp_post_metabox_hidden || is_super_admin()) {
3370
  //add_meta_box( 'postpsp', esc_html__( 'Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), 'post', 'normal', 'high' );
3371
- add_meta_box( 'postpsp', '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), 'post', 'normal', 'high' );
 
3372
  }
3373
 
3374
  $psp_page_settings = get_option("psp_page_settings");
3375
  $psp_page_metabox_hidden = isset($psp_page_settings['hide_metabox']) ? $psp_page_settings['hide_metabox'] : '';
3376
  if (!$psp_page_metabox_hidden || is_super_admin()) {
3377
  //add_meta_box( 'postpsp', esc_html__( 'Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), 'page', 'normal', 'high' );
3378
- add_meta_box( 'postpsp', '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), 'page', 'normal', 'high' );
 
3379
  }
3380
 
3381
  $cust_post_types = array();
@@ -3389,7 +3391,8 @@ class PspSettings {
3389
  $psp_posttype_metabox_hidden = isset($psp_posttype_option_value['hide_metabox']) ? $psp_posttype_option_value['hide_metabox'] : '';
3390
  if (!$psp_posttype_metabox_hidden || is_super_admin()) {
3391
  //add_meta_box( 'postpsp', esc_html__( 'Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), $cust_post_type, 'normal', 'high' );
3392
- add_meta_box( 'postpsp', '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), $cust_post_type, 'normal', 'high' );
 
3393
  }
3394
  }
3395
 
3368
  $psp_post_metabox_hidden = isset($psp_post_settings['hide_metabox']) ? $psp_post_settings['hide_metabox'] : '';
3369
  if (!$psp_post_metabox_hidden || is_super_admin()) {
3370
  //add_meta_box( 'postpsp', esc_html__( 'Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), 'post', 'normal', 'high' );
3371
+ //add_meta_box( 'postpsp', '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), 'post', 'normal', 'high' );
3372
+ add_meta_box( 'postpsp', '<span align="left">'.'<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ).'</span>', array( &$this, 'psp_do_seo_metabox' ), 'post', 'normal', 'high' );
3373
  }
3374
 
3375
  $psp_page_settings = get_option("psp_page_settings");
3376
  $psp_page_metabox_hidden = isset($psp_page_settings['hide_metabox']) ? $psp_page_settings['hide_metabox'] : '';
3377
  if (!$psp_page_metabox_hidden || is_super_admin()) {
3378
  //add_meta_box( 'postpsp', esc_html__( 'Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), 'page', 'normal', 'high' );
3379
+ //add_meta_box( 'postpsp', '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), 'page', 'normal', 'high' );
3380
+ add_meta_box( 'postpsp', '<span align="left">'.'<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ).'</span>', array( &$this, 'psp_do_seo_metabox' ), 'post', 'normal', 'high' );
3381
  }
3382
 
3383
  $cust_post_types = array();
3391
  $psp_posttype_metabox_hidden = isset($psp_posttype_option_value['hide_metabox']) ? $psp_posttype_option_value['hide_metabox'] : '';
3392
  if (!$psp_posttype_metabox_hidden || is_super_admin()) {
3393
  //add_meta_box( 'postpsp', esc_html__( 'Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), $cust_post_type, 'normal', 'high' );
3394
+ //add_meta_box( 'postpsp', '<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ), array( &$this, 'psp_do_seo_metabox' ), $cust_post_type, 'normal', 'high' );
3395
+ add_meta_box( 'postpsp', '<span align="left">'.'<img src="'.esc_url(plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) ))).'" />'.esc_html__( ' Techblissonline Platinum SEO and Social Meta Box', 'platinum-seo-pack' ).'</span>', array( &$this, 'psp_do_seo_metabox' ), 'post', 'normal', 'high' );
3396
  }
3397
  }
3398
 
psp-include/utilities/psp_helper.php CHANGED
@@ -19,7 +19,7 @@ class PspHelper {
19
  * as description. Touch only if you know what you're doing
20
  */
21
  private $min_description_length = 1;
22
- private $version = "2.1.7";
23
 
24
  public $sitename = "";
25
  public $sitedescription = "";
19
  * as description. Touch only if you know what you're doing
20
  */
21
  private $min_description_length = 1;
22
+ private $version = "2.1.8";
23
 
24
  public $sitename = "";
25
  public $sitedescription = "";
psp_main.php CHANGED
@@ -263,14 +263,14 @@ class PspMain {
263
  $user_id = get_current_user_id();
264
  // Add the meta so that the notice is permanently dismissed.
265
  //delete_user_meta( $user_id, 'psp_ignore_notice_v_209' );
266
- update_user_meta( $user_id, 'psp_ignore_notice', "v_217" );
267
  };
268
  };
269
  }
270
 
271
  public function platinum_seo_admin_notice__success() {
272
  $user_id = get_current_user_id();
273
- if ( "v_217" === trim(get_user_meta( $user_id, 'psp_ignore_notice', true ) )) return;
274
  global $pagenow;
275
  $psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
276
  if ('index.php' === $pagenow || ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages))) {
@@ -280,7 +280,7 @@ class PspMain {
280
  'psp_ignore_notice' => '1',
281
  'action' => 'psp_delete_adminnotice',
282
  'nonce' => wp_create_nonce('psp_delete_adminnotice'),
283
- ] ) ) .'" style="float:right; display:block; border:none;">'.esc_html__( 'Dismiss permanently', 'platinum-seo-pack' ) .'</a>'.'<br>'. esc_html__( 'See What has Changed in this', 'platinum-seo-pack' ).'<a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"> '.esc_html__( ' Version ', 'platinum-seo-pack' ).'2.1.7'.esc_html__( ' and earlier Versions!', 'platinum-seo-pack' ) .'</a>'.'<br>'.esc_html__( 'Like this Plugin? Pls. give it a rating WordPress plugin Page', 'platinum-seo-pack' ).'<a href="https://wordpress.org/plugins/platinum-seo-pack/" target="_blank" rel="noopener">'.esc_html__(' here','platinum-seo-pack' ).'</a>'; ?></p></strong>
284
  </div>
285
  <?php
286
  }
263
  $user_id = get_current_user_id();
264
  // Add the meta so that the notice is permanently dismissed.
265
  //delete_user_meta( $user_id, 'psp_ignore_notice_v_209' );
266
+ update_user_meta( $user_id, 'psp_ignore_notice', "v_218" );
267
  };
268
  };
269
  }
270
 
271
  public function platinum_seo_admin_notice__success() {
272
  $user_id = get_current_user_id();
273
+ if ( "v_218" === trim(get_user_meta( $user_id, 'psp_ignore_notice', true ) )) return;
274
  global $pagenow;
275
  $psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
276
  if ('index.php' === $pagenow || ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages))) {
280
  'psp_ignore_notice' => '1',
281
  'action' => 'psp_delete_adminnotice',
282
  'nonce' => wp_create_nonce('psp_delete_adminnotice'),
283
+ ] ) ) .'" style="float:right; display:block; border:none;">'.esc_html__( 'Dismiss permanently', 'platinum-seo-pack' ) .'</a>'.'<br>'. esc_html__( 'See What has Changed in this', 'platinum-seo-pack' ).'<a href="https://techblissonline.com/platinum-wordpress-seo-plugin/#what-is-new" target="_blank" rel="noopener"> '.esc_html__( ' Version ', 'platinum-seo-pack' ).'2.1.8'.esc_html__( ' and earlier Versions!', 'platinum-seo-pack' ) .'</a>'.'<br>'.esc_html__( 'Like this Plugin? Pls. give it a rating on WordPress', 'platinum-seo-pack' ).'<a href="https://wordpress.org/plugins/platinum-seo-pack/" target="_blank" rel="noopener">'.esc_html__(' here','platinum-seo-pack' ).'</a>'; ?></p></strong>
284
  </div>
285
  <?php
286
  }
readme.txt CHANGED
@@ -4,9 +4,9 @@ Donate link: https://www.patreon.com/join/techblissonline
4
  Plugin link: https://techblissonline.com/platinum-wordpress-seo-plugin/
5
  Tags: seo, wordpress seo, plugin, google seo, platinum seo, schema, schema markup, Json schema
6
  Requires at least: 4.0
7
- Tested up to: 5.4.2
8
  Requires PHP: 5.6
9
- Stable tag: 2.1.7
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -46,8 +46,9 @@ Some features:
46
  21) Add index, noindex, follow or nofollow, noodp, noydir, noarchive, nosnippet meta tags to any post/page.
47
  22) Integration with WordPress Core SiteMap.
48
  23) Set a preferred Taxonomy and Term for every POST.
49
- 24) Support for SiteMap. The plugin currently integrates the WordPress Sitemap files proposed to be integrate in Core in WordPress 5.5 with some enhancements to support images in sitemaps.
50
- 25) Plenty of other features.
 
51
 
52
  == Installation ==
53
 
@@ -71,6 +72,9 @@ Please read these **[FAQs](https://techblissonline.com/platinum-seo-pack-faq/)**
71
  4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
72
 
73
  == Changelog ==
 
 
 
74
  = 2.1.7 =
75
  * 2020-07-13 - Fixed bugs in JS files to be compliant with the proposed JQuery versions in WordPress 5.5 and beyond. Since WordPress sitemap files is proposed to be integrated into the Core in V5.5, made the necessary changes in the plugin's version of the files.
76
 
4
  Plugin link: https://techblissonline.com/platinum-wordpress-seo-plugin/
5
  Tags: seo, wordpress seo, plugin, google seo, platinum seo, schema, schema markup, Json schema
6
  Requires at least: 4.0
7
+ Tested up to: 5.5
8
  Requires PHP: 5.6
9
+ Stable tag: 2.1.8
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
46
  21) Add index, noindex, follow or nofollow, noodp, noydir, noarchive, nosnippet meta tags to any post/page.
47
  22) Integration with WordPress Core SiteMap.
48
  23) Set a preferred Taxonomy and Term for every POST.
49
+ 24) Support for SiteMap. The plugin currently integrates the WordPress Sitemap files in version 5.5 with some enhancements to support images in sitemaps.
50
+ 25) supports import of SEO Data from other plugins like Yoast (both new and old versions), RankMath and All in One SEO Pack.
51
+ 26) Plenty of other features.
52
 
53
  == Installation ==
54
 
72
  4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
73
 
74
  == Changelog ==
75
+ = 2.1.8 =
76
+ * 2020-08-11 - Compatible with WordPress 5.5. Added support for migration of data from All in One SEO Pack.
77
+
78
  = 2.1.7 =
79
  * 2020-07-13 - Fixed bugs in JS files to be compliant with the proposed JQuery versions in WordPress 5.5 and beyond. Since WordPress sitemap files is proposed to be integrated into the Core in V5.5, made the necessary changes in the plugin's version of the files.
80