WordPress.org

Make WordPress Core

Changeset 4595


Ignore:
Timestamp:
12/04/2006 12:48:03 AM (11 years ago)
Author:
ryan
Message:

Hooks needed to allow alternate category admin inteface. Props alexkingorg. fixes #3408

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4583 r4595  
    717717
    718718    if ( $categories ) {
     719        ob_start();
    719720        foreach ( $categories as $category ) {
    720721            if ( $category->category_parent == $parent) {
     
    723724            }
    724725        }
     726        $output = ob_get_contents();
     727        ob_end_clean();
     728       
     729        $output = apply_filters('cat_rows', $output);
     730
     731        echo $output;
    725732    } else {
    726733        return false;
  • trunk/wp-admin/edit-category-form.php

    r4583 r4595  
    66    $action = 'editedcat';
    77    $nonce_action = 'update-category_' . $cat_ID;
     8    do_action('edit_category_form_pre', $category);
    89} else {
    910    $heading = __('Add Category');
     
    1213    $action = 'addcat';
    1314    $nonce_action = 'add-category';
     15    do_action('add_category_form_pre', $category);
    1416}
    1517?>
Note: See TracChangeset for help on using the changeset viewer.