Changeset 28505 for trunk/src/wp-includes/class-feed.php
- Timestamp:
- 05/19/2014 05:26:48 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-feed.php
r25733 r28505 11 11 * @access public 12 12 */ 13 function create($location, $filename, $extension) {13 public function create($location, $filename, $extension) { 14 14 return new WP_Feed_Cache_Transient($location, $filename, $extension); 15 15 } … … 17 17 18 18 class WP_Feed_Cache_Transient { 19 var$name;20 var$mod_name;21 var$lifetime = 43200; //Default lifetime in cache of 12 hours19 public $name; 20 public $mod_name; 21 public $lifetime = 43200; //Default lifetime in cache of 12 hours 22 22 23 function __construct($location, $filename, $extension) {23 public function __construct($location, $filename, $extension) { 24 24 $this->name = 'feed_' . $filename; 25 25 $this->mod_name = 'feed_mod_' . $filename; … … 37 37 } 38 38 39 function save($data) {39 public function save($data) { 40 40 if ( is_a($data, 'SimplePie') ) 41 41 $data = $data->data; … … 46 46 } 47 47 48 function load() {48 public function load() { 49 49 return get_transient($this->name); 50 50 } 51 51 52 function mtime() {52 public function mtime() { 53 53 return get_transient($this->mod_name); 54 54 } 55 55 56 function touch() {56 public function touch() { 57 57 return set_transient($this->mod_name, time(), $this->lifetime); 58 58 } 59 59 60 function unlink() {60 public function unlink() { 61 61 delete_transient($this->name); 62 62 delete_transient($this->mod_name); … … 67 67 class WP_SimplePie_File extends SimplePie_File { 68 68 69 function __construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) {69 public function __construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) { 70 70 $this->url = $url; 71 71 $this->timeout = $timeout;
Note: See TracChangeset
for help on using the changeset viewer.