ronalfy / reorder-posts

Reorder Posts
GNU General Public License v2.0
6 stars 0 forks source link

Illegal Offset #8

Closed ronalfy closed 9 years ago

ronalfy commented 9 years ago

https://wordpress.org/support/topic/illegal-offset-type-%E2%80%93-class-reorder-adminphp-lines-287-288?replies=4

ronalfy commented 9 years ago

This bug is caused when people query multiple post types. Solution is to check if it's an array and return if it is. No solution on which post type takes precedent in a custom query like that.

http://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters

ronalfy commented 9 years ago

Fixed: https://github.com/ronalfy/reorder-posts/commit/7d8cdef42165d094a7be7f99cc0dd7ed8c0a9e0d

ronalfy commented 9 years ago

People who make advanced queries like that should know what they're doing and not need the plugin's admin actions.