]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-feed.php
WordPress 4.3-scripts
[autoinstalls/wordpress.git] / wp-includes / class-feed.php
index 01acff82e6ae08c2d425492b1a3bdfcfa914418e..6e109e161616be4e4919d15e555d9c0ffe3a0c05 100644 (file)
@@ -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);