Version Description
- 2020-07-07 - Fixed a bug in rendering of static Front page Platinum SEO settings (i.e. meta description and canonical tags) when multiple Static pages are used as front page by multilingual plugins like Polylang. This bug had an impact only on users of multilingual plugins.
Download this release
Release Info
Developer | Rajesh Babu |
Plugin | Platinum SEO Pack |
Version | 2.1.6 |
Comparing to | |
See all releases |
Code changes from version 2.1.5 to 2.1.6
- Changelog.txt +3 -0
- platinum-seo-pack.php +1 -1
- psp-include/generators/psp_pts_seo_metas.php +15 -8
- psp-include/settings/psp_settings.php +2 -1
- psp-include/utilities/psp_helper.php +1 -1
- psp_main.php +3 -3
- readme.txt +4 -1
Changelog.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
= 2.1.5 =
|
2 |
* 2020-07-06 - A change has been made whereby the user is given an option to choose to display either the Home Page Settings(default) or the platinum SEO settings for the Static Page chosen as the Home Page (Front Page). This option isn't necessary for everyone, unless you are using, say, multilingual plugins like Polylang where multiple pages can be chosen as the Front Page i.e. one for each language. This need not be enabled by others.
|
3 |
Deprecated noodp, noydir robots meta tags.
|
1 |
+
= 2.1.6 =
|
2 |
+
* 2020-07-07 - Fixed a bug in rendering of static Front page Platinum SEO settings (i.e. meta description and canonical tags) when multiple Static pages are used as front page by multilingual plugins like Polylang. This bug had an impact only on users of multilingual plugins.
|
3 |
+
|
4 |
= 2.1.5 =
|
5 |
* 2020-07-06 - A change has been made whereby the user is given an option to choose to display either the Home Page Settings(default) or the platinum SEO settings for the Static Page chosen as the Home Page (Front Page). This option isn't necessary for everyone, unless you are using, say, multilingual plugins like Polylang where multiple pages can be chosen as the Front Page i.e. one for each language. This need not be enabled by others.
|
6 |
Deprecated noodp, noydir robots meta tags.
|
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.
|
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.6
|
8 |
Author: Techblissonline.com (Rajesh)
|
9 |
Author URI: https://techblissonline.com/
|
10 |
Text Domain: platinum-seo-pack
|
psp-include/generators/psp_pts_seo_metas.php
CHANGED
@@ -375,7 +375,7 @@ class PspPtsSeoMetas {
|
|
375 |
|
376 |
$psp_settings = $this->psp_sitewide_settings;
|
377 |
$this->post_type_name = $post->post_type;
|
378 |
-
|
379 |
if (is_page()) {
|
380 |
if ($this->is_static_front_page($post)){
|
381 |
//$home_desc_keyword_meta_string = get_home_description_meta();
|
@@ -387,7 +387,7 @@ class PspPtsSeoMetas {
|
|
387 |
return $home_desc_keyword_meta_string;
|
388 |
}
|
389 |
}
|
390 |
-
|
391 |
//$ptype_name = get_post_type($post);
|
392 |
//$post_type_desc_format = "psp_".$ptype_name."_desc_format";
|
393 |
if (!empty($this->psp_current_ptype_format)) $post_type_format = $this->psp_current_ptype_format;
|
@@ -556,15 +556,17 @@ class PspPtsSeoMetas {
|
|
556 |
|
557 |
//$can_link = trailingslashit($can_link);
|
558 |
|
559 |
-
|
560 |
if (is_page()) {
|
561 |
if ($this->is_static_front_page($post)){
|
562 |
|
563 |
-
$this_is_static_front_page = true;
|
|
|
564 |
$home_link = get_option('home');
|
565 |
//can link for sub pages created using Next page quicktag.Is it needed?
|
566 |
$can_link = $this->pt_paged_link($home_link, $post, $pagednum);
|
567 |
$can_link = trailingslashit($can_link);
|
|
|
568 |
}
|
569 |
}
|
570 |
|
@@ -1095,12 +1097,17 @@ class PspPtsSeoMetas {
|
|
1095 |
$title = $this->psp_helper->internationalize(get_post_meta($post->ID, "title", true));
|
1096 |
}
|
1097 |
if (!$title) {
|
1098 |
-
if ($this->is_static_front_page()) {
|
1099 |
$psp_home_settings = get_option('psp_home_settings');
|
1100 |
-
$
|
1101 |
-
if
|
1102 |
-
$title = $this->psp_helper->internationalize(
|
|
|
|
|
1103 |
}
|
|
|
|
|
|
|
1104 |
} else {
|
1105 |
//$title = $this->psp_helper->internationalize(wp_title('', false));
|
1106 |
$title = $this->psp_helper->internationalize($post->post_title);
|
375 |
|
376 |
$psp_settings = $this->psp_sitewide_settings;
|
377 |
$this->post_type_name = $post->post_type;
|
378 |
+
/*** commented in V1.2.6
|
379 |
if (is_page()) {
|
380 |
if ($this->is_static_front_page($post)){
|
381 |
//$home_desc_keyword_meta_string = get_home_description_meta();
|
387 |
return $home_desc_keyword_meta_string;
|
388 |
}
|
389 |
}
|
390 |
+
***/
|
391 |
//$ptype_name = get_post_type($post);
|
392 |
//$post_type_desc_format = "psp_".$ptype_name."_desc_format";
|
393 |
if (!empty($this->psp_current_ptype_format)) $post_type_format = $this->psp_current_ptype_format;
|
556 |
|
557 |
//$can_link = trailingslashit($can_link);
|
558 |
|
559 |
+
//$can_link will never be empty for static page at this point.
|
560 |
if (is_page()) {
|
561 |
if ($this->is_static_front_page($post)){
|
562 |
|
563 |
+
$this_is_static_front_page = true;
|
564 |
+
/***
|
565 |
$home_link = get_option('home');
|
566 |
//can link for sub pages created using Next page quicktag.Is it needed?
|
567 |
$can_link = $this->pt_paged_link($home_link, $post, $pagednum);
|
568 |
$can_link = trailingslashit($can_link);
|
569 |
+
***/
|
570 |
}
|
571 |
}
|
572 |
|
1097 |
$title = $this->psp_helper->internationalize(get_post_meta($post->ID, "title", true));
|
1098 |
}
|
1099 |
if (!$title) {
|
1100 |
+
if ($this->is_static_front_page($post)) {
|
1101 |
$psp_home_settings = get_option('psp_home_settings');
|
1102 |
+
$use_front_page_settings = isset($psp_home_settings['use_front_page']) ? $psp_home_settings['use_front_page'] : '';
|
1103 |
+
if(!$use_front_page_settings) {
|
1104 |
+
$title = isset($psp_home_settings['title']) ? $this->psp_helper->internationalize($psp_home_settings['title']) : '';
|
1105 |
+
} else {
|
1106 |
+
$title = $this->psp_helper->internationalize($post->post_title);
|
1107 |
}
|
1108 |
+
//if (empty($title)) {
|
1109 |
+
// $title = $this->psp_helper->internationalize(get_option('aiosp_home_title'));
|
1110 |
+
//}
|
1111 |
} else {
|
1112 |
//$title = $this->psp_helper->internationalize(wp_title('', false));
|
1113 |
$title = $this->psp_helper->internationalize($post->post_title);
|
psp-include/settings/psp_settings.php
CHANGED
@@ -2824,7 +2824,8 @@ class PspSettings {
|
|
2824 |
*/
|
2825 |
function add_admin_menus() {
|
2826 |
//add_options_page( 'Platinum SEO New Settings', 'My Settings', 'manage_options', $this->psp_plugin_options_key, array( &$this, 'psp_options_page' ) );
|
2827 |
-
add_menu_page(esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum-seo-pack'), esc_html__('Platinum SEO and Social Pack', 'platinum-seo-pack'), 'manage_options', $this->psp_plugin_options_key, array($this, 'psp_options_page'), plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) )));
|
|
|
2828 |
add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-settings"></span> '.esc_html__('SEO', 'platinum-seo-pack'), 'manage_options', $this->psp_plugin_options_key);
|
2829 |
$psp_settings = get_option('psp_pre_setting');
|
2830 |
$psp_premium_valid = isset($psp_settings['premium']) ? $psp_settings['premium'] : '';
|
2824 |
*/
|
2825 |
function add_admin_menus() {
|
2826 |
//add_options_page( 'Platinum SEO New Settings', 'My Settings', 'manage_options', $this->psp_plugin_options_key, array( &$this, 'psp_options_page' ) );
|
2827 |
+
add_menu_page(esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum-seo-pack'), esc_html__('Platinum SEO and Social Pack', 'platinum-seo-pack'), 'manage_options', $this->psp_plugin_options_key, array($this, 'psp_options_page'), plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) )), 5);
|
2828 |
+
//add_menu_page(esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum-seo-pack'), esc_html__('Platinum SEO and Social Pack', 'platinum-seo-pack'), 'manage_options', $this->psp_plugin_options_key, array($this, 'psp_options_page'), plugins_url( 'images/techblissonline-platinum-seo-pack.ico', dirname(dirname(__FILE__) )));
|
2829 |
add_submenu_page($this->psp_plugin_options_key, esc_html__('Techblissonline Platinum SEO and social Pack', 'platinum-seo-pack'), '<span class="dashicons dashicons-admin-settings"></span> '.esc_html__('SEO', 'platinum-seo-pack'), 'manage_options', $this->psp_plugin_options_key);
|
2830 |
$psp_settings = get_option('psp_pre_setting');
|
2831 |
$psp_premium_valid = isset($psp_settings['premium']) ? $psp_settings['premium'] : '';
|
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.
|
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.6";
|
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', "
|
267 |
};
|
268 |
};
|
269 |
}
|
270 |
|
271 |
public function platinum_seo_admin_notice__success() {
|
272 |
$user_id = get_current_user_id();
|
273 |
-
if ( "
|
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.
|
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_216" );
|
267 |
};
|
268 |
};
|
269 |
}
|
270 |
|
271 |
public function platinum_seo_admin_notice__success() {
|
272 |
$user_id = get_current_user_id();
|
273 |
+
if ( "v_216" === 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.6'.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 |
}
|
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.4.2
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 2.1.
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -71,6 +71,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.5 =
|
75 |
* 2020-07-06 - A change has been made whereby the user is given an option to choose to display either the Home Page Settings(default) or the platinum SEO settings for the Static Page chosen as the Home Page (Front Page). This option isn't necessary for everyone, unless you are using, say, multilingual plugins like Polylang where multiple pages can be chosen as the Front Page i.e. one for each language. This need not be enabled by others.
|
76 |
Deprecated noodp, noydir robots meta tags.
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 5.4.2
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 2.1.6
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
71 |
4. Social Settings for Facebook, Twitter, Pinterest and LinkedIn. Generates Open Grah Tags and Twitter compatible Tags.
|
72 |
|
73 |
== Changelog ==
|
74 |
+
= 2.1.6 =
|
75 |
+
* 2020-07-07 - Fixed a bug in rendering of static Front page Platinum SEO settings (i.e. meta description and canonical tags) when multiple Static pages are used as front page by multilingual plugins like Polylang. This bug had an impact only on users of multilingual plugins.
|
76 |
+
|
77 |
= 2.1.5 =
|
78 |
* 2020-07-06 - A change has been made whereby the user is given an option to choose to display either the Home Page Settings(default) or the platinum SEO settings for the Static Page chosen as the Home Page (Front Page). This option isn't necessary for everyone, unless you are using, say, multilingual plugins like Polylang where multiple pages can be chosen as the Front Page i.e. one for each language. This need not be enabled by others.
|
79 |
Deprecated noodp, noydir robots meta tags.
|