Changeset 38467 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 08/31/2016 06:41:07 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r38459 r38467 2905 2905 * @global bool $is_safari 2906 2906 * @global bool $is_chrome 2907 * @global bool $is_IE2908 2907 * 2909 2908 * @return bool 2910 2909 */ 2911 2910 function user_can_richedit() { 2912 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_ IE, $is_edge;2911 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_edge; 2913 2912 2914 2913 if ( !isset($wp_rich_edit) ) { … … 2918 2917 if ( $is_safari ) { 2919 2918 $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 ); 2920 } elseif ( $is_gecko || $is_chrome || $is_IE|| $is_edge || ( $is_opera && !wp_is_mobile() ) ) {2919 } elseif ( $is_gecko || $is_chrome || wp_is_IE() || $is_edge || ( $is_opera && !wp_is_mobile() ) ) { 2921 2920 $wp_rich_edit = true; 2922 2921 }
Note: See TracChangeset
for help on using the changeset viewer.