diff -urN wordpress/wp-admin/categories.php site/wp-admin/categories.php
|
old
|
new
|
|
| 126 | 126 | <?php endif; ?> |
| 127 | 127 | |
| 128 | 128 | <p id="post-search"> |
| 129 | | <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> |
| | 129 | <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes( @ $_GET['s'] )); ?>" /> |
| 130 | 130 | <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" /> |
| 131 | 131 | </p> |
| 132 | 132 | |
diff -urN wordpress/wp-admin/edit-category-form.php site/wp-admin/edit-category-form.php
|
old
|
new
|
|
| 12 | 12 | $form = '<form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: validate">'; |
| 13 | 13 | $action = 'addcat'; |
| 14 | 14 | $nonce_action = 'add-category'; |
| | 15 | if ( ! isset( $category ) ) $category = null; |
| 15 | 16 | do_action('add_category_form_pre', $category); |
| 16 | 17 | } |
| 17 | 18 | ?> |
| … |
… |
|
| 21 | 22 | <div id="ajax-response"></div> |
| 22 | 23 | <?php echo $form ?> |
| 23 | 24 | <input type="hidden" name="action" value="<?php echo $action ?>" /> |
| 24 | | <input type="hidden" name="cat_ID" value="<?php echo $category->term_id ?>" /> |
| | 25 | <input type="hidden" name="cat_ID" value="<?php echo @ $category->term_id ?>" /> |
| 25 | 26 | <?php wp_nonce_field($nonce_action); ?> |
| 26 | 27 | <table class="form-table"> |
| 27 | 28 | <tr class="form-field form-required"> |
| 28 | 29 | <th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th> |
| 29 | | <td><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape($category->name); ?>" size="40" /><br /> |
| | 30 | <td><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape( @ $category->name ); ?>" size="40" /><br /> |
| 30 | 31 | <?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></td> |
| 31 | 32 | </tr> |
| 32 | 33 | <tr class="form-field"> |
| 33 | 34 | <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th> |
| 34 | | <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape($category->slug); ?>" size="40" /><br /> |
| | 35 | <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape( @ $category->slug ); ?>" size="40" /><br /> |
| 35 | 36 | <?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td> |
| 36 | 37 | </tr> |
| 37 | 38 | <tr class="form-field"> |
| 38 | 39 | <th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th> |
| 39 | 40 | <td> |
| 40 | | <?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->parent . '&hierarchical=1&show_option_none=' . __('None')); ?><br /> |
| | 41 | <?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . @ $category_parent . '&hierarchical=1&show_option_none=' . __('None')); ?><br /> |
| 41 | 42 | <?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?> |
| 42 | 43 | </td> |
| 43 | 44 | </tr> |
| 44 | 45 | <tr class="form-field"> |
| 45 | 46 | <th scope="row" valign="top"><label for="category_description"><?php _e('Description') ?></label></th> |
| 46 | | <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->description); ?></textarea><br /> |
| | 47 | <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars( @ $category->description); ?></textarea><br /> |
| 47 | 48 | <?php _e('The description is not prominent by default, however some themes may show it.'); ?></td> |
| 48 | 49 | </tr> |
| 49 | 50 | </table> |