From f9d834aed9c0c6cba6faf7777e7952bf2cd8e4a5 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 31 Aug 2005 09:50:02 +0000 Subject: WP Core Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@261 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-admin/admin-functions.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'wp-inst/wp-admin/admin-functions.php') diff --git a/wp-inst/wp-admin/admin-functions.php b/wp-inst/wp-admin/admin-functions.php index 1a5c8cc..c23d5d0 100644 --- a/wp-inst/wp-admin/admin-functions.php +++ b/wp-inst/wp-admin/admin-functions.php @@ -264,7 +264,8 @@ function wp_insert_category($catarr) { do_action('edit_category', $cat_ID); } else { $rval = $wpdb->insert_id; - do_action('create_category', $cat_ID); + do_action('create_category', $rval); + do_action('add_category', $rval); } list( $update, $cat_ID, $category_nicename, $cat_name, $rval ) = apply_filters( "new_category", $update, $cat_ID, $category_nicename, $cat_name, $rval ); @@ -443,12 +444,12 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) { $count = $wpdb->get_var("SELECT COUNT(post_id) FROM $wpdb->post2cat WHERE category_id = $category->cat_ID"); $pad = str_repeat('— ', $level); if ( current_user_can('manage_categories') ) - $edit = "" . __('Edit') . "escape($category->cat_name)) . "')\" class='delete'>" . __('Delete') . ""; + $edit = "" . __('Edit') . "cat_ID, '" . sprintf(__("You are about to delete the category "%s". All of its posts will go to the default category.\\n"OK" to delete, "Cancel" to stop."), wp_specialchars($category->cat_name, 1)) . "' );\" class='delete'>" . __('Delete') . ""; else $edit = ''; $class = ('alternate' == $class) ? '' : 'alternate'; - echo "$category->cat_ID$pad $category->cat_name + echo "$category->cat_ID$pad $category->cat_name $category->category_description $count $edit @@ -474,7 +475,7 @@ function page_rows( $parent = 0, $level = 0, $pages = 0 ) { $id = $post->ID; $class = ('alternate' == $class) ? '' : 'alternate'; ?> - + ID; ?> @@ -483,7 +484,7 @@ function page_rows( $parent = 0, $level = 0, $pages = 0 ) { post_modified); ?> " . __('Edit') . ""; } ?> - " . __('Delete') . ""; } ?> + " . __('Delete') . ""; } ?> __('Main Index Template'), 'style.css' => __('Stylesheet'), - 'comments.php' => __('Comments Template'), - 'comments-popup.php' => __('Popup Comments Template'), - 'footer.php' => __('Footer Template'), - 'header.php' => __('Header Template'), - 'sidebar.php' => __('Sidebar Template'), - 'archive.php' => __('Archive Template'), + 'comments.php' => __('Comments'), + 'comments-popup.php' => __('Popup Comments'), + 'footer.php' => __('Footer'), + 'header.php' => __('Header'), + 'sidebar.php' => __('Sidebar'), + 'archive.php' => __('Archives'), 'category.php' => __('Category Template'), 'page.php' => __('Page Template'), - 'search.php' => __('Search Template'), - 'single.php' => __('Post Template'), + 'search.php' => __('Search Results'), + 'single.php' => __('Single Post'), '404.php' => __('404 Template'), 'my-hacks.php' => __('my-hacks.php (legacy hacks support)'), '.htaccess' => __('.htaccess (for rewrite rules)'), -- cgit