CMS Tree Page View - Version 1.2.26

Version Description

  • Roll back the feature with permissions to move pages. Too many people had problems with it.
Download this release

Release Info

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

Code changes from version 1.2.25 to 1.2.26

cms-tree-page-view.sublime-workspace CHANGED
@@ -279,14 +279,6 @@
279
  },
280
  "buffers":
281
  [
282
- {
283
- "file": "index.php",
284
- "settings":
285
- {
286
- "buffer_size": 3156,
287
- "line_ending": "Unix"
288
- }
289
- },
290
  {
291
  "file": "functions.php",
292
  "settings":
@@ -299,7 +291,7 @@
299
  "file": "readme.txt",
300
  "settings":
301
  {
302
- "buffer_size": 25138,
303
  "line_ending": "Unix"
304
  }
305
  },
@@ -524,6 +516,9 @@
524
  },
525
  "file_history":
526
  [
 
 
 
527
  "/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/readme.txt",
528
  "/Users/bonny/Dropbox/Plugins/SVN/cms-tree-page-view/tags/1.2.14/readme.txt",
529
  "/Users/bonny/Dropbox/Plugins/SVN/cms-tree-page-view/trunk/cms-tree-page-view.sublime-project",
@@ -648,10 +643,7 @@
648
  "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/404.php",
649
  "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/.bowerrc",
650
  "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/bower.json",
651
- "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/jquery/bower.json",
652
- "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/jquery-extra-selectors.js",
653
- "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/theme-compat/footer.php",
654
- "/Users/bonny/Dropbox/Webb/bonnys-wordpress-stuff/ep-theme/404.php"
655
  ],
656
  "find":
657
  {
@@ -836,131 +828,11 @@
836
  "groups":
837
  [
838
  {
839
- "selected": 2,
840
  "sheets":
841
  [
842
  {
843
  "buffer": 0,
844
- "file": "index.php",
845
- "semi_transient": false,
846
- "settings":
847
- {
848
- "buffer_size": 3156,
849
- "regions":
850
- {
851
- },
852
- "selection":
853
- [
854
- [
855
- 3031,
856
- 3023
857
- ]
858
- ],
859
- "settings":
860
- {
861
- "annotations":
862
- [
863
- "TODO",
864
- "README",
865
- "FIXME"
866
- ],
867
- "csslint_options":
868
- {
869
- "adjoining-classes": "warning",
870
- "box-model": true,
871
- "box-sizing": "warning",
872
- "compatible-vendor-prefixes": "warning",
873
- "display-property-grouping": true,
874
- "duplicate-background-images": "warning",
875
- "duplicate-properties": true,
876
- "empty-rules": true,
877
- "errors": true,
878
- "fallback-colors": "warning",
879
- "floats": "warning",
880
- "font-faces": "warning",
881
- "font-sizes": "warning",
882
- "gradients": "warning",
883
- "ids": "warning",
884
- "import": "warning",
885
- "important": "warning",
886
- "known-properties": true,
887
- "outline-none": "warning",
888
- "overqualified-elements": "warning",
889
- "qualified-headings": "warning",
890
- "regex-selectors": "warning",
891
- "rules-count": "warning",
892
- "shorthand": "warning",
893
- "star-property-hack": "warning",
894
- "text-indent": "warning",
895
- "underscore-property-hack": "warning",
896
- "unique-headings": "warning",
897
- "universal-selector": "warning",
898
- "vendor-prefix": true,
899
- "zero-units": "warning"
900
- },
901
- "function_name_status_row": 77,
902
- "gjslint_ignore":
903
- [
904
- 110
905
- ],
906
- "gjslint_options":
907
- [
908
- ],
909
- "javascript_linter": "jshint",
910
- "jshint_options":
911
- {
912
- "browser": true,
913
- "evil": true,
914
- "regexdash": true,
915
- "sub": true,
916
- "trailing": true,
917
- "wsh": true
918
- },
919
- "pep8": true,
920
- "pep8_ignore":
921
- [
922
- "E501"
923
- ],
924
- "perl_linter": "perlcritic",
925
- "pyflakes_ignore":
926
- [
927
- ],
928
- "pyflakes_ignore_import_*": true,
929
- "sublimelinter": true,
930
- "sublimelinter_delay": 2,
931
- "sublimelinter_disable":
932
- [
933
- ],
934
- "sublimelinter_executable_map":
935
- {
936
- },
937
- "sublimelinter_fill_outlines": false,
938
- "sublimelinter_gutter_marks": true,
939
- "sublimelinter_gutter_marks_theme": "simple",
940
- "sublimelinter_mark_style": "none",
941
- "sublimelinter_notes": false,
942
- "sublimelinter_objj_check_ascii": false,
943
- "sublimelinter_popup_errors_on_save": false,
944
- "sublimelinter_syntax_map":
945
- {
946
- "C++": "c",
947
- "Python Django": "python",
948
- "Ruby on Rails": "ruby"
949
- },
950
- "sublimelinter_wrap_find": true,
951
- "syntax": "Packages/PHP/PHP.tmLanguage",
952
- "tab_size": 4,
953
- "translate_tabs_to_spaces": true
954
- },
955
- "translation.x": 0.0,
956
- "translation.y": 642.0,
957
- "zoom_level": 1.0
958
- },
959
- "stack_index": 1,
960
- "type": "text"
961
- },
962
- {
963
- "buffer": 1,
964
  "file": "functions.php",
965
  "semi_transient": false,
966
  "settings":
@@ -972,8 +844,8 @@
972
  "selection":
973
  [
974
  [
975
- 0,
976
- 0
977
  ]
978
  ],
979
  "settings":
@@ -1018,7 +890,7 @@
1018
  "vendor-prefix": true,
1019
  "zero-units": "warning"
1020
  },
1021
- "function_name_status_row": 0,
1022
  "gjslint_ignore":
1023
  [
1024
  110
@@ -1075,24 +947,24 @@
1075
  "translation.y": 390.0,
1076
  "zoom_level": 1.0
1077
  },
1078
- "stack_index": 2,
1079
  "type": "text"
1080
  },
1081
  {
1082
- "buffer": 2,
1083
  "file": "readme.txt",
1084
  "semi_transient": false,
1085
  "settings":
1086
  {
1087
- "buffer_size": 25138,
1088
  "regions":
1089
  {
1090
  },
1091
  "selection":
1092
  [
1093
  [
1094
- 289,
1095
- 283
1096
  ]
1097
  ],
1098
  "settings":
@@ -1104,11 +976,11 @@
1104
  "translation.y": 0.0,
1105
  "zoom_level": 1.0
1106
  },
1107
- "stack_index": 0,
1108
  "type": "text"
1109
  },
1110
  {
1111
- "buffer": 3,
1112
  "file": "scripts/cms_tree_page_view.js",
1113
  "semi_transient": false,
1114
  "settings":
@@ -1134,11 +1006,11 @@
1134
  "translation.y": 3051.0,
1135
  "zoom_level": 1.0
1136
  },
1137
- "stack_index": 3,
1138
  "type": "text"
1139
  },
1140
  {
1141
- "buffer": 4,
1142
  "file": "styles/styles.css",
1143
  "semi_transient": false,
1144
  "settings":
@@ -1710,7 +1582,7 @@
1710
  "translation.y": 7605.0,
1711
  "zoom_level": 1.0
1712
  },
1713
- "stack_index": 4,
1714
  "type": "text"
1715
  }
1716
  ]
279
  },
280
  "buffers":
281
  [
 
 
 
 
 
 
 
 
282
  {
283
  "file": "functions.php",
284
  "settings":
291
  "file": "readme.txt",
292
  "settings":
293
  {
294
+ "buffer_size": 25224,
295
  "line_ending": "Unix"
296
  }
297
  },
516
  },
517
  "file_history":
518
  [
519
+ "/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/subl",
520
+ "/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/index.php",
521
+ "/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/.gitignore",
522
  "/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/readme.txt",
523
  "/Users/bonny/Dropbox/Plugins/SVN/cms-tree-page-view/tags/1.2.14/readme.txt",
524
  "/Users/bonny/Dropbox/Plugins/SVN/cms-tree-page-view/trunk/cms-tree-page-view.sublime-project",
643
  "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/404.php",
644
  "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/.bowerrc",
645
  "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/bower.json",
646
+ "/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/jquery/bower.json"
 
 
 
647
  ],
648
  "find":
649
  {
828
  "groups":
829
  [
830
  {
831
+ "selected": 0,
832
  "sheets":
833
  [
834
  {
835
  "buffer": 0,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
836
  "file": "functions.php",
837
  "semi_transient": false,
838
  "settings":
844
  "selection":
845
  [
846
  [
847
+ 616,
848
+ 616
849
  ]
850
  ],
851
  "settings":
890
  "vendor-prefix": true,
891
  "zero-units": "warning"
892
  },
893
+ "function_name_status_row": 32,
894
  "gjslint_ignore":
895
  [
896
  110
947
  "translation.y": 390.0,
948
  "zoom_level": 1.0
949
  },
950
+ "stack_index": 0,
951
  "type": "text"
952
  },
953
  {
954
+ "buffer": 1,
955
  "file": "readme.txt",
956
  "semi_transient": false,
957
  "settings":
958
  {
959
+ "buffer_size": 25224,
960
  "regions":
961
  {
962
  },
963
  "selection":
964
  [
965
  [
966
+ 0,
967
+ 0
968
  ]
969
  ],
970
  "settings":
976
  "translation.y": 0.0,
977
  "zoom_level": 1.0
978
  },
979
+ "stack_index": 1,
980
  "type": "text"
981
  },
982
  {
983
+ "buffer": 2,
984
  "file": "scripts/cms_tree_page_view.js",
985
  "semi_transient": false,
986
  "settings":
1006
  "translation.y": 3051.0,
1007
  "zoom_level": 1.0
1008
  },
1009
+ "stack_index": 2,
1010
  "type": "text"
1011
  },
1012
  {
1013
+ "buffer": 3,
1014
  "file": "styles/styles.css",
1015
  "semi_transient": false,
1016
  "settings":
1582
  "translation.y": 7605.0,
1583
  "zoom_level": 1.0
1584
  },
1585
+ "stack_index": 3,
1586
  "type": "text"
1587
  }
1588
  ]
