WordPress.org

Make WordPress Core

Ticket #9656: 9656.patch

File 9656.patch, 849 bytes (added by hakre, 5 years ago)

format_to_edit vs. wp_specialchars.

  • 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 attr($submit_text) ?>" /></p>