Changeset 13132
- Timestamp:
- 02/14/2010 02:27:19 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r13088 r13132 94 94 if ( !isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) 95 95 die('-1'); 96 if ( false !== str pos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {96 if ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { 97 97 header('Content-Encoding: deflate'); 98 98 $out = gzdeflate( $test_str, 1 ); 99 } elseif ( false !== str pos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && function_exists('gzencode') ) {99 } elseif ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') ) { 100 100 header('Content-Encoding: gzip'); 101 101 $out = gzencode( $test_str, 1 ); -
trunk/wp-admin/includes/class-wp-filesystem-ftpext.php
r12999 r13132 259 259 static $is_windows; 260 260 if ( is_null($is_windows) ) 261 $is_windows = str pos( strtolower( ftp_systype($this->link)), 'win') !== false;261 $is_windows = stripos( ftp_systype($this->link), 'win') !== false; 262 262 263 263 if ( $is_windows && preg_match('/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|<DIR>) +(.+)/', $line, $lucifer) ) { -
trunk/wp-admin/includes/media.php
r13106 r13132 1383 1383 // If Mac and mod_security, no Flash. :( 1384 1384 $flash = true; 1385 if ( false !== str pos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )1385 if ( false !== stripos($_SERVER['HTTP_USER_AGENT'], 'mac') && apache_mod_loaded('mod_security') ) 1386 1386 $flash = false; 1387 1387 -
trunk/wp-includes/general-template.php
r13113 r13132 1147 1147 } 1148 1148 1149 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || str pos(strtolower($_SERVER['HTTP_USER_AGENT']), 'camino') !== false || strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'safari') !== false)1149 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'camino') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false) 1150 1150 $ak_title_separator = "\n"; 1151 1151 else -
trunk/wp-includes/vars.php
r12284 r13132 41 41 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Lynx') !== false ) { 42 42 $is_lynx = true; 43 } elseif ( str pos(strtolower($_SERVER['HTTP_USER_AGENT']), 'chrome') !== false ) {43 } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'chrome') !== false ) { 44 44 $is_chrome = true; 45 } elseif ( str pos(strtolower($_SERVER['HTTP_USER_AGENT']), 'safari') !== false ) {45 } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false ) { 46 46 $is_safari = true; 47 47 } elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') !== false ) { … … 58 58 } 59 59 60 if ( $is_safari && str pos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mobile') !== false )60 if ( $is_safari && stripos($_SERVER['HTTP_USER_AGENT'], 'mobile') !== false ) 61 61 $is_iphone = true; 62 62
Note: See TracChangeset
for help on using the changeset viewer.