WordPress 4.4
[autoinstalls/wordpress.git] / wp-includes / class-feed.php
index 01acff82e6ae08c2d425492b1a3bdfcfa914418e..919440f18e87a93add1b745f53c319e85c2aaa0d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-if ( !class_exists('SimplePie') )
+if ( ! class_exists( 'SimplePie', false ) )
        require_once( ABSPATH . WPINC . '/class-simplepie.php' );
 
 class WP_Feed_Cache extends SimplePie_Cache {
@@ -36,6 +36,9 @@ class WP_Feed_Cache_Transient {
                $this->lifetime = apply_filters( 'wp_feed_cache_transient_lifetime', $lifetime, $filename);
        }
 
+       /**
+        * @access public
+        */
        public function save($data) {
                if ( $data instanceof SimplePie ) {
                        $data = $data->data;
@@ -46,18 +49,30 @@ class WP_Feed_Cache_Transient {
                return true;
        }
 
+       /**
+        * @access public
+        */
        public function load() {
                return get_transient($this->name);
        }
 
+       /**
+        * @access public
+        */
        public function mtime() {
                return get_transient($this->mod_name);
        }
 
+       /**
+        * @access public
+        */
        public function touch() {
                return set_transient($this->mod_name, time(), $this->lifetime);
        }
 
+       /**
+        * @access public
+        */
        public function unlink() {
                delete_transient($this->name);
                delete_transient($this->mod_name);