Changeset 13097 for trunk/wp-admin/includes/deprecated.php
- Timestamp:
- 02/13/2010 07:42:02 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/deprecated.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/deprecated.php
r12871 r13097 55 55 } 56 56 57 /** 58 * {@internal Missing Short Description}} 59 * 60 * @since unknown 61 * @deprecated unknown 62 * @deprecated Use wp_category_checklist() 63 * @see wp_category_checklist() 64 * 65 * @param unknown_type $default 66 * @param unknown_type $parent 67 * @param unknown_type $popular_ids 68 */ 69 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { 70 _deprecated_function( __FUNCTION__, '0.0', 'wp_category_checklist()' ); 71 global $post_ID; 72 wp_category_checklist( $post_ID ); 73 } 74 75 /** 76 * {@internal Missing Short Description}} 77 * 78 * @since unknown 79 * @deprecated unknown 80 * @deprecated Use wp_link_category_checklist() 81 * @see wp_link_category_checklist() 82 * 83 * @param unknown_type $default 84 */ 85 function dropdown_link_categories( $default = 0 ) { 86 _deprecated_function( __FUNCTION__, '0.0', 'wp_link_category_checklist()' ); 87 global $link_id; 88 wp_link_category_checklist( $link_id ); 89 } 90 91 /** 92 * {@internal Missing Short Description}} 93 * 94 * @since unknown 95 * @deprecated 3.0.0 96 * @deprecated Use wp_dropdown_categories() 97 * @see wp_dropdown_categories() 98 * 99 * @param unknown_type $currentcat 100 * @param unknown_type $currentparent 101 * @param unknown_type $parent 102 * @param unknown_type $level 103 * @param unknown_type $categories 104 * @return unknown 105 */ 106 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { 107 _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' ); 108 if (!$categories ) 109 $categories = get_categories( array('hide_empty' => 0) ); 110 111 if ( $categories ) { 112 foreach ( $categories as $category ) { 113 if ( $currentcat != $category->term_id && $parent == $category->parent) { 114 $pad = str_repeat( '– ', $level ); 115 $category->name = esc_html( $category->name ); 116 echo "\n\t<option value='$category->term_id'"; 117 if ( $currentparent == $category->term_id ) 118 echo " selected='selected'"; 119 echo ">$pad$category->name</option>"; 120 wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories ); 121 } 122 } 123 } else { 124 return false; 125 } 126 } 127 57 128 ?>
Note: See TracChangeset
for help on using the changeset viewer.