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

switch statement for loading constructor

parent e16fa137
Branches
No related tags found
No related merge requests found
...@@ -16,6 +16,18 @@ class WP_RSS_Client extends SimplePie implements WP_Client { ...@@ -16,6 +16,18 @@ class WP_RSS_Client extends SimplePie implements WP_Client {
function __construct( $site_ID ) { function __construct( $site_ID ) {
switch( SIMPLEPIE_VERSION ) {
case '1.2.1':
parent::SimplePie();
break;
case '1.3':
parent::__construct();
break;
default:
parent::__construct();
break;
}
parent::__construct(); parent::__construct();
$this->set_feed_url( get_post_meta( $site_ID, 'syn_feed_url', true ) ); $this->set_feed_url( get_post_meta( $site_ID, 'syn_feed_url', true ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment