Skip to content
Snippets Groups Projects
Commit 9a5481bf authored by Erick Hitter's avatar Erick Hitter
Browse files

More helpers

parent 430910ab
No related branches found
No related tags found
No related merge requests found
......@@ -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();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment