Changeset 20417 for trunk/wp-includes/general-template.php
- Timestamp:
- 04/10/2012 01:19:30 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r20326 r20417 1747 1747 */ 1748 1748 function user_can_richedit() { 1749 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_ iphone, $is_IE;1749 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE; 1750 1750 1751 1751 if ( !isset($wp_rich_edit) ) { … … 1754 1754 if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users 1755 1755 if ( $is_safari ) { 1756 if ( $is_iphone|| false !== strpos( $_SERVER['HTTP_USER_AGENT'], '; Silk/' ) )1756 if ( wp_is_mobile() || false !== strpos( $_SERVER['HTTP_USER_AGENT'], '; Silk/' ) ) 1757 1757 $wp_rich_edit = ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 ); 1758 1758 else
Note: See TracChangeset
for help on using the changeset viewer.