diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index fd1372c600..0c3bea07c5 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -1,21 +1,12 @@ ?'; - return $s; -} - -if (!isset($blogID)) $blog_ID=1; -if (!isset($debug)) $debug=0; - -$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE 1=1"); +$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories"); foreach ($dogs as $catt) { - $cache_categories[$catt->cat_ID] = $catt; + $cache_categories[$catt->cat_ID] = $catt; } get_currentuserinfo(); @@ -23,12 +14,8 @@ get_currentuserinfo(); $posts_per_page = get_settings('posts_per_page'); $what_to_show = get_settings('what_to_show'); $archive_mode = get_settings('archive_mode'); -$date_format = stripslashes(get_settings('date_format')); -$time_format = stripslashes(get_settings('time_format')); - -// let's deactivate quicktags on IE Mac and Lynx, because they don't work there. -if (($is_macIE) || ($is_lynx)) - $use_quicktags = 0; +$date_format = get_settings('date_format'); +$time_format = get_settings('time_format'); $wpvarstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback'); for ($i=0; $i -