Changeset 32650 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 05/29/2015 03:42:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r32542 r32650 342 342 * 343 343 * @since 3.2.0 344 * 345 * @static 344 346 * @access private 345 347 * … … 627 629 * @link https://core.trac.wordpress.org/ticket/14636 Allow wildcard domains in WP_ACCESSIBLE_HOSTS 628 630 * 631 * @staticvar array|null $accessible_hosts 632 * @staticvar array $wildcard_regex 633 * 629 634 * @param string $uri URI of url. 630 635 * @return bool True to block, false to allow. … … 657 662 return true; 658 663 659 static $accessible_hosts ;660 static $wildcard_regex = false;661 if ( null == $accessible_hosts ) {664 static $accessible_hosts = null; 665 static $wildcard_regex = array(); 666 if ( null === $accessible_hosts ) { 662 667 $accessible_hosts = preg_split('|,\s*|', WP_ACCESSIBLE_HOSTS); 663 668 … … 688 693 * 689 694 * @since 4.1.0 695 * 696 * @static 690 697 * @access protected 691 698 * … … 726 733 * @since 3.4.0 727 734 * 735 * @static 728 736 * @access public 737 * 729 738 * @param string $maybe_relative_path The URL which might be relative 730 739 * @param string $url The URL which $maybe_relative_path is relative to … … 796 805 * 797 806 * @since 3.7.0 807 * 808 * @static 798 809 * 799 810 * @param string $url The URL which was requested. … … 1799 1810 * @since 2.8.0 1800 1811 * 1812 * @staticvar array|null $bypass_hosts 1813 * @staticvar array $wildcard_regex 1814 * 1801 1815 * @param string $uri URI to check. 1802 1816 * @return bool True, to send through the proxy and false if, the proxy should not be used. … … 1838 1852 return true; 1839 1853 1840 static $bypass_hosts ;1841 static $wildcard_regex = false;1842 if ( null == $bypass_hosts ) {1854 static $bypass_hosts = null; 1855 static $wildcard_regex = array(); 1856 if ( null === $bypass_hosts ) { 1843 1857 $bypass_hosts = preg_split('|,\s*|', WP_PROXY_BYPASS_HOSTS); 1844 1858 … … 2088 2102 * @since 2.8.0 2089 2103 * 2104 * @static 2105 * 2090 2106 * @param string $raw String to compress. 2091 2107 * @param int $level Optional, default is 9. Compression level, 9 is highest. … … 2107 2123 * @since 2.8.0 2108 2124 * 2125 * @static 2126 * 2109 2127 * @param string $compressed String to decompress. 2110 2128 * @param int $length The optional length of the compressed data. … … 2151 2169 * @link http://au2.php.net/manual/en/function.gzinflate.php#70875 2152 2170 * @link http://au2.php.net/manual/en/function.gzinflate.php#77336 2171 * 2172 * @static 2153 2173 * 2154 2174 * @param string $gzData String to decompress. … … 2191 2211 * @since 2.8.0 2192 2212 * 2213 * @static 2214 * 2193 2215 * @param string $url 2194 2216 * @param array $args … … 2237 2259 * @since 2.8.0 2238 2260 * 2261 * @static 2262 * 2239 2263 * @return string Content-Encoding string to send in the header. 2240 2264 */ … … 2247 2271 * 2248 2272 * @since 2.8.0 2273 * 2274 * @static 2249 2275 * 2250 2276 * @param array|string $headers All of the available headers. … … 2271 2297 * @since 2.8.0 2272 2298 * 2299 * @static 2300 * 2273 2301 * @return bool 2274 2302 */
Note: See TracChangeset
for help on using the changeset viewer.