diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-06 14:21:51 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-06 14:21:51 +0000 |
commit | aa3b3b4a557f0d59d76a479a4f9d843a09eb0a33 (patch) | |
tree | 8c5de869a40c37cd5ca2f74d4f2b758c48f11edd /wp-admin/edit-form-ajax-cat.php | |
parent | a5b29f6db23d18f819bb6676d05863dcd7504eb9 (diff) | |
download | wordpress-mu-aa3b3b4a557f0d59d76a479a4f9d843a09eb0a33.tar.gz wordpress-mu-aa3b3b4a557f0d59d76a479a4f9d843a09eb0a33.tar.xz wordpress-mu-aa3b3b4a557f0d59d76a479a4f9d843a09eb0a33.zip |
Don't need this any more
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@794 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/edit-form-ajax-cat.php')
-rw-r--r-- | wp-admin/edit-form-ajax-cat.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/wp-admin/edit-form-ajax-cat.php b/wp-admin/edit-form-ajax-cat.php deleted file mode 100644 index 4a4665c..0000000 --- a/wp-admin/edit-form-ajax-cat.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -require_once('../wp-config.php'); -require_once('admin-functions.php'); -require_once('admin-db.php'); - -get_currentuserinfo(); - -if ( !current_user_can('manage_categories') ) - die('-1'); - -function get_out_now() { exit; } - -add_action('shutdown', 'get_out_now', -1); - -$names = explode(',', rawurldecode($_GET['ajaxnewcat']) ); -$ids = array(); - -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; -} - -$return = join(',', $ids); - -die( (string) $return ); - -?> |