]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/edit-category-form.php
Wordpress 2.8.5-scripts
[autoinstalls/wordpress.git] / wp-admin / edit-category-form.php
index 02289aa5c255334d5adb6e31fbdc1d20562324cb..27417f6bace0ded8324fccf03a7a6a7b2b23f299 100644 (file)
@@ -6,6 +6,13 @@
  * @subpackage Administration
  */
 
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
+
+if ( !current_user_can('manage_categories') )
+       wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
+
 /**
  * @var object
  */
@@ -69,6 +76,7 @@ _fill_empty_category($category);
                        <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($category->description); ?></textarea><br />
             <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
                </tr>
+               <?php do_action('edit_category_form_fields', $category); ?>
        </table>
 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Category'); ?>" /></p>
 <?php do_action('edit_category_form', $category); ?>