Version Description
(January 2018) =
- Remove deprecated PHP function
create_function()
. - Remove deprecated WordPress function
get_screen_icon()
.
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.6
- functions.php +4 -3
- index.php +2 -2
- readme.txt +6 -1
functions.php
CHANGED
@@ -650,8 +650,10 @@ function cms_tpv_wp_dashboard_setup() {
|
|
650 |
if (current_user_can("edit_pages")) {
|
651 |
$options = cms_tpv_get_options();
|
652 |
foreach ($options["dashboard"] as $one_dashboard_post_type) {
|
653 |
-
|
654 |
-
|
|
|
|
|
655 |
if ( ! empty( $post_type_object ) ) {
|
656 |
$widget_name = sprintf( _x('%1$s Tree', "name of dashboard", "cms-tree-page-view"), $post_type_object->labels->name);
|
657 |
wp_add_dashboard_widget( "cms_tpv_dashboard_widget_{$one_dashboard_post_type}", $widget_name, $new_func_name );
|
@@ -1226,7 +1228,6 @@ function cms_tpv_pages_page() {
|
|
1226 |
|
1227 |
?>
|
1228 |
<div class="wrap">
|
1229 |
-
<?php echo get_screen_icon(); ?>
|
1230 |
<h2><?php
|
1231 |
|
1232 |
$page_title = sprintf(_x('%1$s Tree View', "headline of page with tree", "cms-tree-page-view"), $post_type_object->labels->name);
|
650 |
if (current_user_can("edit_pages")) {
|
651 |
$options = cms_tpv_get_options();
|
652 |
foreach ($options["dashboard"] as $one_dashboard_post_type) {
|
653 |
+
$post_type_object = get_post_type_object($one_dashboard_post_type);
|
654 |
+
$new_func_name = function () use ($one_dashboard_post_type){
|
655 |
+
cms_tpv_dashboard($one_dashboard_post_type);
|
656 |
+
};
|
657 |
if ( ! empty( $post_type_object ) ) {
|
658 |
$widget_name = sprintf( _x('%1$s Tree', "name of dashboard", "cms-tree-page-view"), $post_type_object->labels->name);
|
659 |
wp_add_dashboard_widget( "cms_tpv_dashboard_widget_{$one_dashboard_post_type}", $widget_name, $new_func_name );
|
1228 |
|
1229 |
?>
|
1230 |
<div class="wrap">
|
|
|
1231 |
<h2><?php
|
1232 |
|
1233 |
$page_title = sprintf(_x('%1$s Tree View', "headline of page with tree", "cms-tree-page-view"), $post_type_object->labels->name);
|
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.
|
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.
|
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.6
|
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.6");
|
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.8
|
8 |
-
Stable tag: 1.
|
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.5 (January 2018) =
|
121 |
|
122 |
- Remove unused function `cms_tpv_add_page()`.
|
5 |
Text Domain: cms-tree-page-view
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 4.8
|
8 |
+
Stable tag: 1.6
|
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.6 (January 2018) =
|
121 |
+
|
122 |
+
- Remove deprecated PHP function `create_function()`.
|
123 |
+
- Remove deprecated WordPress function `get_screen_icon()`.
|
124 |
+
|
125 |
= 1.5 (January 2018) =
|
126 |
|
127 |
- Remove unused function `cms_tpv_add_page()`.
|