Version Description
- Fixes deprecation notice from new Yoast release
Download this release
Release Info
Developer | kylephillips |
Plugin | Nested Pages |
Version | 3.1.22 |
Comparing to | |
See all releases |
Code changes from version 3.1.21 to 3.1.22
- app/Entities/PluginIntegration/YoastSeo.php +5 -1
- app/NestedPages.php +1 -1
- nestedpages.php +2 -2
- readme.txt +4 -1
app/Entities/PluginIntegration/YoastSeo.php
CHANGED
@@ -26,7 +26,11 @@ class YoastSeo
|
|
26 |
$yoast_score = get_post_meta($post_id, '_yoast_wpseo_meta-robots-noindex', true);
|
27 |
if ( ! $yoast_score ) {
|
28 |
$yoast_score = get_post_meta($post_id, '_yoast_wpseo_linkdex', true);
|
29 |
-
|
|
|
|
|
|
|
|
|
30 |
} else {
|
31 |
return 'noindex';
|
32 |
}
|
26 |
$yoast_score = get_post_meta($post_id, '_yoast_wpseo_meta-robots-noindex', true);
|
27 |
if ( ! $yoast_score ) {
|
28 |
$yoast_score = get_post_meta($post_id, '_yoast_wpseo_linkdex', true);
|
29 |
+
if ( version_compare(WPSEO_VERSION, '19.5.1', '<') ){
|
30 |
+
return \WPSEO_Utils::translate_score($yoast_score);
|
31 |
+
}
|
32 |
+
$score_icon_helper = YoastSEO()->helpers->score_icon;
|
33 |
+
return $score_icon_helper->for_readability($yoast_score);
|
34 |
} else {
|
35 |
return 'noindex';
|
36 |
}
|
app/NestedPages.php
CHANGED
@@ -12,7 +12,7 @@ class NestedPages
|
|
12 |
$np_env = 'live';
|
13 |
|
14 |
global $np_version;
|
15 |
-
$np_version = '3.1.
|
16 |
|
17 |
if ( is_admin() ) $app = new NestedPages\Bootstrap;
|
18 |
if ( !is_admin() ) $app = new NestedPages\FrontEndBootstrap;
|
12 |
$np_env = 'live';
|
13 |
|
14 |
global $np_version;
|
15 |
+
$np_version = '3.1.22';
|
16 |
|
17 |
if ( is_admin() ) $app = new NestedPages\Bootstrap;
|
18 |
if ( !is_admin() ) $app = new NestedPages\FrontEndBootstrap;
|
nestedpages.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Nested Pages
|
4 |
Plugin URI: http://nestedpages.com
|
5 |
Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while enhancing quick edit. Includes an auto-generated menu to match the nested interface, support for all post types and more.
|
6 |
-
Version: 3.1.
|
7 |
Author: Kyle Phillips
|
8 |
Author URI: https://github.com/kylephillips
|
9 |
Text Domain: wp-nested-pages
|
@@ -12,7 +12,7 @@ License: GPLv2 or later.
|
|
12 |
Copyright: Kyle Phillips
|
13 |
*/
|
14 |
|
15 |
-
/* Copyright
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License, version 2, as
|
3 |
Plugin Name: Nested Pages
|
4 |
Plugin URI: http://nestedpages.com
|
5 |
Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while enhancing quick edit. Includes an auto-generated menu to match the nested interface, support for all post types and more.
|
6 |
+
Version: 3.1.22
|
7 |
Author: Kyle Phillips
|
8 |
Author URI: https://github.com/kylephillips
|
9 |
Text Domain: wp-nested-pages
|
12 |
Copyright: Kyle Phillips
|
13 |
*/
|
14 |
|
15 |
+
/* Copyright 2022 Kyle Phillips (email : support@nestedpages.com)
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License, version 2, as
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: pages, admin, nested, tree view, page tree, sort, quick edit, structure
|
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 3.1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -105,6 +105,9 @@ No. The menu synchronization currently only works within the pages post type.
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 3.1.21 =
|
109 |
* Fixes issue where Nested Pages menu persists in some instances when "Disable menu completely" is checked/enabled.
|
110 |
* Tested with WordPress V6
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 3.1.21
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 3.1.22 =
|
109 |
+
* Fixes deprecation notice from new Yoast release
|
110 |
+
|
111 |
= 3.1.21 =
|
112 |
* Fixes issue where Nested Pages menu persists in some instances when "Disable menu completely" is checked/enabled.
|
113 |
* Tested with WordPress V6
|