From 659852f4d4a6da8a8147d4fe73cd55a4e83d2264 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 21 Sep 2006 10:47:51 +0000 Subject: WP Merge to rev 4201 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@763 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/functions.php | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'wp-includes/functions.php') diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1401b7b..1bd1487 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1131,6 +1131,12 @@ function wp_die($message, $title = '') { if ( empty($title) ) $title = __('WordPress › Error'); + + if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') ) + $logo_src = 'images/wordpress-logo.png'; + else + $logo_src = 'wp-admin/images/wordpress-logo.png'; + ?> @@ -1176,7 +1182,7 @@ function wp_die($message, $title = '') { -

WordPress

+

WordPress

@@ -1185,4 +1191,28 @@ function wp_die($message, $title = '') { die(); } +function _mce_set_direction() { + global $wp_locale; + if ('rtl' == $wp_locale->text_direction) + echo 'directionality : "rtl" ,'; +} + +function _mce_load_rtl_plugin($input) { + global $wp_locale; + if ('rtl' == $wp_locale->text_direction) + $input[] = 'directionality'; + + return $input; +} + +function _mce_add_direction_buttons($input) { + global $wp_locale; + if ('rtl' == $wp_locale->text_direction) { + $new_buttons = array('separator', 'ltr', 'rtl'); + $input = array_merge($input, $new_buttons); + } + + return $input; +} + ?> -- cgit