Version Description
Download this release
Release Info
Developer | Rajesh Babu |
Plugin | Platinum SEO Pack |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- Changelog.txt +2 -0
- platinum-seo-pack.php +1 -1
- psp-include/importers/psp_import.php +7 -7
- psp-include/settings/psp_settings.php +5 -2
- psp-include/utilities/psp_helper.php +1 -1
- psp-include/wizard/psp_wizard_settings.php +3 -3
- psp_main.php +3 -3
- readme.txt +3 -1
Changelog.txt
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
= 2.2.1 =
|
2 |
* 2020-11-20 - Introduced a comprehensive Role Manager that can be used to control who (which role) can access which Platinum SEO Settings. Introduced a SetUp wizard to make it easy for users installing Platinum SEO WordPress Plugin to configure various settings. It also makes it easy for users migrating from other popular SEO plugin to platinum SEO, to setup the SEO configuration. Fixed a few bugs in sitemap settings. Made the 404 guessing workaround to be compatible with the latest changes in WordPress 5.5.0.
|
3 |
|
1 |
+
2020-11-21 - Fixed a bug that caused he featured image to be not set when using the classic editor plugin in WordPress. Fixed a bug that was logging an "Headers already Sent" error when updating a post.
|
2 |
+
|
3 |
= 2.2.1 =
|
4 |
* 2020-11-20 - Introduced a comprehensive Role Manager that can be used to control who (which role) can access which Platinum SEO Settings. Introduced a SetUp wizard to make it easy for users installing Platinum SEO WordPress Plugin to configure various settings. It also makes it easy for users migrating from other popular SEO plugin to platinum SEO, to setup the SEO configuration. Fixed a few bugs in sitemap settings. Made the 404 guessing workaround to be compatible with the latest changes in WordPress 5.5.0.
|
5 |
|
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.2.
|
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.2.2
|
8 |
Author: Techblissonline.com (Rajesh)
|
9 |
Author URI: https://techblissonline.com/
|
10 |
Text Domain: platinum-seo-pack
|
psp-include/importers/psp_import.php
CHANGED
@@ -921,33 +921,33 @@ class PspImporter {
|
|
921 |
|
922 |
if ($key == '_techblissonline_psp_preferred_term') {
|
923 |
|
924 |
-
$yoast_sql_
|
925 |
|
926 |
} else if($key == '_techblissonline_psp_fb_image') {
|
927 |
|
928 |
-
$yoast_sql_
|
929 |
|
930 |
} else if($key == '_techblissonline_psp_tw_image') {
|
931 |
|
932 |
-
$yoast_sql_
|
933 |
|
934 |
} else {
|
935 |
-
$yoast_sql_
|
936 |
}
|
937 |
|
938 |
} else {
|
939 |
|
940 |
if($plugin == "psp") {
|
941 |
-
$yoast_sql_
|
942 |
} else {
|
943 |
-
$yoast_sql_
|
944 |
}
|
945 |
//$yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, 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 meta_key = %s) ORDER by post_id LIMIT %d", $key, $last_id, $value, $key, $max_rows_to_insert);
|
946 |
}
|
947 |
|
948 |
//error_log($yoast_sql_{$counter});
|
949 |
|
950 |
-
$rows_inserted = $wpdb->query($yoast_sql_
|
951 |
|
952 |
//error_log("rows_inserted ".$rows_inserted);
|
953 |
|
921 |
|
922 |
if ($key == '_techblissonline_psp_preferred_term') {
|
923 |
|
924 |
+
${"yoast_sql_".$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, term_id from {$yoast_primary_term_rbl} WHERE post_id > %d and post_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by post_id LIMIT %d", $key, $last_id, $last_id, $key, $max_rows_to_insert);
|
925 |
|
926 |
} else if($key == '_techblissonline_psp_fb_image') {
|
927 |
|
928 |
+
${"yoast_sql_".$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select object_id, %s, {$value} from {$psp_post_meta_tbl} WHERE {$value} IS NOT NULL and open_graph_image_source = 'set-by-user' and object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by object_id LIMIT %d", $key, $last_id, 'post', $last_id, $key, $max_rows_to_insert);
|
929 |
|
930 |
} else if($key == '_techblissonline_psp_tw_image') {
|
931 |
|
932 |
+
${"yoast_sql_".$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select object_id, %s, {$value} from {$psp_post_meta_tbl} WHERE {$value} IS NOT NULL and twitter_image_source = 'set-by-user' and object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by object_id LIMIT %d", $key, $last_id, 'post', $last_id, $key, $max_rows_to_insert);
|
933 |
|
934 |
} else {
|
935 |
+
${"yoast_sql_".$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select object_id, %s, {$value} from {$psp_post_meta_tbl} WHERE {$value} IS NOT NULL and object_id > %d and object_type = %s and object_id not in (Select platinumseo_id from {$psp_post_seo_tbl} WHERE platinumseo_id > %d and meta_key = %s) ORDER by object_id LIMIT %d", $key, $last_id, 'post', $last_id, $key, $max_rows_to_insert);
|
936 |
}
|
937 |
|
938 |
} else {
|
939 |
|
940 |
if($plugin == "psp") {
|
941 |
+
${"yoast_sql_".$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, meta_value from {$psp_post_meta_tbl} WHERE (meta_value IS NOT NULL AND meta_value != '' AND meta_value != '0') and 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 = %s) ORDER by post_id LIMIT %d", $key, $last_id, $value, $last_id, $key, $max_rows_to_insert);
|
942 |
} else {
|
943 |
+
${"yoast_sql_".$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, meta_value from {$psp_post_meta_tbl} WHERE (meta_value IS NOT NULL AND meta_value != '') and 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 = %s) ORDER by post_id LIMIT %d", $key, $last_id, $value, $last_id, $key, $max_rows_to_insert);
|
944 |
}
|
945 |
//$yoast_sql_{$counter} = $wpdb->prepare("Insert into {$yoast_post_seo_tbl} (post_id, meta_key, meta_value) Select post_id, %s, 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 meta_key = %s) ORDER by post_id LIMIT %d", $key, $last_id, $value, $key, $max_rows_to_insert);
|
946 |
}
|
947 |
|
948 |
//error_log($yoast_sql_{$counter});
|
949 |
|
950 |
+
$rows_inserted = $wpdb->query(${"yoast_sql_".$counter});
|
951 |
|
952 |
//error_log("rows_inserted ".$rows_inserted);
|
953 |
|
psp-include/settings/psp_settings.php
CHANGED
@@ -2051,7 +2051,8 @@ class PspSettings {
|
|
2051 |
|
2052 |
$psp_settings = get_option($psp_settings_name);
|
2053 |
global $pagenow;
|
2054 |
-
|
|
|
2055 |
if ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages)) {
|
2056 |
wp_enqueue_media();
|
2057 |
wp_enqueue_script( 'psp-bs-toggler-js', plugins_url( '/js/pspbstoggler.js', __FILE__ ) );
|
@@ -3558,7 +3559,9 @@ class PspSettings {
|
|
3558 |
|
3559 |
//$psp_premium_valid = 1;
|
3560 |
//$psp_premium_status = 0;
|
3561 |
-
|
|
|
|
|
3562 |
//$psp_post_meta = get_post_meta($post->ID, '_psp_post_seo_meta', true);
|
3563 |
|
3564 |
$psp_post_meta = array();
|
2051 |
|
2052 |
$psp_settings = get_option($psp_settings_name);
|
2053 |
global $pagenow;
|
2054 |
+
//$psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses','wizard');
|
2055 |
+
$psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses', 'wizard');
|
2056 |
if ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages)) {
|
2057 |
wp_enqueue_media();
|
2058 |
wp_enqueue_script( 'psp-bs-toggler-js', plugins_url( '/js/pspbstoggler.js', __FILE__ ) );
|
3559 |
|
3560 |
//$psp_premium_valid = 1;
|
3561 |
//$psp_premium_status = 0;
|
3562 |
+
if ( !$saving ) {
|
3563 |
+
wp_nonce_field( 'do_psp_seo_meta_box', 'psp_seo_meta_box_nonce' );
|
3564 |
+
}
|
3565 |
//$psp_post_meta = get_post_meta($post->ID, '_psp_post_seo_meta', true);
|
3566 |
|
3567 |
$psp_post_meta = array();
|
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.2.
|
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.2.2";
|
23 |
|
24 |
public $sitename = "";
|
25 |
public $sitedescription = "";
|
psp-include/wizard/psp_wizard_settings.php
CHANGED
@@ -989,10 +989,10 @@ class PspWizardSettings {
|
|
989 |
$psp_settings = get_option($psp_settings_name);
|
990 |
//$this->psp_settings_name = $psp_settings;
|
991 |
|
992 |
-
wp_enqueue_media();
|
993 |
//wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
|
994 |
-
wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js',
|
995 |
-
wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js',
|
996 |
|
997 |
register_setting( $this->psp_social_settings_group, $psp_settings_name,array( &$this, 'sanitize_social_settings' ) );
|
998 |
|
989 |
$psp_settings = get_option($psp_settings_name);
|
990 |
//$this->psp_settings_name = $psp_settings;
|
991 |
|
992 |
+
//wp_enqueue_media();
|
993 |
//wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', __FILE__ ), array( 'jquery' ) );
|
994 |
+
//wp_enqueue_script( 'psp-image-uploader', plugins_url( '/js/pspmediauploader.js', PSP_PLUGIN_SETTINGS_URL ), array( 'jquery' ), '2.2.1' );
|
995 |
+
wp_enqueue_script( 'psp-social', plugins_url( '/js/pspsocialhandler.js', PSP_PLUGIN_SETTINGS_URL ), array( 'jquery' ) );
|
996 |
|
997 |
register_setting( $this->psp_social_settings_group, $psp_settings_name,array( &$this, 'sanitize_social_settings' ) );
|
998 |
|
psp_main.php
CHANGED
@@ -273,14 +273,14 @@ class PspMain {
|
|
273 |
$user_id = get_current_user_id();
|
274 |
// Add the meta so that the notice is permanently dismissed.
|
275 |
//delete_user_meta( $user_id, 'psp_ignore_notice_v_209' );
|
276 |
-
update_user_meta( $user_id, 'psp_ignore_notice', "
|
277 |
};
|
278 |
};
|
279 |
}
|
280 |
|
281 |
public function platinum_seo_admin_notice__success() {
|
282 |
$user_id = get_current_user_id();
|
283 |
-
if ( "
|
284 |
global $pagenow;
|
285 |
$psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
|
286 |
if ('index.php' === $pagenow || ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages))) {
|
@@ -290,7 +290,7 @@ class PspMain {
|
|
290 |
'psp_ignore_notice' => '1',
|
291 |
'action' => 'psp_delete_adminnotice',
|
292 |
'nonce' => wp_create_nonce('psp_delete_adminnotice'),
|
293 |
-
] ) ) .'" 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.2.
|
294 |
</div>
|
295 |
<?php
|
296 |
}
|
273 |
$user_id = get_current_user_id();
|
274 |
// Add the meta so that the notice is permanently dismissed.
|
275 |
//delete_user_meta( $user_id, 'psp_ignore_notice_v_209' );
|
276 |
+
update_user_meta( $user_id, 'psp_ignore_notice', "v_222" );
|
277 |
};
|
278 |
};
|
279 |
}
|
280 |
|
281 |
public function platinum_seo_admin_notice__success() {
|
282 |
$user_id = get_current_user_id();
|
283 |
+
if ( "v_222" === trim(get_user_meta( $user_id, 'psp_ignore_notice', true ) )) return;
|
284 |
global $pagenow;
|
285 |
$psp_pages = array('platinum-seo-social-pack-by-techblissonline', 'psp-social-by-techblissonline', 'psp-tools-by-techblissonline', 'pspp-licenses');
|
286 |
if ('index.php' === $pagenow || ( $pagenow == 'admin.php' && in_array(sanitize_key($_GET['page']), $psp_pages))) {
|
290 |
'psp_ignore_notice' => '1',
|
291 |
'action' => 'psp_delete_adminnotice',
|
292 |
'nonce' => wp_create_nonce('psp_delete_adminnotice'),
|
293 |
+
] ) ) .'" 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.2.2'.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/support/plugin/platinum-seo-pack/reviews/#new-post" target="_blank" rel="noopener">'.esc_html__(' here','platinum-seo-pack' ).'</a>'; ?></p></strong>
|
294 |
</div>
|
295 |
<?php
|
296 |
}
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: seo, wordpress seo, plugin, google seo, platinum seo, schema, schema marku
|
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 5.5.3
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 2.2.
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -72,6 +72,8 @@ Please read these **[FAQs](https://techblissonline.com/platinum-seo-pack-faq/)**
|
|
72 |
4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
|
73 |
|
74 |
== Changelog ==
|
|
|
|
|
75 |
= 2.2.1 =
|
76 |
* 2020-11-20 - Introduced a comprehensive Role Manager that can be used to control who (which role) can access which Platinum SEO Settings. Introduced a SetUp wizard to make it easy for users installing Platinum SEO WordPress Plugin to configure various settings. It also makes it easy for users migrating from other popular SEO plugin to platinum SEO, to setup the SEO configuration. Fixed a few bugs in sitemap settings. Made the 404 guessing workaround to be compatible with the latest changes in WordPress 5.5.0.
|
77 |
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 5.5.3
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 2.2.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
72 |
4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
|
73 |
|
74 |
== Changelog ==
|
75 |
+
2020-11-21 - Fixed a bug that caused he featured image to be not set when using the classic editor plugin in WordPress. Fixed a bug that was logging an "Headers already Sent" error when updating a post.
|
76 |
+
|
77 |
= 2.2.1 =
|
78 |
* 2020-11-20 - Introduced a comprehensive Role Manager that can be used to control who (which role) can access which Platinum SEO Settings. Introduced a SetUp wizard to make it easy for users installing Platinum SEO WordPress Plugin to configure various settings. It also makes it easy for users migrating from other popular SEO plugin to platinum SEO, to setup the SEO configuration. Fixed a few bugs in sitemap settings. Made the 404 guessing workaround to be compatible with the latest changes in WordPress 5.5.0.
|
79 |
|