WordPress.org

Make WordPress Core

Changeset 18078


Ignore:
Timestamp:
05/31/11 05:05:42 (4 years ago)
Author:
dd32
Message:

Correct the logic for Taxonomy edit page actions. Props michaeltyson for initial patch. Fixes #17617

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tag-form.php

    r17141 r18078  
    6969        if ( 'category' == $taxonomy ) 
    7070            do_action('edit_category_form_fields', $tag); 
    71         if ( 'link_category' == $taxonomy ) 
     71        elseif ( 'link_category' == $taxonomy ) 
    7272            do_action('edit_link_category_form_fields', $tag); 
    7373        else 
     
    8181if ( 'category' == $taxonomy ) 
    8282    do_action('edit_category_form', $tag); 
    83 if ( 'link_category' == $taxonomy ) 
     83elseif ( 'link_category' == $taxonomy ) 
    8484    do_action('edit_link_category_form', $tag); 
    8585else 
Note: See TracChangeset for help on using the changeset viewer.