CMS Tree Page View - Version 0.8.11

Version Description

  • Changed the way to find the plugin url. Hopefully works better now. Thanks https://twitter.com/windyjonas for the patch.
Download this release

Release Info

Developer eskapism
Plugin Icon wp plugin CMS Tree Page View
Version 0.8.11
Comparing to
See all releases

Code changes from version 0.8.10 to 0.8.11

Files changed (2) hide show
  1. index.php +14 -16
  2. readme.txt +4 -1
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: 0.8.10
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
@@ -28,23 +28,21 @@ License: GPL2
28
  #require("functions.php");
29
  require(dirname(__FILE__)."/functions.php");
30
 
31
- define( "CMS_TPV_VERSION", "0.8.10");
32
  define( "CMS_TPV_NAME", "CMS Tree Page View");
33
 
34
- // This gives the full URL including http. Apparently is does not work with https (gives http-link instead)
35
- // On my system it will be: http://localhost/wp/wp-content/plugins/cms-tree-page-view/
36
- // define( "CMS_TPV_URL", WP_PLUGIN_URL . '/cms-tree-page-view/');
37
-
38
- // Define path to this plugin. This needs to be done in a kinda wierd way because of the fact that I use symblinks on my system.
39
- $plugin_dir_url = plugin_dir_url( __FILE__ ); // Gives wrong path on my system
40
- $arr_authors_wierd_local_paths = array(
41
- "/Users/bonny/Dropbox/Webb/"
42
- );
43
- $plugin_dir_url = str_replace($arr_authors_wierd_local_paths, "/", $plugin_dir_url);
44
-
45
- // Now we have http://localhost/wp/wp-content/pluginscms-tree-page-view/trunk/
46
- // So replace last /trunk/ part
47
- $plugin_dir_url = preg_replace("/\/trunk\/$/", "/", $plugin_dir_url);
48
 
49
  // There! Now we should have it.
50
  define( "CMS_TPV_URL", $plugin_dir_url);
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: 0.8.11
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
28
  #require("functions.php");
29
  require(dirname(__FILE__)."/functions.php");
30
 
31
+ define( "CMS_TPV_VERSION", "0.8.11");
32
  define( "CMS_TPV_NAME", "CMS Tree Page View");
33
 
34
+ // Find the plugin directory URL
35
+ $aa = __FILE__;
36
+ if ( isset( $mu_plugin ) ) {
37
+ $aa = $mu_plugin;
38
+ }
39
+ if ( isset( $network_plugin ) ) {
40
+ $aa = $network_plugin;
41
+ }
42
+ if ( isset( $plugin ) ) {
43
+ $aa = $plugin;
44
+ }
45
+ $plugin_dir_url = plugin_dir_url(basename($aa)) . 'cms-tree-page-view/';
 
 
46
 
47
  // There! Now we should have it.
48
  define( "CMS_TPV_URL", $plugin_dir_url);
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.0
6
  Tested up to: 3.3.1
7
- Stable tag: 0.8.10
8
 
9
  Adds a tree of all your pages or custom posts. Use drag & drop to reorder your pages, and edit, view, add, and search your pages.
10
 
@@ -86,6 +86,9 @@ Now the tree with the pages will be visible both on the dashboard and in the men
86
 
87
  == Changelog ==
88
 
 
 
 
89
  = 0.8.10 =
90
  - Updated Polish translation, including .mo-file
91
 
4
  Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
+ Stable tag: 0.8.11
8
 
9
  Adds a tree of all your pages or custom posts. Use drag & drop to reorder your pages, and edit, view, add, and search your pages.
10
 
86
 
87
  == Changelog ==
88
 
89
+ = 0.8.11 =
90
+ - Changed the way to find the plugin url. Hopefully works better now. Thanks https://twitter.com/windyjonas for the patch.
91
+
92
  = 0.8.10 =
93
  - Updated Polish translation, including .mo-file
94