Changeset 8944 for trunk/wp-admin/edit-category-form.php
- Timestamp:
- 09/21/2008 08:41:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-category-form.php
r8656 r8944 6 6 * @subpackage Administration 7 7 */ 8 9 /** 10 * @var object 11 */ 12 if ( ! isset( $category ) ) 13 $category = (object) array(); 8 14 9 15 if ( ! empty($cat_ID) ) { … … 25 31 do_action('add_category_form_pre', $category); 26 32 } 33 34 /** 35 * @ignore 36 * @since 2.7 37 * @internal Used to prevent errors in page when no category is being edited. 38 * 39 * @param object $category 40 */ 41 function _fill_empty_category(&$category) { 42 if ( ! isset( $category->name ) ) 43 $category->name = ''; 44 45 if ( ! isset( $category->slug ) ) 46 $category->slug = ''; 47 48 if ( ! isset( $category->parent ) ) 49 $category->parent = ''; 50 51 if ( ! isset( $category->description ) ) 52 $category->description = ''; 53 } 54 55 _fill_empty_category($category); 27 56 ?> 28 57
Note: See TracChangeset
for help on using the changeset viewer.