mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
WP_Editor: don't show empty div if no editor-buttons and media-buttons are shown, props ocean90, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1739,7 +1739,7 @@ function user_can_richedit() {
|
||||
!$is_iphone && // this includes all Safari mobile browsers
|
||||
( ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 420 ) ||
|
||||
!preg_match( '!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT'] ) )
|
||||
&& 'comment.php' != $pagenow ) {
|
||||
) {
|
||||
$wp_rich_edit = true;
|
||||
} else {
|
||||
$wp_rich_edit = false;
|
||||
|
||||
Reference in New Issue
Block a user