WordPress 4.2
[autoinstalls/wordpress.git] / wp-includes / class-feed.php
index 9aa144a52b91ce2dd0108be8ac57a3b751574054..01acff82e6ae08c2d425492b1a3bdfcfa914418e 100644 (file)
@@ -37,8 +37,9 @@ class WP_Feed_Cache_Transient {
        }
 
        public function save($data) {
-               if ( is_a($data, 'SimplePie') )
+               if ( $data instanceof SimplePie ) {
                        $data = $data->data;
+               }
 
                set_transient($this->name, $data, $this->lifetime);
                set_transient($this->mod_name, time(), $this->lifetime);