CMS Tree Page View - Version 1.2.5

Version Description

  • Fixed some notice warnings
  • Added Finnish translation
  • Fixed a security issue. Thanks to Julio POTIER (http://secu.boiteaweb.fr/) for finding and reporting.
  • Added nonce checks for options page and for adding new pages
Download this release

Release Info

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

Code changes from version 1.2.4 to 1.2.5

functions.php CHANGED
@@ -61,6 +61,11 @@ function cms_tpv_add_pages() {
61
  $ref_post_id = (int) $_POST["ref_post_id"];
62
  $lang = $_POST["lang"];
63
 
 
 
 
 
 
64
  // If lang variable is set, then set some more wpml-related post/get-variables
65
  if ($lang) {
66
  // post seems to fix creating new posts in selcted lang
@@ -449,7 +454,7 @@ function cmstpv_filter_views_edit_postsoverview($filter_var) {
449
 
450
  $mode = "list";
451
  $class = isset($_GET["mode"]) && $_GET["mode"] != $mode ? " class='cmstpv_add_list_view' " : " class='cmstpv_add_list_view current' ";
452
- $title = __("List View");
453
  $wp_list_a = "<a href='" . esc_url( add_query_arg( 'mode', $mode, $_SERVER['REQUEST_URI'] ) ) . "' $class><img id='view-switch-$mode' src='" . esc_url( includes_url( 'images/blank.gif' ) ) . "' width='20' height='20' title='$title' alt='$title' /></a>\n";
454
 
455
  }
@@ -498,11 +503,11 @@ function cms_tpv_set_plugin_row_meta($links, $file) {
498
  */
499
  function cms_tpv_save_settings() {
500
 
501
- if (isset($_POST["cms_tpv_action"]) && $_POST["cms_tpv_action"] == "save_settings") {
502
 
503
  $options = array();
504
  $options["dashboard"] = (array) $_POST["post-type-dashboard"];
505
- $options["menu"] = (array) $_POST["post-type-menu"];
506
  $options["postsoverview"] = (array) $_POST["post-type-postsoverview"];
507
 
508
  update_option('cms_tpv_options', $options); // enable this to show box
@@ -524,8 +529,10 @@ function cms_tpv_wp_dashboard_setup() {
524
  foreach ($options["dashboard"] as $one_dashboard_post_type) {
525
  $post_type_object = get_post_type_object($one_dashboard_post_type);
526
  $new_func_name = create_function('', "cms_tpv_dashboard('$one_dashboard_post_type');");
527
- $widget_name = sprintf( _x('%1$s Tree', "name of dashboard", "cms-tree-page-view"), $post_type_object->labels->name);
528
- wp_add_dashboard_widget( "cms_tpv_dashboard_widget_{$one_dashboard_post_type}", $widget_name, $new_func_name );
 
 
529
  }
530
  }
531
 
@@ -540,22 +547,31 @@ function cms_tpv_dashboard($post_type = "") {
540
  cms_tpv_print_common_tree_stuff($post_type);
541
  }
542
 
 
543
  function cms_tpv_admin_menu() {
544
 
545
  // add
546
  $options = cms_tpv_get_options();
 
547
  foreach ($options["menu"] as $one_menu_post_type) {
 
548
  // post is a special one.
549
  if ($one_menu_post_type == "post") {
550
  $slug = "edit.php";
551
  } else {
552
  $slug = "edit.php?post_type=$one_menu_post_type";
553
  }
554
- $post_type_object = get_post_type_object($one_menu_post_type);
555
 
556
- $menu_name = _x("Tree View", "name in menu", "cms-tree-page-view");
557
- $page_title = sprintf(_x('%1$s Tree View', "title on page with tree", "cms-tree-page-view"), $post_type_object->labels->name);
558
- add_submenu_page($slug, $page_title, $menu_name, $post_type_object->cap->edit_posts, "cms-tpv-page-$one_menu_post_type", "cms_tpv_pages_page");
 
 
 
 
 
 
 
559
  }
560
 
561
  add_submenu_page( 'options-general.php' , CMS_TPV_NAME, CMS_TPV_NAME, "administrator", "cms-tpv-options", "cms_tpv_options");
@@ -960,6 +976,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
960
 
961
  <input type="hidden" name="action" value="cms_tpv_add_pages">
962
  <input type="hidden" name="ref_post_id" value="">
 
963
 
964
  <!-- lang for wpml -->
965
  <input type="hidden" name="lang" value="">
@@ -971,7 +988,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
971
  <div>
972
  <!-- Pages<br> -->
973
  <ul class="cms_tpv_action_add_doit_pages">
974
- <li><span></span><input placeholder="<?php _e("Enter title here") ?>" type="text" name="cms_tpv_add_new_pages_names[]"></li>
975
  </ul>
976
  </div>
977
 
@@ -1353,6 +1370,14 @@ function cms_tpv_get_childs() {
1353
  $view = $_GET["view"]; // all | public | trash
1354
  $post_type = (isset($_GET["post_type"])) ? $_GET["post_type"] : null;
1355
  $search = (isset($_GET["search_string"])) ? trim($_GET["search_string"]) : ""; // exits if we're doing a search
 
 
 
 
 
 
 
 
1356
  if ($action) {
1357
 
1358
  if ($search) {
61
  $ref_post_id = (int) $_POST["ref_post_id"];
62
  $lang = $_POST["lang"];
63
 
64
+ // Check nonce
65
+ if ( ! check_admin_referer("cms-tpv-add-pages") ) {
66
+ wp_die( __( 'Cheatin&#8217; uh?' ) );
67
+ }
68
+
69
  // If lang variable is set, then set some more wpml-related post/get-variables
70
  if ($lang) {
71
  // post seems to fix creating new posts in selcted lang
454
 
455
  $mode = "list";
456
  $class = isset($_GET["mode"]) && $_GET["mode"] != $mode ? " class='cmstpv_add_list_view' " : " class='cmstpv_add_list_view current' ";
457
+ $title = __("List View"); /* translation not missing - exists in wp */
458
  $wp_list_a = "<a href='" . esc_url( add_query_arg( 'mode', $mode, $_SERVER['REQUEST_URI'] ) ) . "' $class><img id='view-switch-$mode' src='" . esc_url( includes_url( 'images/blank.gif' ) ) . "' width='20' height='20' title='$title' alt='$title' /></a>\n";
459
 
460
  }
503
  */
504
  function cms_tpv_save_settings() {
505
 
506
+ if (isset($_POST["cms_tpv_action"]) && $_POST["cms_tpv_action"] == "save_settings" && check_admin_referer('update-options')) {
507
 
508
  $options = array();
509
  $options["dashboard"] = (array) $_POST["post-type-dashboard"];
510
+ $options["menu"] = isset( $_POST["post-type-menu"] ) ? (array) $_POST["post-type-menu"] : array();
511
  $options["postsoverview"] = (array) $_POST["post-type-postsoverview"];
512
 
513
  update_option('cms_tpv_options', $options); // enable this to show box
529
  foreach ($options["dashboard"] as $one_dashboard_post_type) {
530
  $post_type_object = get_post_type_object($one_dashboard_post_type);
531
  $new_func_name = create_function('', "cms_tpv_dashboard('$one_dashboard_post_type');");
532
+ if ( ! empty( $post_type_object ) ) {
533
+ $widget_name = sprintf( _x('%1$s Tree', "name of dashboard", "cms-tree-page-view"), $post_type_object->labels->name);
534
+ wp_add_dashboard_widget( "cms_tpv_dashboard_widget_{$one_dashboard_post_type}", $widget_name, $new_func_name );
535
+ }
536
  }
537
  }
538
 
547
  cms_tpv_print_common_tree_stuff($post_type);
548
  }
549
 
550
+ // Add items to the wp admin menu
551
  function cms_tpv_admin_menu() {
552
 
553
  // add
554
  $options = cms_tpv_get_options();
555
+
556
  foreach ($options["menu"] as $one_menu_post_type) {
557
+
558
  // post is a special one.
559
  if ($one_menu_post_type == "post") {
560
  $slug = "edit.php";
561
  } else {
562
  $slug = "edit.php?post_type=$one_menu_post_type";
563
  }
 
564
 
565
+ $post_type_object = get_post_type_object($one_menu_post_type);
566
+
567
+ // Only try to add menu if we got a valid post type object
568
+ // I think you can get a notice message here if you for example have enabled
569
+ // the menu for a custom post type that you later on remove?
570
+ if ( ! empty( $post_type_object ) ) {
571
+ $menu_name = _x("Tree View", "name in menu", "cms-tree-page-view");
572
+ $page_title = sprintf(_x('%1$s Tree View', "title on page with tree", "cms-tree-page-view"), $post_type_object->labels->name);
573
+ add_submenu_page($slug, $page_title, $menu_name, $post_type_object->cap->edit_posts, "cms-tpv-page-$one_menu_post_type", "cms_tpv_pages_page");
574
+ }
575
  }
576
 
577
  add_submenu_page( 'options-general.php' , CMS_TPV_NAME, CMS_TPV_NAME, "administrator", "cms-tpv-options", "cms_tpv_options");
976
 
977
  <input type="hidden" name="action" value="cms_tpv_add_pages">
978
  <input type="hidden" name="ref_post_id" value="">
979
+ <?php wp_nonce_field("cms-tpv-add-pages") ?>
980
 
981
  <!-- lang for wpml -->
982
  <input type="hidden" name="lang" value="">
988
  <div>
989
  <!-- Pages<br> -->
990
  <ul class="cms_tpv_action_add_doit_pages">
991
+ <li><span></span><input placeholder="<?php _e("Enter title here") /* translation not missing - exists in wp */ ?>" type="text" name="cms_tpv_add_new_pages_names[]"></li>
992
  </ul>
993
  </div>
994
 
1370
  $view = $_GET["view"]; // all | public | trash
1371
  $post_type = (isset($_GET["post_type"])) ? $_GET["post_type"] : null;
1372
  $search = (isset($_GET["search_string"])) ? trim($_GET["search_string"]) : ""; // exits if we're doing a search
1373
+
1374
+ // Check if user is allowed to get the list. For example subscribers should not be allowed to
1375
+ // Use same capability that is required to add the menu
1376
+ $post_type_object = get_post_type_object($post_type);
1377
+ if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) {
1378
+ die( __( 'Cheatin&#8217; uh?' ) );
1379
+ }
1380
+
1381
  if ($action) {
1382
 
1383
  if ($search) {
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.4
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.4");
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.5
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.5");
31
  define( "CMS_TPV_NAME", "CMS Tree Page View");
32
 
33
  require(dirname(__FILE__)."/functions.php");
languages/cms-tree-page-view-fi_FI.mo ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Þ•����������4������L�������`������a������y���º��‘������L�����c��������������������Enter title of new page�Hide until next upgrade�Project-Id-Version:
2
+ Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view
3
+ POT-Creation-Date: 2012-12-26 20:37:31+00:00\n
4
+ MIME-Version: 1.0
5
+ Content-Type: text/plain; charset=UTF-8
6
+ Content-Transfer-Encoding: 8bit
7
+ PO-Revision-Date: 2013-03-03 07:23+0000\n
8
+ Last-Translator: Jan-Erik Finlander <janerik.finlander@gmail.com>
9
+ Language-Team: Finnish <http://www.transifex.com/projects/p/cms-tree-page-view/language/fi/>\n
10
+ X-Generator: Poedit 1.5.4
11
+ Plural-Forms: nplurals=2; plural=n != 1;
12
+ Language: fi_FI
13
+ �Kirjoita uuden sivun otsikko�Piilota seuraavan päivytkseen asti�
languages/cms-tree-page-view-fi_FI.po ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012
2
+ # This file is distributed under the same license as the package.
3
+ # Translators:
4
+ # Jan-Erik Finlander <janerik.finlander@gmail.com>, 2013.
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: CMS Tree Page View\n"
8
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
9
+ "POT-Creation-Date: 2012-12-26 20:37:31+00:00\n"
10
+ "PO-Revision-Date: 2013-03-03 07:23+0000\n"
11
+ "Last-Translator: Jan-Erik Finlander <janerik.finlander@gmail.com>\n"
12
+ "Language-Team: Finnish (http://www.transifex.com/projects/p/cms-tree-page-view/language/fi/)\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Language: fi\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ #: functions.php:272
20
+ msgid "Enter title of new page"
21
+ msgstr "Kirjoita uuden sivun otsikko "
22
+
23
+ #: functions.php:273
24
+ msgid "child pages"
25
+ msgstr "Alasivut"
26
+
27
+ #: functions.php:274 functions.php:887
28
+ msgid "Edit page"
29
+ msgstr "Muokkaa sivu"
30
+
31
+ #: functions.php:275 functions.php:888
32
+ msgid "View page"
33
+ msgstr "Näytä sivu"
34
+
35
+ #: functions.php:276 functions.php:887
36
+ msgid "Edit"
37
+ msgstr "Muokkaa"
38
+
39
+ #: functions.php:277 functions.php:888
40
+ msgid "View"
41
+ msgstr "Näytä"
42
+
43
+ #: functions.php:278
44
+ msgid "Add page"
45
+ msgstr "Lisää sivu"
46
+
47
+ #: functions.php:279 functions.php:896
48
+ msgid "Add new page after"
49
+ msgstr "Lisää uusi sivu tämän jälkeen"
50
+
51
+ #: functions.php:280
52
+ msgid "after"
53
+ msgstr "jälkeen"
54
+
55
+ #: functions.php:281
56
+ msgid "inside"
57
+ msgstr "sisällä"
58
+
59
+ #: functions.php:282
60
+ msgid "Sorry, can't create a sub page to a page with status \"draft\"."
61
+ msgstr "Valitettavasti ei voi luoda alasivun, sivu status on \"luonnos\"."
62
+
63
+ #: functions.php:283
64
+ msgid "Sorry, can't create a sub page to a page with status \"trash\"."
65
+ msgstr "Valitettavasti ei voi luoda alasivun, sivun status on \"roskis\". "
66
+
67
+ #: functions.php:284
68
+ msgid "Sorry, can't create a page after a page with status \"trash\"."
69
+ msgstr "Valitettavasti ei voi luoda sivun, \"roskis\" statuksen sivun jälkeen. "
70
+
71
+ #: functions.php:285 functions.php:901
72
+ msgid "Add new page inside"
73
+ msgstr "Lisää uusi sisäinen sivu "
74
+
75
+ #: functions.php:286 functions.php:292
76
+ msgid "draft"
77
+ msgstr "luonnos"
78
+
79
+ #: functions.php:287 functions.php:293
80
+ msgid "future"
81
+ msgstr "tuleva"
82
+
83
+ #: functions.php:288 functions.php:294
84
+ msgid "protected"
85
+ msgstr "suojattu"
86
+
87
+ #: functions.php:289 functions.php:295 functions.php:1235
88
+ msgid "pending"
89
+ msgstr "vireillä"
90
+
91
+ #: functions.php:290 functions.php:296
92
+ msgid "private"
93
+ msgstr "privatti"
94
+
95
+ #: functions.php:291 functions.php:297
96
+ msgid "trash"
97
+ msgstr "roskis"
98
+
99
+ #: functions.php:298
100
+ msgid "Password protected page"
101
+ msgstr "salasanalla suojattu sivu"
102
+
103
+ #: functions.php:299
104
+ msgid "Adding page..."
105
+ msgstr "Sivua lisätään... "
106
+
107
+ #: functions.php:300
108
+ msgid "Adding ..."
109
+ msgstr "Lisätään..."
110
+
111
+ #: functions.php:393
112
+ msgid "Tree View"
113
+ msgstr "Hakemisto"
114
+
115
+ #: functions.php:402
116
+ msgid "List View"
117
+ msgstr "Lista"
118
+
119
+ #: functions.php:438
120
+ msgid "Settings"
121
+ msgstr "Asetukset"
122
+
123
+ #: functions.php:474
124
+ msgctxt "name of dashboard"
125
+ msgid "%1$s Tree"
126
+ msgstr "%1$s Hakemisto"
127
+
128
+ #: functions.php:502
129
+ msgctxt "name in menu"
130
+ msgid "Tree View"
131
+ msgstr "Hakemisto"
132
+
133
+ #: functions.php:503
134
+ msgctxt "title on page with tree"
135
+ msgid "%1$s Tree View"
136
+ msgstr "%1$s Hakemisto"
137
+
138
+ #: functions.php:523
139
+ msgid "settings"
140
+ msgstr "asetukset"
141
+
142
+ #: functions.php:529
143
+ msgid "Select where to show a tree for pages and custom post types"
144
+ msgstr "Valitse, missä näytetään sivuhakemisto ja omat artikkelit"
145
+
146
+ #: functions.php:573
147
+ msgid "On dashboard"
148
+ msgstr "Työpöydällä"
149
+
150
+ #: functions.php:577
151
+ msgid "In menu"
152
+ msgstr "Valikossa"
153
+
154
+ #: functions.php:581
155
+ msgid "On post overview screen"
156
+ msgstr "Yleiskatsaus näytöllä"
157
+
158
+ #: functions.php:599
159
+ msgid "Save Changes"
160
+ msgstr "Tallenna muutokset"
161
+
162
+ #: functions.php:818
163
+ msgid "No posts found."
164
+ msgstr "Artikkelia ei löytynyt."
165
+
166
+ #: functions.php:830
167
+ msgid "All"
168
+ msgstr "Kaikki"
169
+
170
+ #: functions.php:835
171
+ msgid "Public"
172
+ msgstr "Julkinen"
173
+
174
+ #: functions.php:840
175
+ msgid "Trash"
176
+ msgstr "Roskis"
177
+
178
+ #: functions.php:848
179
+ msgid "Expand"
180
+ msgstr "Laajenna"
181
+
182
+ #: functions.php:849
183
+ msgid "Collapse"
184
+ msgstr "Supista"
185
+
186
+ #: functions.php:857
187
+ msgid "Clear search"
188
+ msgstr "Tyhjennä haku"
189
+
190
+ #: functions.php:858
191
+ msgid "Search"
192
+ msgstr "Hae"
193
+
194
+ #: functions.php:859
195
+ msgid "Searching..."
196
+ msgstr "Heataan..."
197
+
198
+ #: functions.php:860
199
+ msgid "Nothing found."
200
+ msgstr "Ei löytynyt mitään."
201
+
202
+ #: functions.php:867
203
+ msgid "Loading..."
204
+ msgstr "Ladataan..."
205
+
206
+ #: functions.php:872
207
+ msgid "Search: no pages found"
208
+ msgstr "Haku: sivuja ei löytynyt"
209
+
210
+ #: functions.php:875
211
+ msgid "Loading tree"
212
+ msgstr "Ladataan hakemisto"
213
+
214
+ #: functions.php:896 functions.php:932
215
+ msgid "After"
216
+ msgstr "Jälkeen"
217
+
218
+ #: functions.php:901 functions.php:933
219
+ msgid "Inside"
220
+ msgstr "Sisällä"
221
+
222
+ #: functions.php:905
223
+ msgid "Can not create page inside of a page with draft status"
224
+ msgstr "Valitettavasti ei voi luoda alasivun, sivu on luonnos tilassa"
225
+
226
+ #: functions.php:921
227
+ msgid "Add page(s)"
228
+ msgstr "Lisää sivu(ja)"
229
+
230
+ #: functions.php:926
231
+ msgid "Enter title here"
232
+ msgstr "Kirjoita otsikko tähän"
233
+
234
+ #: functions.php:931
235
+ msgid "Position"
236
+ msgstr "Sijainti"
237
+
238
+ #: functions.php:938
239
+ msgid "Status"
240
+ msgstr "Tila"
241
+
242
+ #: functions.php:939
243
+ msgid "Draft"
244
+ msgstr "Luonnos"
245
+
246
+ #: functions.php:940
247
+ msgid "Published"
248
+ msgstr "Julkaistu"
249
+
250
+ #: functions.php:944
251
+ msgid "Add"
252
+ msgstr "Lisää"
253
+
254
+ #: functions.php:945
255
+ msgid "or"
256
+ msgstr "tai"
257
+
258
+ #: functions.php:946
259
+ msgid "cancel"
260
+ msgstr "peruuttaa"
261
+
262
+ #: functions.php:956
263
+ msgid "Last modified"
264
+ msgstr "Viimeksi muokattu"
265
+
266
+ #: functions.php:958
267
+ msgid "by"
268
+ msgstr "- "
269
+
270
+ #: functions.php:961
271
+ msgid "Page ID"
272
+ msgstr "Sivun ID"
273
+
274
+ #: functions.php:997
275
+ msgctxt "headline of page with tree"
276
+ msgid "%1$s Tree View"
277
+ msgstr "%1$s Hakemisto"
278
+
279
+ #: functions.php:1200
280
+ msgid "Unknown user"
281
+ msgstr "Tuntematon käyttäjä"
282
+
283
+ #: functions.php:1205
284
+ msgid "<Untitled page>"
285
+ msgstr "<Sivun otsikko>"
286
+
287
+ #: functions.php:1225
288
+ msgid "Comments"
289
+ msgstr "Kommentit"
290
+
291
+ #: functions.php:1232
292
+ msgid "%s pending"
293
+ msgstr "%s vireillä"
294
+
295
+ #: functions.php:1242
296
+ msgctxt "comment count"
297
+ msgid "0"
298
+ msgstr "0"
299
+
300
+ #: functions.php:1242
301
+ msgctxt "comment count"
302
+ msgid "1"
303
+ msgstr "1"
304
+
305
+ #: functions.php:1242
306
+ msgctxt "comment count"
307
+ msgid "%"
308
+ msgstr "%"
309
+
310
+ #: functions.php:1428
311
+ msgid "New page"
312
+ msgstr "Uusi sivu"
313
+
314
+ #: functions.php:1618
315
+ msgid "Thanks for using my plugin"
316
+ msgstr "Kiitos kun käytät minun plugari"
317
+
318
+ #: functions.php:1620
319
+ msgid ""
320
+ "Hi there! I just wanna says thanks for using my plugin. I hope you like it "
321
+ "as much as I do."
322
+ msgstr "Hei siellä! Haluan vain sanoo kiitos kun käytät minun plugarin. Toivottavasti pidät siitä yhtä paljon kuin minä."
323
+
324
+ #: functions.php:1621
325
+ msgid "/Pär Thernström - plugin creator"
326
+ msgstr "/ Plugarin luoja"
327
+
328
+ #: functions.php:1623
329
+ msgid "I like this plugin<br>– how can I thank you?"
330
+ msgstr "Pidän tätä plugaria <br> - miten voin kiittää sinua?"
331
+
332
+ #: functions.php:1624
333
+ msgid "There are serveral ways for you to show your appreciation:"
334
+ msgstr "On olemassa useita tapoja, joilla voit näyttää arvostavasi:"
335
+
336
+ #: functions.php:1626
337
+ msgid ""
338
+ "<a href=\"%1$s\">Give it a nice review</a> over at the WordPress Plugin "
339
+ "Directory"
340
+ msgstr "<a href=\"%1$s\"> Anna joku kiva arvostelu </ a> WordPress Plugin Directory kautta"
341
+
342
+ #: functions.php:1627
343
+ msgid "<a href=\"%1$s\">Give a donation</a> – any amount will make me happy"
344
+ msgstr "<a href=\"%1$s\"> Anna lahjoitus </ a> - minkä määrä tahansa teksi minut onnelliseksi"
345
+
346
+ #: functions.php:1628
347
+ msgid ""
348
+ "<a href=\"%1$s\">Post a nice tweet</a> or make a nice blog post about the "
349
+ "plugin"
350
+ msgstr "<a href=\"%1$s\"> Kirjoita kiva Tweetti </ a> tai kerro tästä hienosta plugarista sun blogissa"
351
+
352
+ #: functions.php:1631
353
+ msgid "Support"
354
+ msgstr "Tuki"
355
+
356
+ #: functions.php:1632
357
+ msgid "Plese see the <a href=\"%1$s\">support forum</a> for help."
358
+ msgstr "Katso <a href=\"%1$s\"> tukifoorumi </ a> jos tarvitset apua."
359
+
360
+ #: functions.php:1636
361
+ msgid "Hide until next upgrade"
362
+ msgstr "Piilota seuraavan päivitykseen asti"
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: eskapism, MarsApril
3
  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.4
6
- Tested up to: 3.5
7
- Stable tag: 1.2.4
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
 
@@ -76,6 +76,7 @@ This plugin is available in the following languages:
76
  * Danish
77
  * Lithuanian
78
  * Estonian
 
79
 
80
  #### Always show your pages in the admin area
81
  If you want to always have a list of your pages available in your WordPress admin area, please check out the plugin
@@ -105,6 +106,12 @@ Now the tree with the pages will be visible both on the dashboard and in the men
105
 
106
  == Changelog ==
107
 
 
 
 
 
 
 
108
  = 1.2.4 =
109
  - Small design changes for the icons in the post overview screen
110
  - Added actions to check permissions when adding pages with AJAX
2
  Contributors: eskapism, MarsApril
3
  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.5
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
 
76
  * Danish
77
  * Lithuanian
78
  * Estonian
79
+ * Finnish
80
 
81
  #### Always show your pages in the admin area
82
  If you want to always have a list of your pages available in your WordPress admin area, please check out the plugin
106
 
107
  == Changelog ==
108
 
109
+ = 1.2.5 =
110
+ - Fixed some notice warnings
111
+ - Added Finnish translation
112
+ - Fixed a security issue. Thanks to Julio POTIER (<a href="http://secu.boiteaweb.fr/">http://secu.boiteaweb.fr/</a>) for finding and reporting.
113
+ - Added nonce checks for options page and for adding new pages
114
+
115
  = 1.2.4 =
116
  - Small design changes for the icons in the post overview screen
117
  - Added actions to check permissions when adding pages with AJAX