functions.php CHANGED
@@ -264,7 +264,8 @@ function cms_tpv_admin_head() {
264
  var CMS_TPV_URL = "<?php echo CMS_TPV_URL ?>";
265
  var CMS_TPV_AJAXURL = "?action=cms_tpv_get_childs&view=";
266
  var CMS_TPV_VIEW = "<?php echo $cms_tpv_view ?>";
267
- var CMS_TPV_CAN_DND = "<?php echo current_user_can( CMS_TPV_MOVE_PERMISSION ) ? "dnd" : "" ?>";
 
268
  var cms_tpv_jsondata = {};
269
  /* ]]> */
270
  </script>
@@ -1610,9 +1611,8 @@ function cms_tpv_move_page() {
1610
 
1611
  global $wpdb;
1612
 
1613
- if ( !current_user_can( CMS_TPV_MOVE_PERMISSION ) )
1614
- die("Error: you dont have permission");
1615
-
1616
 
1617
  $node_id = $_POST["node_id"]; // the node that was moved
1618
  $ref_node_id = $_POST["ref_node_id"];
264
  var CMS_TPV_URL = "<?php echo CMS_TPV_URL ?>";
265
  var CMS_TPV_AJAXURL = "?action=cms_tpv_get_childs&view=";
266
  var CMS_TPV_VIEW = "<?php echo $cms_tpv_view ?>";
267
+ //var CMS_TPV_CAN_DND = "<?php echo current_user_can( CMS_TPV_MOVE_PERMISSION ) ? "dnd" : "" ?>";
268
+ var CMS_TPV_CAN_DND = "dnd";
269
  var cms_tpv_jsondata = {};
270
  /* ]]> */
271
  </script>
1611
 
1612
  global $wpdb;
1613
 
1614
+ //if ( !current_user_can( CMS_TPV_MOVE_PERMISSION ) )
1615
+ // die("Error: you dont have permission");
 
1616
 
1617
  $node_id = $_POST["node_id"]; // the node that was moved
1618
  $ref_node_id = $_POST["ref_node_id"];
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.25
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.25");
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.26
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.26");
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.8
6
  Tested up to: 3.9
7
- Stable tag: 1.2.25
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
 
@@ -113,6 +113,9 @@ Now the tree with the pages will be visible both on the dashboard and in the men
113
 
114
  == Changelog ==
115
 
 
 
 
116
  = 1.2.25 =
117
  - Just a version bump because wordpress.org did not show version 1.2.24.
118
 
4
  Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
5
  Requires at least: 3.8
6
  Tested up to: 3.9
7
+ Stable tag: 1.2.26
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
 
113
 
114
  == Changelog ==
115
 
116
+ = 1.2.26 =
117
+ - Roll back the feature with permissions to move pages. Too many people had problems with it.
118
+
119
  = 1.2.25 =
120
  - Just a version bump because wordpress.org did not show version 1.2.24.
121
 
scripts/cms_tree_page_view.js CHANGED
@@ -199,7 +199,8 @@ jQuery(function($) {
199
  });
200
 
201
  treeOptions = {
202
- plugins: ["themes","json_data","cookies","search",CMS_TPV_CAN_DND, "types"],
 
203
  core: {
204
  "html_titles": true
205
  },
199
  });
200
 
201
  treeOptions = {
202
+ //plugins: ["themes","json_data","cookies","search",CMS_TPV_CAN_DND, "types"],
203
+ plugins: ["themes","json_data","cookies","search","dnd", "types"],
204
  core: {
205
  "html_titles": true
206
  },