Post Types Order - Version 1.8.2

Version Description

  • Media Uploaded To after sort fix
Download this release

Release Info

Developer nsp-code
Plugin Icon 128x128 Post Types Order
Version 1.8.2
Comparing to
See all releases

Code changes from version 1.8.1 to 1.8.2

Files changed (5) hide show
  1. include/cpto-class.php +1 -1
  2. lang/cpt.mo +0 -0
  3. lang/cpt.po +10 -10
  4. post-types-order.php +3 -3
  5. readme.txt +3 -0
include/cpto-class.php CHANGED
@@ -52,7 +52,7 @@
52
  {
53
  foreach( $values as $position => $id )
54
  {
55
- $data = array('menu_order' => $position, 'post_parent' => 0);
56
  $data = apply_filters('post-types-order_save-ajax-order', $data, $key, $id);
57
 
58
  $wpdb->update( $wpdb->posts, $data, array('ID' => $id) );
52
  {
53
  foreach( $values as $position => $id )
54
  {
55
+ $data = array('menu_order' => $position);
56
  $data = apply_filters('post-types-order_save-ajax-order', $data, $key, $id);
57
 
58
  $wpdb->update( $wpdb->posts, $data, array('ID' => $id) );
lang/cpt.mo CHANGED
Binary file
lang/cpt.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Types Order\n"
4
- "POT-Creation-Date: 2015-02-28 17:15+0200\n"
5
- "PO-Revision-Date: 2015-02-28 17:15+0200\n"
6
- "Last-Translator: nsp-code <contact@nsp-code.com>\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -25,31 +25,31 @@ msgstr ""
25
  msgid "make the configuration and save"
26
  msgstr ""
27
 
28
- #: post-types-order.php:209 post-types-order.php:287
29
  #, php-format
30
  msgid "Use commas instead of %s to separate excluded terms."
31
  msgstr ""
32
 
33
- #: include/cpto-class.php:107 include/cpto-class.php:111
34
- #: include/cpto-class.php:122
35
  msgid "Re-Order"
36
  msgstr ""
37
 
38
- #: include/cpto-class.php:130
39
  msgid ""
40
  "This plugin can't work without javascript, because it's use drag and drop "
41
  "and AJAX."
42
  msgstr ""
43
 
44
- #: include/cpto-class.php:143
45
  msgid "Update"
46
  msgstr ""
47
 
48
- #: include/cpto-class.php:162
49
  msgid "Items Order Updated"
50
  msgstr ""
51
 
52
- #: include/cpto-class.php:179
53
  msgid "Pages"
54
  msgstr ""
55
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Types Order\n"
4
+ "POT-Creation-Date: 2015-07-10 17:03+0200\n"
5
+ "PO-Revision-Date: 2015-07-10 17:03+0200\n"
6
+ "Last-Translator: NspCode <electronice_delphi@yahoo.com>\n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
25
  msgid "make the configuration and save"
26
  msgstr ""
27
 
28
+ #: post-types-order.php:214 post-types-order.php:293
29
  #, php-format
30
  msgid "Use commas instead of %s to separate excluded terms."
31
  msgstr ""
32
 
33
+ #: include/cpto-class.php:107 include/cpto-class.php:109
34
+ #: include/cpto-class.php:113 include/cpto-class.php:124
35
  msgid "Re-Order"
36
  msgstr ""
37
 
38
+ #: include/cpto-class.php:132
39
  msgid ""
40
  "This plugin can't work without javascript, because it's use drag and drop "
41
  "and AJAX."
42
  msgstr ""
43
 
44
+ #: include/cpto-class.php:145
45
  msgid "Update"
46
  msgstr ""
47
 
48
+ #: include/cpto-class.php:164
49
  msgid "Items Order Updated"
50
  msgstr ""
51
 
52
+ #: include/cpto-class.php:183
53
  msgid "Pages"
54
  msgstr ""
55
 
post-types-order.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.nsp-code.com
5
  Description: Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
6
  Author: Nsp Code
7
  Author URI: http://www.nsp-code.com
8
- Version: 1.8.1
9
  */
10
 
11
  define('CPTPATH', plugin_dir_path(__FILE__));
@@ -82,9 +82,9 @@ Version: 1.8.1
82
  if (is_admin())
83
  {
84
 
85
- if ($options['adminsort'] == "1" &&
86
  //ignore when ajax Gallery Edit default functionality
87
- !($options['adminsort'] == "1" && defined('DOING_AJAX') && isset($_REQUEST['action']) && $_REQUEST['action'] == 'query-attachments')
88
  )
89
  {
90
  $orderBy = "{$wpdb->posts}.menu_order, {$wpdb->posts}.post_date DESC";
5
  Description: Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
6
  Author: Nsp Code
7
  Author URI: http://www.nsp-code.com
8
+ Version: 1.8.2
9
  */
10
 
11
  define('CPTPATH', plugin_dir_path(__FILE__));
82
  if (is_admin())
83
  {
84
 
85
+ if ($options['adminsort'] == "1" ||
86
  //ignore when ajax Gallery Edit default functionality
87
+ (defined('DOING_AJAX') && isset($_REQUEST['action']) && $_REQUEST['action'] == 'query-attachments')
88
  )
89
  {
90
  $orderBy = "{$wpdb->posts}.menu_order, {$wpdb->posts}.post_date DESC";
readme.txt CHANGED
@@ -67,6 +67,9 @@ All ideas are welcome and i put them on my list to be implemented into the new v
67
 
68
  == Change Log ==
69
 
 
 
 
70
  = 1.8.1 =
71
  - Next / Previous sorting apply bug fix for custom taxonomies
72
  - Portuguese translation update - Pedro Mendon?a - http://www.pedromendonca.pt
67
 
68
  == Change Log ==
69
 
70
+ = 1.8.2 =
71
+ - Media Uploaded To after sort fix
72
+
73
  = 1.8.1 =
74
  - Next / Previous sorting apply bug fix for custom taxonomies
75
  - Portuguese translation update - Pedro Mendon?a - http://www.pedromendonca.pt