From cf9f85dc8121a359d550ffa3b735fb48859eee88 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 24 Apr 2008 11:45:39 +0000 Subject: Merged with WP 2.5, revision 7806 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1260 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/admin-ajax.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'wp-admin/admin-ajax.php') diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 13a869e..4e34333 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -162,9 +162,8 @@ case 'add-category' : // On the Fly if ( $parent ) // Do these all at once in a second continue; $category = get_category( $cat_id ); - $checked_categories[] = $cat_id; ob_start(); - dropdown_categories( 0, $category ); + wp_category_checklist( 0, $cat_id, $checked_categories ); $data = ob_get_contents(); ob_end_clean(); $x->add( array( @@ -434,7 +433,7 @@ case 'add-meta' : break; case 'add-user' : check_ajax_referer( $action ); - if ( !current_user_can('edit_users') ) + if ( !current_user_can('create_users') ) die('-1'); require_once(ABSPATH . WPINC . '/registration.php'); if ( !$user_id = add_user() ) -- cgit