Version Description
- New fix for wp-Typography. Thanks to eceleste for digging into the problem and fixing it.
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 1.2.10 |
Comparing to | |
See all releases |
Code changes from version 1.2.9 to 1.2.10
- functions.php +2 -15
- index.php +2 -2
- readme.txt +4 -1
functions.php
CHANGED
@@ -1248,23 +1248,10 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1248 |
$post_author = __("Unknown user", 'cms-tree-page-view');
|
1249 |
}
|
1250 |
|
1251 |
-
// does not work with wpTypography and the filter it applies to the_title
|
1252 |
-
// didn't find a variable with it's class, so unsetting the filter "manually"
|
1253 |
-
if ( class_exists("wpTypography") ) {
|
1254 |
-
if ( isset( $GLOBALS['wp_filter']['the_title'][9999] ) ) {
|
1255 |
-
foreach ( $GLOBALS['wp_filter']['the_title'][9999] as $key => $val ) {
|
1256 |
-
if ( "object" === gettype( $val["function"][0] ) && "wpTypography" === get_class( $val["function"][0] ) ) {
|
1257 |
-
unset($GLOBALS['wp_filter']['the_title'][9999][$key]);
|
1258 |
-
}
|
1259 |
-
}
|
1260 |
-
}
|
1261 |
-
}
|
1262 |
-
|
1263 |
$title = get_the_title($onePage->ID); // so hooks and stuff will do their work
|
1264 |
if (empty($title)) {
|
1265 |
$title = __("<Untitled page>", 'cms-tree-page-view');
|
1266 |
}
|
1267 |
-
$title = esc_html($title);
|
1268 |
|
1269 |
$arr_page_css_styles = array();
|
1270 |
$user_can_edit_page = apply_filters("cms_tree_page_view_post_can_edit", current_user_can( $post_type_object->cap->edit_post, $page_id), $page_id);
|
@@ -1334,7 +1321,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1334 |
?>
|
1335 |
{
|
1336 |
"data": {
|
1337 |
-
"title":
|
1338 |
"attr": {
|
1339 |
"href": "<?php echo $editLink ?>"
|
1340 |
<?php /* , "xid": "cms-tpv-<?php echo $onePage->ID ?>" */ ?>
|
@@ -1364,7 +1351,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1364 |
"user_can_edit_page": "<?php echo (int) $user_can_edit_page ?>",
|
1365 |
"user_can_add_page_inside": "<?php echo (int) $user_can_add_inside ?>",
|
1366 |
"user_can_add_page_after": "<?php echo (int) $user_can_add_after ?>",
|
1367 |
-
"post_title":
|
1368 |
}
|
1369 |
<?php
|
1370 |
// if id is in $arrOpenChilds then also output children on this one
|
1248 |
$post_author = __("Unknown user", 'cms-tree-page-view');
|
1249 |
}
|
1250 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1251 |
$title = get_the_title($onePage->ID); // so hooks and stuff will do their work
|
1252 |
if (empty($title)) {
|
1253 |
$title = __("<Untitled page>", 'cms-tree-page-view');
|
1254 |
}
|
|
|
1255 |
|
1256 |
$arr_page_css_styles = array();
|
1257 |
$user_can_edit_page = apply_filters("cms_tree_page_view_post_can_edit", current_user_can( $post_type_object->cap->edit_post, $page_id), $page_id);
|
1321 |
?>
|
1322 |
{
|
1323 |
"data": {
|
1324 |
+
"title": <?php echo json_encode($title) ?>,
|
1325 |
"attr": {
|
1326 |
"href": "<?php echo $editLink ?>"
|
1327 |
<?php /* , "xid": "cms-tpv-<?php echo $onePage->ID ?>" */ ?>
|
1351 |
"user_can_edit_page": "<?php echo (int) $user_can_edit_page ?>",
|
1352 |
"user_can_add_page_inside": "<?php echo (int) $user_can_add_inside ?>",
|
1353 |
"user_can_add_page_after": "<?php echo (int) $user_can_add_after ?>",
|
1354 |
+
"post_title": <?php echo json_encode($title) ?>
|
1355 |
}
|
1356 |
<?php
|
1357 |
// if id is in $arrOpenChilds then also output children on this one
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CMS Tree Page View
|
4 |
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 |
-
Version: 1.2.
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
@@ -27,7 +27,7 @@ License: GPL2
|
|
27 |
|
28 |
#require("functions.php");
|
29 |
|
30 |
-
define( "CMS_TPV_VERSION", "1.2.
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
require(dirname(__FILE__)."/functions.php");
|
3 |
Plugin Name: CMS Tree Page View
|
4 |
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 |
+
Version: 1.2.10
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
27 |
|
28 |
#require("functions.php");
|
29 |
|
30 |
+
define( "CMS_TPV_VERSION", "1.2.10");
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
require(dirname(__FILE__)."/functions.php");
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://eskapism.se/sida/donate/
|
|
4 |
Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.5.1
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
|
10 |
|
@@ -111,6 +111,9 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
114 |
= 1.2.9 =
|
115 |
- Fixed an incompatibility with wp-Typography (http://wordpress.org/extend/plugins/wp-typography/). Fixes http://wordpress.org/support/topic/html-in-titles.
|
116 |
|
4 |
Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.2.10
|
8 |
|
9 |
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
|
10 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 1.2.10 =
|
115 |
+
- New fix for wp-Typography. Thanks to eceleste for digging into the problem and fixing it.
|
116 |
+
|
117 |
= 1.2.9 =
|
118 |
- Fixed an incompatibility with wp-Typography (http://wordpress.org/extend/plugins/wp-typography/). Fixes http://wordpress.org/support/topic/html-in-titles.
|
119 |
|