Changeset 21367
- Timestamp:
- 07/30/2012 07:40:52 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r21361 r21367 1755 1755 if ( $is_safari ) { 1756 1756 $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 ); 1757 } elseif ( $is_gecko || $is_chrome || $is_IE ) {1757 } elseif ( $is_gecko || $is_chrome || $is_IE || ( $is_opera && !wp_is_mobile() ) ) { 1758 1758 $wp_rich_edit = true; 1759 } elseif ( $is_opera ) {1760 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mobi/') === false && strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini/') === false )1761 $wp_rich_edit = true;1762 1759 } 1763 1760 } -
trunk/wp-includes/vars.php
r20990 r21367 117 117 || strpos($_SERVER['HTTP_USER_AGENT'], 'Kindle') !== false 118 118 || strpos($_SERVER['HTTP_USER_AGENT'], 'BlackBerry') !== false 119 || strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== false ) { 119 || strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== false 120 || strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mobi') !== false ) { 120 121 $is_mobile = true; 121 122 } else {
Note: See TracChangeset
for help on using the changeset viewer.