3 * Deprecated admin functions from past WordPress versions. You shouldn't use these
4 * functions and look for the alternatives instead. The functions will be removed
8 * @subpackage Deprecated
12 * Deprecated functions come here to die.
18 * @deprecated Use wp_tiny_mce().
21 function tinymce_include() {
22 _deprecated_function( __FUNCTION__, '2.1', 'wp_tiny_mce()' );
28 * Unused Admin function.
34 function documentation_link() {
35 _deprecated_function( __FUNCTION__, '2.5', '' );
40 * Calculates the new dimentions for a downsampled image.
44 * @deprecated Use wp_constrain_dimensions()
46 * @param int $width Current width of the image
47 * @param int $height Current height of the image
48 * @param int $wmax Maximum wanted width
49 * @param int $hmax Maximum wanted height
50 * @return mixed Array(height,width) of shrunk dimensions.
52 function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
53 _deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' );
54 return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
58 * {@internal Missing Short Description}}
62 * @deprecated Use wp_category_checklist()
63 * @see wp_category_checklist()
65 * @param unknown_type $default
66 * @param unknown_type $parent
67 * @param unknown_type $popular_ids
69 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
70 _deprecated_function( __FUNCTION__, '0.0', 'wp_category_checklist()' );
72 wp_category_checklist( $post_ID );
76 * {@internal Missing Short Description}}
80 * @deprecated Use wp_link_category_checklist()
81 * @see wp_link_category_checklist()
83 * @param unknown_type $default
85 function dropdown_link_categories( $default = 0 ) {
86 _deprecated_function( __FUNCTION__, '0.0', 'wp_link_category_checklist()' );
88 wp_link_category_checklist( $link_id );
92 * {@internal Missing Short Description}}
96 * @deprecated Use wp_dropdown_categories()
97 * @see wp_dropdown_categories()
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
106 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
107 _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' );
109 $categories = get_categories( array('hide_empty' => 0) );
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 );
129 * Register a setting and its sanitization callback
133 * @deprecated Use register_setting()
134 * @see register_setting()
136 * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
137 * Default whitelisted option key names include "general," "discussion," and "reading," among others.
138 * @param string $option_name The name of an option to sanitize and save.
139 * @param unknown_type $sanitize_callback A callback function that sanitizes the option's value.
142 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
143 _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' );
144 return register_setting( $option_group, $option_name, $sanitize_callback );
148 * Unregister a setting
152 * @deprecated Use unregister_setting()
153 * @see unregister_setting()
155 * @param unknown_type $option_group
156 * @param unknown_type $option_name
157 * @param unknown_type $sanitize_callback
160 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
161 _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' );
162 return unregister_setting( $option_group, $option_name, $sanitize_callback );
166 * Determines the language to use for CodePress syntax highlighting.
171 * @param string $filename
173 function codepress_get_lang( $filename ) {
174 _deprecated_function( __FUNCTION__, '3.0' );
179 * Adds Javascript required to make CodePress work on the theme/plugin editors.
184 function codepress_footer_js() {
185 _deprecated_function( __FUNCTION__, '3.0' );
190 * Determine whether to use CodePress.
195 function use_codepress() {
196 _deprecated_function( __FUNCTION__, '3.0' );