Version Description
(March 2016) =
- Make the page tree use less memory. Should work ok with very large amount of pages now. Fixes https://wordpress.org/support/topic/fatal-error-allowed-memory-size-exhausted-27.
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- functions.php +4 -1
- index.php +2 -2
- readme.txt +6 -1
functions.php
CHANGED
@@ -1260,6 +1260,7 @@ function cms_tpv_get_pages($args = null) {
|
|
1260 |
$r = wp_parse_args( $args, $defaults );
|
1261 |
|
1262 |
$get_posts_args = array(
|
|
|
1263 |
"numberposts" => "-1",
|
1264 |
"orderby" => "menu_order title",
|
1265 |
"order" => "ASC",
|
@@ -1347,7 +1348,9 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1347 |
?>[<?php
|
1348 |
for ($i=0, $pagesCount = sizeof($arrPages); $i<$pagesCount; $i++) {
|
1349 |
|
1350 |
-
$
|
|
|
|
|
1351 |
$tmpPost = $post;
|
1352 |
$post = $onePage;
|
1353 |
$page_id = $onePage->ID;
|
1260 |
$r = wp_parse_args( $args, $defaults );
|
1261 |
|
1262 |
$get_posts_args = array(
|
1263 |
+
"fields" => "ids",
|
1264 |
"numberposts" => "-1",
|
1265 |
"orderby" => "menu_order title",
|
1266 |
"order" => "ASC",
|
1348 |
?>[<?php
|
1349 |
for ($i=0, $pagesCount = sizeof($arrPages); $i<$pagesCount; $i++) {
|
1350 |
|
1351 |
+
$temp_page_id = $arrPages[$i];
|
1352 |
+
$onePage = get_post($temp_page_id);
|
1353 |
+
|
1354 |
$tmpPost = $post;
|
1355 |
$post = $onePage;
|
1356 |
$page_id = $onePage->ID;
|
index.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
|
|
5 |
Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
|
6 |
Text Domain: cms-tree-page-view
|
7 |
Domain Path: /languages/
|
8 |
-
Version: 1.3.
|
9 |
Author: Pär Thernström
|
10 |
Author URI: http://eskapism.se/
|
11 |
License: GPL2
|
@@ -29,7 +29,7 @@ License: GPL2
|
|
29 |
|
30 |
#require("functions.php");
|
31 |
|
32 |
-
define( "CMS_TPV_VERSION", "1.3.
|
33 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
34 |
|
35 |
require(dirname(__FILE__) . "/functions.php");
|
5 |
Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
|
6 |
Text Domain: cms-tree-page-view
|
7 |
Domain Path: /languages/
|
8 |
+
Version: 1.3.2
|
9 |
Author: Pär Thernström
|
10 |
Author URI: http://eskapism.se/
|
11 |
License: GPL2
|
29 |
|
30 |
#require("functions.php");
|
31 |
|
32 |
+
define( "CMS_TPV_VERSION", "1.3.2");
|
33 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
34 |
|
35 |
require(dirname(__FILE__) . "/functions.php");
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and
|
|
5 |
Text Domain: cms-tree-page-view
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 4.2
|
8 |
-
Stable tag: 1.3.
|
9 |
|
10 |
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
|
11 |
|
@@ -117,6 +117,11 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
117 |
|
118 |
== Changelog ==
|
119 |
|
|
|
|
|
|
|
|
|
|
|
120 |
= 1.3.1 =
|
121 |
|
122 |
- A problem with WP Super Cache should be fixed. Fixes https://wordpress.org/support/topic/1233-breaks-plugin-fix and probably some more support threads.
|
5 |
Text Domain: cms-tree-page-view
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 4.2
|
8 |
+
Stable tag: 1.3.2
|
9 |
|
10 |
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
|
11 |
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= 1.3.2 (March 2016) =
|
121 |
+
|
122 |
+
- Make the page tree use less memory. Should work ok with very large amount of pages now.
|
123 |
+
Fixes https://wordpress.org/support/topic/fatal-error-allowed-memory-size-exhausted-27.
|
124 |
+
|
125 |
= 1.3.1 =
|
126 |
|
127 |
- A problem with WP Super Cache should be fixed. Fixes https://wordpress.org/support/topic/1233-breaks-plugin-fix and probably some more support threads.
|