diff --git a/wp-includes/streams.php b/wp-includes/streams.php index 595acd775b..924394f171 100644 --- a/wp-includes/streams.php +++ b/wp-includes/streams.php @@ -159,7 +159,8 @@ class CachedFileReader extends StringReader { return false; } $this->_str = fread($fd, $length); - fclose($fd); + $this->_pos = 0; + fclose($fd); } else { $this->error = 2; // File doesn't exist @@ -169,4 +170,4 @@ class CachedFileReader extends StringReader { } -?> \ No newline at end of file +?>