From 9a5481bf7efeea3a11245df293ae49562eff486c Mon Sep 17 00:00:00 2001
From: Erick Hitter <services@ethitter.com>
Date: Fri, 24 Feb 2017 20:48:01 -0800
Subject: [PATCH] More helpers

---
 includes/class-main.php | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/includes/class-main.php b/includes/class-main.php
index c9fdb00..72fef52 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();
-- 
GitLab