Add missing preg delimiter. see #4241

git-svn-id: https://develop.svn.wordpress.org/trunk@5433 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-05-10 16:37:44 +00:00
parent 31e7b5be08
commit 7073026058
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ function user_can_richedit() {
if ( !isset( $wp_rich_edit) ) { if ( !isset( $wp_rich_edit) ) {
if ( get_user_option( 'rich_editing' ) == 'true' && if ( get_user_option( 'rich_editing' ) == 'true' &&
( ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 420 ) || ( ( 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'] ) ) ) { !preg_match( '!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT'] ) ) ) {
$wp_rich_edit = true; $wp_rich_edit = true;
} else { } else {
$wp_rich_edit = false; $wp_rich_edit = false;