Version Description
Download this release
Release Info
Developer | giucu91 |
Plugin | Simple Custom Post Order |
Version | 2.4.9 |
Comparing to | |
See all releases |
Code changes from version 2.4.8 to 2.4.9
- readme.txt +4 -1
- simple-custom-post-order.php +22 -3
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: custom post order, post order, js post order, page order, posts order, cat
|
|
4 |
Requires at least: 4.6
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 2.4.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -36,6 +36,9 @@ An answer to that question.
|
|
36 |
|
37 |
== Changelog ==
|
38 |
|
|
|
|
|
|
|
39 |
= Version 2.4.8 =
|
40 |
* Add ability to reset order to post types
|
41 |
|
4 |
Requires at least: 4.6
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 2.4.9
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
36 |
|
37 |
== Changelog ==
|
38 |
|
39 |
+
= Version 2.4.9 =
|
40 |
+
* Fixed "Post order not saving"
|
41 |
+
|
42 |
= Version 2.4.8 =
|
43 |
* Add ability to reset order to post types
|
44 |
|
simple-custom-post-order.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Custom Post Order
|
4 |
* Plugin URI: https://wordpress.org/plugins-wp/simple-custom-post-order/
|
5 |
* Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.
|
6 |
-
* Version: 2.4.
|
7 |
* Author: Colorlib
|
8 |
* Author URI: https://colorlib.com/
|
9 |
* Tested up to: 5.3
|
@@ -36,7 +36,7 @@
|
|
36 |
|
37 |
define('SCPORDER_URL', plugins_url('', __FILE__));
|
38 |
define('SCPORDER_DIR', plugin_dir_path(__FILE__));
|
39 |
-
define('SCPORDER_VERSION', '2.4.
|
40 |
|
41 |
$scporder = new SCPO_Engine();
|
42 |
|
@@ -48,7 +48,7 @@ class SCPO_Engine {
|
|
48 |
|
49 |
add_action('admin_menu', array($this, 'admin_menu'));
|
50 |
|
51 |
-
|
52 |
|
53 |
add_action('admin_init', array($this, 'update_options'));
|
54 |
add_action('admin_init', array($this, 'load_script_css'));
|
@@ -227,6 +227,11 @@ class SCPO_Engine {
|
|
227 |
}
|
228 |
|
229 |
public function refresh() {
|
|
|
|
|
|
|
|
|
|
|
230 |
global $wpdb;
|
231 |
$objects = $this->get_scporder_options_objects();
|
232 |
$tags = $this->get_scporder_options_tags();
|
@@ -627,6 +632,20 @@ class SCPO_Engine {
|
|
627 |
|
628 |
}
|
629 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
/**
|
631 |
* SCP Order Uninstall hook
|
632 |
*/
|
3 |
* Plugin Name: Simple Custom Post Order
|
4 |
* Plugin URI: https://wordpress.org/plugins-wp/simple-custom-post-order/
|
5 |
* Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.
|
6 |
+
* Version: 2.4.9
|
7 |
* Author: Colorlib
|
8 |
* Author URI: https://colorlib.com/
|
9 |
* Tested up to: 5.3
|
36 |
|
37 |
define('SCPORDER_URL', plugins_url('', __FILE__));
|
38 |
define('SCPORDER_DIR', plugin_dir_path(__FILE__));
|
39 |
+
define('SCPORDER_VERSION', '2.4.9');
|
40 |
|
41 |
$scporder = new SCPO_Engine();
|
42 |
|
48 |
|
49 |
add_action('admin_menu', array($this, 'admin_menu'));
|
50 |
|
51 |
+
add_action('admin_init', array( $this, 'refresh' ) );
|
52 |
|
53 |
add_action('admin_init', array($this, 'update_options'));
|
54 |
add_action('admin_init', array($this, 'load_script_css'));
|
227 |
}
|
228 |
|
229 |
public function refresh() {
|
230 |
+
|
231 |
+
if ( scporder_doing_ajax() ) {
|
232 |
+
return;
|
233 |
+
}
|
234 |
+
|
235 |
global $wpdb;
|
236 |
$objects = $this->get_scporder_options_objects();
|
237 |
$tags = $this->get_scporder_options_tags();
|
632 |
|
633 |
}
|
634 |
|
635 |
+
function scporder_doing_ajax(){
|
636 |
+
|
637 |
+
if ( function_exists( 'wp_doing_ajax' ) ) {
|
638 |
+
return wp_doing_ajax();
|
639 |
+
}
|
640 |
+
|
641 |
+
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
642 |
+
return true;
|
643 |
+
}
|
644 |
+
|
645 |
+
return false;
|
646 |
+
|
647 |
+
}
|
648 |
+
|
649 |
/**
|
650 |
* SCP Order Uninstall hook
|
651 |
*/
|