Skip to content
Snippets Groups Projects
Commit d1552632 authored by Prasath Nadarajah's avatar Prasath Nadarajah
Browse files

allow get_posts to be used with empty arguements

parent 5d515411
Branches
Tags
No related merge requests found
...@@ -133,7 +133,7 @@ class WP_RSS_Client extends SimplePie implements WP_Client{ ...@@ -133,7 +133,7 @@ class WP_RSS_Client extends SimplePie implements WP_Client{
// TODO: Implement get_post() method. // TODO: Implement get_post() method.
} }
public function get_posts( $args ) { public function get_posts( $args = array() ) {
$this->init(); $this->init();
$this->handle_content_type(); $this->handle_content_type();
......
...@@ -42,11 +42,11 @@ interface WP_Client { ...@@ -42,11 +42,11 @@ interface WP_Client {
/** /**
* Retrieves a list of posts from a slave site. * Retrieves a list of posts from a slave site.
* *
* @param int $args Arguments when retrieving posts. * @param array $args Arguments when retrieving posts.
* *
* @return boolean true on success false on failure. * @return boolean true on success false on failure.
*/ */
public function get_posts( $args ); public function get_posts( $args = array() );
/** /**
* Deletes an existing post in the slave site. * Deletes an existing post in the slave site.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment