Make WordPress Core


Ignore:
Timestamp:
12/21/2006 10:10:04 AM (20 years ago)
Author:
markjaquith
Message:

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/categories.php

    r4470 r4656  
    7070                <tr>
    7171                  <th width="33%" scope="row"><?php _e('Category name:') ?></th>
    72                   <td width="67%"><input name="cat_name" type="text" value="<?php echo wp_specialchars($category->cat_name); ?>" size="40" /> <input type="hidden" name="action" value="editedcat" />
     72                  <td width="67%"><input name="cat_name" type="text" value="<?php echo attribute_escape($category->cat_name); ?>" size="40" /> <input type="hidden" name="action" value="editedcat" />
    7373<input type="hidden" name="cat_ID" value="<?php echo $category->cat_ID ?>" /></td>
    7474                </tr>
    7575                <tr>
    7676                        <th scope="row"><?php _e('Category slug:') ?></th>
    77                         <td><input name="category_nicename" type="text" value="<?php echo wp_specialchars($category->category_nicename); ?>" size="40" /></td>
     77                        <td><input name="category_nicename" type="text" value="<?php echo attribute_escape($category->category_nicename); ?>" size="40" /></td>
    7878                </tr>
    7979                <tr>
    … …  
    8787                <tr>
    8888                        <th scope="row"><?php _e('Description:') ?></th>
    89                         <td><textarea name="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->category_description, 1); ?></textarea></td>
     89                        <td><textarea name="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->category_description); ?></textarea></td>
    9090                </tr>
    9191                </table>
Note: See TracChangeset for help on using the changeset viewer.