Changeset 47733 for trunk/src/wp-includes/SimplePie/Cache/File.php
- Timestamp:
- 05/01/2020 02:24:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/SimplePie/Cache/File.php
r22798 r47733 6 6 * Takes the hard work out of managing a complete RSS/Atom solution. 7 7 * 8 * Copyright (c) 2004-201 2, Ryan Parman, GeoffreySneddon, Ryan McCue, and contributors8 * Copyright (c) 2004-2016, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors 9 9 * All rights reserved. 10 10 * … … 34 34 * 35 35 * @package SimplePie 36 * @version 1.3.1 37 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue 36 * @copyright 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue 38 37 * @author Ryan Parman 39 * @author GeoffreySneddon38 * @author Sam Sneddon 40 39 * @author Ryan McCue 41 40 * @link http://simplepie.org/ SimplePie … … 103 102 public function save($data) 104 103 { 105 if (file_exists($this->name) && is_writ eable($this->name) || file_exists($this->location) && is_writeable($this->location))104 if (file_exists($this->name) && is_writable($this->name) || file_exists($this->location) && is_writable($this->location)) 106 105 { 107 106 if ($data instanceof SimplePie) … … 137 136 public function mtime() 138 137 { 139 if (file_exists($this->name)) 140 { 141 return filemtime($this->name); 142 } 143 return false; 138 return @filemtime($this->name); 144 139 } 145 140 … … 151 146 public function touch() 152 147 { 153 if (file_exists($this->name)) 154 { 155 return touch($this->name); 156 } 157 return false; 148 return @touch($this->name); 158 149 } 159 150
Note: See TracChangeset
for help on using the changeset viewer.