diff --git a/includes/class-main.php b/includes/class-main.php index c9fdb000ed232581deb1ecee2a569fbd0cfe3319..72fef52b2d1a469294c4f04613d575d9429afeb7 100644 --- a/includes/class-main.php +++ b/includes/class-main.php @@ -105,7 +105,7 @@ class Main extends Singleton { $this->tax_input = $_REQUEST['tax_input']; } - if ( isset( $_REQUEST['post_author'] ) && -1 === (int) $_REQUEST['post_author'] ) { + if ( isset( $_REQUEST['post_author'] ) && -1 !== (int) $_REQUEST['post_author'] ) { $this->post_author = $_REQUEST['post_author']; } @@ -133,6 +133,13 @@ class Main extends Singleton { unset( $_REQUEST['action'] ); unset( $_REQUEST['action2'] ); } + + /** + * Get data for this bulk request + */ + private function get_vars() { + return get_object_vars( $this ); + } } Main::instance();