PluginProbe
FeedWordPress / 2011.0721
FeedWordPress v2011.0721
trunk 0.8 0.9 0.91 0.95 0.96 0.97 0.98 0.981 0.99 0.991 0.992 0.993 2008.1030 2008.1101 2008.1105 2008.1214 2009.0612 2009.0613 2009.0618 2009.0707 2009.1111 2009.1112 2010.0127 2010.0528 All 65 releases
feedwordpress / feedwordpress_file.class.php

feedwordpress_file.class.php in FeedWordPress 2011.0721, at feedwordpress_file.class.php

22 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 class FeedWordPress_File extends WP_SimplePie_File {
3 function FeedWordPress_File ($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) {
4 self::__construct($url, $timeout, $redirects, $headers, $useragent, $force_fsockopen);
5 }
6
7 function __construct ($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) {
8 if (is_callable(array('WP_SimplePie_File', 'WP_SimplePie_File'))) : // PHP 4 idiom
9 WP_SimplePie_File::WP_SimplePie_File($url, $timeout, $redirects, $headers, $useragent, $force_fsockopen);
10 else : // PHP 5+
11 parent::__construct($url, $timeout, $redirects, $headers, $useragent, $force_fsockopen);
12 endif;
13
14 // SimplePie makes a strongly typed check against integers with
15 // this, but WordPress puts a string in. Which causes caching
16 // to break and fall on its ass when SimplePie is getting a 304,
17 // but doesn't realize it because this member is "304" instead.
18 $this->status_code = (int) $this->status_code;
19 }
20 } /* class FeedWordPress_File () */
21
22