WordPress.org

Make WordPress Core

Ticket #9656: 9656.diff

File 9656.diff, 2.4 KB (added by Denis-de-Bernardy, 9 years ago)

format_to_edit for category, tag, and user description

  • wp-admin/edit-link-category-form.php

     
    7272                </tr>
    7373                <tr class="form-field">
    7474                        <th scope="row" valign="top"><label for="description"><?php _e('Description (optional)') ?></label></th>
    75                         <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td>
     75                        <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo format_to_edit($category->description); ?></textarea></td>
    7676                </tr>
    7777        </table>
    7878<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr($submit_text) ?>" /></p>
  • wp-admin/edit-tag-form.php

     
    3636                </tr>
    3737                <tr class="form-field">
    3838                        <th scope="row" valign="top"><label for="description"><?php _e('Description') ?></label></th>
    39                         <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($tag->description); ?></textarea><br />
     39                        <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo format_to_edit($tag->description); ?></textarea><br />
    4040            <?php _e('The description is not prominent by default, however some themes may show it.'); ?></td>
    4141                </tr>
    4242        </table>
  • wp-admin/user-edit.php

     
    346346<table class="form-table">
    347347<tr>
    348348        <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
    349         <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea><br /><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></td>
     349        <td><textarea name="description" id="description" rows="5" cols="30"><?php echo format_to_edit($profileuser->description) ?></textarea><br /><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></td>
    350350</tr>
    351351
    352352<?php