Changeset 38468 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 08/31/2016 03:21:04 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/general-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r38467 r38468 2905 2905 * @global bool $is_safari 2906 2906 * @global bool $is_chrome 2907 * @global bool $is_IE 2907 2908 * 2908 2909 * @return bool 2909 2910 */ 2910 2911 function user_can_richedit() { 2911 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_ edge;2912 global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge; 2912 2913 2913 2914 if ( !isset($wp_rich_edit) ) { … … 2917 2918 if ( $is_safari ) { 2918 2919 $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 ); 2919 } elseif ( $is_gecko || $is_chrome || wp_is_IE()|| $is_edge || ( $is_opera && !wp_is_mobile() ) ) {2920 } elseif ( $is_gecko || $is_chrome || $is_IE || $is_edge || ( $is_opera && !wp_is_mobile() ) ) { 2920 2921 $wp_rich_edit = true; 2921 2922 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)