Ticket #11176: 11176.diff
| File 11176.diff, 3.9 KB (added by nacin, 3 years ago) |
|---|
-
wp-admin/admin-ajax.php
93 93 } elseif ( 2 == $_GET['test'] ) { 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 ); 102 102 } else { -
wp-admin/includes/class-wp-filesystem-ftpext.php
261 261 function parselisting($line) { 262 262 static $is_windows; 263 263 if ( is_null($is_windows) ) 264 $is_windows = str pos( strtolower(ftp_systype($this->link)), 'win') !== false;264 $is_windows = stripos( ftp_systype($this->link), 'win') !== false; 265 265 266 266 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) ) { 267 267 $b = array(); -
wp-includes/general-template.php
1087 1087 $daywithpost = array(); 1088 1088 } 1089 1089 1090 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)1090 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'camino') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false) 1091 1091 $ak_title_separator = "\n"; 1092 1092 else 1093 1093 $ak_title_separator = ', '; -
wp-includes/vars.php
40 40 if ( isset($_SERVER['HTTP_USER_AGENT']) ) { 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 ) { 48 48 $is_gecko = true; … … 57 57 } 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 63 63 $is_IE = ( $is_macIE || $is_winIE ); -
wp-admin/includes/media.php
1356 1356 1357 1357 // If Mac and mod_security, no Flash. :( 1358 1358 $flash = true; 1359 if ( false !== str pos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )1359 if ( false !== stripos($_SERVER['HTTP_USER_AGENT'], 'mac') && apache_mod_loaded('mod_security') ) 1360 1360 $flash = false; 1361 1361 1362 1362 $flash = apply_filters('flash_uploader', $flash);
