Make WordPress Core

Changeset 11609


Ignore:
Timestamp:
06/19/2009 06:58:39 PM (15 years ago)
Author:
westi
Message:

Make it easier for plugins to add extra fields to the Edit Category/Tag forms. Fixes #8831 for 2.8.1 props Denis-de-Bernardy

Location:
branches/2.8/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/edit-category-form.php

    r11511 r11609  
    7070            <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    7171        </tr>
     72        <?php do_action('edit_category_form_fields', $category); ?>
    7273    </table>
    7374<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Category'); ?>" /></p>
  • branches/2.8/wp-admin/edit-link-category-form.php

    r11204 r11609  
    7575            <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td>
    7676        </tr>
     77        <?php do_action('edit_link_category_form_fields', $category); ?>
    7778    </table>
    7879<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr($submit_text) ?>" /></p>
  • branches/2.8/wp-admin/edit-tag-form.php

    r11511 r11609  
    4040            <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    4141        </tr>
     42        <?php do_action('edit_tag_form_fields', $tag); ?>
    4243    </table>
    4344<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Tag'); ?>" /></p>
Note: See TracChangeset for help on using the changeset viewer.