diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 5d84cb1388..5a57316279 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -110,6 +110,32 @@ tinyMCE.init({ + diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index fab4f20cd6..81018a6d88 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -89,8 +89,10 @@ addLoadEvent(focusit);
-

-
+

+
+

+
diff --git a/wp-admin/edit-form-ajax-cat.php b/wp-admin/edit-form-ajax-cat.php index 5debf95f9b..d023f94637 100644 --- a/wp-admin/edit-form-ajax-cat.php +++ b/wp-admin/edit-form-ajax-cat.php @@ -12,13 +12,26 @@ function get_out_now() { exit; } add_action('shutdown', 'get_out_now', -1); -$cat_name = rawurldecode($_GET['ajaxnewcat']); +$names = explode(',', rawurldecode($_GET['ajaxnewcat']) ); +$ids = array(); -if ( !$category_nicename = sanitize_title($cat_name) ) - die('0'); -if ( $already = category_exists($cat_name) ) - die((string) $already); +foreach ($names as $cat_name) { + $cat_name = trim( $cat_name ); + + if ( !$category_nicename = sanitize_title($cat_name) ) + continue; + if ( $already = category_exists($cat_name) ) { + $ids[] = (string) $already; + continue; + } + + $new_cat_id = wp_create_category($cat_name); + + $ids[] = (string) $new_cat_id; +} -$new_cat_id = wp_create_category($cat_name); -die((string) $new_cat_id); -?> +$return = join(',', $ids); + +die( (string) $return ); + +?> \ No newline at end of file diff --git a/wp-admin/menu.php b/wp-admin/menu.php index bd0fd4500a..3e2b375b9c 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -17,9 +17,6 @@ else $menu[40] = array(__('Options'), 'read', 'options-general.php'); $menu[45] = array(__('Import'), 'import', 'import.php'); -if ( get_option('use_fileupload') ) - $menu[50] = array(__('Upload'), 'upload_files', 'upload.php'); - $submenu['post.php'][5] = array(__('Write Post'), 'edit_posts', 'post.php'); $submenu['post.php'][10] = array(__('Write Page'), 'edit_pages', 'page-new.php'); diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index f384c9d3fb..15c6d6753f 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -189,7 +189,7 @@ textarea, input, select { .available-theme a.screenshot { width: 250px; height: 200px; - display: inline-block; + display: block; margin: auto; background: #f1f1f1; border: 1px solid #ccc; @@ -817,7 +817,7 @@ a.dbx-toggle, a.dbx-toggle:visited { position: absolute; top: 10px; right: 14px; - background-repeat: none; + background-repeat: no-repeat; border-bottom: 0; background-position: 0 9px; }