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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-06-19 18:56:28 +00:00
parent ddad3fa4a5
commit 00f1078629
3 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,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); ?>

View File

@ -74,6 +74,7 @@ _fill_empty_link_category($category);
<th scope="row" valign="top"><label for="description"><?php _e('Description (optional)') ?></label></th>
<td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td>
</tr>
<?php do_action('edit_link_category_form_fields', $category); ?>
</table>
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr($submit_text) ?>" /></p>
<?php do_action('edit_link_category_form', $category); ?>

View File

@ -39,6 +39,7 @@ do_action('edit_tag_form_pre', $tag); ?>
<td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($tag->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_tag_form_fields', $tag); ?>
</table>
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Tag'); ?>" /></p>
<?php do_action('edit_tag_form', $tag); ?>