ColorlibHQ / simple-custom-post-order

Order posts(posts, any custom post types) using a Drag and Drop Sortable JavaScript. Configuration is unnecessary.
http://wordpress.org/plugins/simple-custom-post-order/
GNU General Public License v3.0
31 stars 20 forks source link

is_admin() && ! wp_doing_ajax() #44

Closed joanrodas closed 4 years ago

joanrodas commented 5 years ago

is_admin() returns true when doing an AJAX request. Added "! wp_doing_ajax()" to check if AJAX is being used.

igritsay commented 4 years ago

@cristianraiber Fix for admin ajax already was merged before and now it reverted https://github.com/ColorlibHQ/simple-custom-post-order/pull/5/commits/4b244743d0e4d214e6c30a6622c2ddc2e8748536 Something wrong with it? Plugin again started overriding queries inside admin ajax requests.