Version Description
- Bug fix error preventing new install resolved
Download this release
Release Info
Developer | kylephillips |
Plugin | Nested Pages |
Version | 1.3.6 |
Comparing to | |
See all releases |
Code changes from version 1.3.5 to 1.3.6
- app/Activation/Updates/Updates.php +10 -1
- app/Entities/NavMenu/NavMenuRepository.php +1 -1
- app/NestedPages.php +1 -1
- nestedpages.php +1 -1
- readme.txt +4 -1
app/Activation/Updates/Updates.php
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
<?php namespace NestedPages\Activation\Updates;
|
|
|
|
|
|
|
2 |
/**
|
3 |
* Required Version Upgrades
|
4 |
*/
|
@@ -14,6 +17,11 @@ class Updates {
|
|
14 |
*/
|
15 |
private $current_version;
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
/**
|
18 |
* Run the Updates
|
19 |
* @var string
|
@@ -21,6 +29,7 @@ class Updates {
|
|
21 |
public function run($new_version)
|
22 |
{
|
23 |
$this->new_version = $new_version;
|
|
|
24 |
$this->setCurrentVersion();
|
25 |
$this->addMenu();
|
26 |
$this->convertMenuToID();
|
@@ -83,7 +92,7 @@ class Updates {
|
|
83 |
{
|
84 |
global $wpdb;
|
85 |
$options_table = $wpdb->prefix . 'options';
|
86 |
-
$sql = "SELECT * FROM
|
87 |
$results = $wpdb->get_results($sql);
|
88 |
if ( $results ) return;
|
89 |
update_option('nestedpages_posttypes', array(
|
1 |
<?php namespace NestedPages\Activation\Updates;
|
2 |
+
|
3 |
+
use NestedPages\Entities\NavMenu\NavMenuRepository;
|
4 |
+
|
5 |
/**
|
6 |
* Required Version Upgrades
|
7 |
*/
|
17 |
*/
|
18 |
private $current_version;
|
19 |
|
20 |
+
/**
|
21 |
+
* Nav Menu Repository
|
22 |
+
*/
|
23 |
+
private $nav_menu_repo;
|
24 |
+
|
25 |
/**
|
26 |
* Run the Updates
|
27 |
* @var string
|
29 |
public function run($new_version)
|
30 |
{
|
31 |
$this->new_version = $new_version;
|
32 |
+
$this->nav_menu_repo = new NavMenuRepository;
|
33 |
$this->setCurrentVersion();
|
34 |
$this->addMenu();
|
35 |
$this->convertMenuToID();
|
92 |
{
|
93 |
global $wpdb;
|
94 |
$options_table = $wpdb->prefix . 'options';
|
95 |
+
$sql = "SELECT * FROM $options_table WHERE option_name = 'nestedpages_posttypes'";
|
96 |
$results = $wpdb->get_results($sql);
|
97 |
if ( $results ) return;
|
98 |
update_option('nestedpages_posttypes', array(
|
app/Entities/NavMenu/NavMenuRepository.php
CHANGED
@@ -150,7 +150,7 @@ class NavMenuRepository {
|
|
150 |
global $wpdb;
|
151 |
$post_table = $wpdb->prefix . 'posts';
|
152 |
$meta_table = $wpdb->prefix . 'postmeta';
|
153 |
-
$sql = "SELECT p.ID AS nav_status FROM
|
154 |
$results = $wpdb->get_results($sql, ARRAY_N);
|
155 |
if ( !$results ) return;
|
156 |
foreach($results as $key => $result){
|
150 |
global $wpdb;
|
151 |
$post_table = $wpdb->prefix . 'posts';
|
152 |
$meta_table = $wpdb->prefix . 'postmeta';
|
153 |
+
$sql = "SELECT p.ID AS nav_status FROM $post_table AS p LEFT JOIN $meta_table AS m ON p.ID = m.post_id AND m.meta_key = 'np_nav_status' WHERE p.post_type = 'page' AND (m.meta_value = 'show' OR m.meta_value IS NULL)";
|
154 |
$results = $wpdb->get_results($sql, ARRAY_N);
|
155 |
if ( !$results ) return;
|
156 |
foreach($results as $key => $result){
|
app/NestedPages.php
CHANGED
@@ -12,7 +12,7 @@ class NestedPages {
|
|
12 |
$np_env = 'live';
|
13 |
|
14 |
global $np_version;
|
15 |
-
$np_version = '1.3.
|
16 |
|
17 |
if ( is_admin() ) $app = new NestedPages\Bootstrap;
|
18 |
}
|
12 |
$np_env = 'live';
|
13 |
|
14 |
global $np_version;
|
15 |
+
$np_version = '1.3.6';
|
16 |
|
17 |
if ( is_admin() ) $app = new NestedPages\Bootstrap;
|
18 |
}
|
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 maintaining quick edit functionality.
|
6 |
-
Version: 1.3.
|
7 |
Author: Kyle Phillips
|
8 |
Author URI: https://github.com/kylephillips
|
9 |
Text Domain: nestedpages
|
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 maintaining quick edit functionality.
|
6 |
+
Version: 1.3.6
|
7 |
Author: Kyle Phillips
|
8 |
Author URI: https://github.com/kylephillips
|
9 |
Text Domain: nestedpages
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://nestedpages.com/
|
|
4 |
Tags: pages, admin, nested, tree view, page tree, sort, quick edit, structure
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
-
Stable tag: 1.3.
|
8 |
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -85,6 +85,9 @@ If you have WordPress SEO by Yoast installed, your page score indicators are sho
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
88 |
= 1.3.5 =
|
89 |
* Minor bug fixes
|
90 |
* Editorial Access Manager Plugin Integration
|
4 |
Tags: pages, admin, nested, tree view, page tree, sort, quick edit, structure
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.3.5
|
8 |
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 1.3.6 =
|
89 |
+
* Bug fix – error preventing new install resolved
|
90 |
+
|
91 |
= 1.3.5 =
|
92 |
* Minor bug fixes
|
93 |
* Editorial Access Manager Plugin Integration
|