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:
parent
ddad3fa4a5
commit
00f1078629
|
@ -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 />
|
<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>
|
<span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php do_action('edit_category_form_fields', $category); ?>
|
||||||
</table>
|
</table>
|
||||||
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Category'); ?>" /></p>
|
<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); ?>
|
<?php do_action('edit_category_form', $category); ?>
|
||||||
|
|
|
@ -74,6 +74,7 @@ _fill_empty_link_category($category);
|
||||||
<th scope="row" valign="top"><label for="description"><?php _e('Description (optional)') ?></label></th>
|
<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>
|
<td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php do_action('edit_link_category_form_fields', $category); ?>
|
||||||
</table>
|
</table>
|
||||||
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr($submit_text) ?>" /></p>
|
<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); ?>
|
<?php do_action('edit_link_category_form', $category); ?>
|
||||||
|
|
|
@ -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 />
|
<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>
|
<span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php do_action('edit_tag_form_fields', $tag); ?>
|
||||||
</table>
|
</table>
|
||||||
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Tag'); ?>" /></p>
|
<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); ?>
|
<?php do_action('edit_tag_form', $tag); ?>
|
||||||
|
|
Loading…
Reference in New Issue