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_editor().
21 function tinymce_include() {
22 _deprecated_function( __FUNCTION__, '2.1', 'wp_editor()' );
28 * Unused Admin function.
34 function documentation_link() {
35 _deprecated_function( __FUNCTION__, '2.5' );
39 * Calculates the new dimensions for a downsampled image.
43 * @deprecated Use wp_constrain_dimensions()
44 * @see 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 array Shrunk dimensions (width, height).
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 * Calculated the new dimensions for a downsampled image.
62 * @deprecated Use wp_constrain_dimensions()
63 * @see wp_constrain_dimensions()
65 * @param int $width Current width of the image
66 * @param int $height Current height of the image
67 * @return array Shrunk dimensions (width, height).
69 function get_udims( $width, $height ) {
70 _deprecated_function( __FUNCTION__, '3.5', 'wp_constrain_dimensions()' );
71 return wp_constrain_dimensions( $width, $height, 128, 96 );
75 * {@internal Missing Short Description}}
79 * @deprecated Use wp_category_checklist()
80 * @see wp_category_checklist()
84 * @param array $popular_ids
86 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
87 _deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' );
89 wp_category_checklist( $post_ID );
93 * {@internal Missing Short Description}}
97 * @deprecated Use wp_link_category_checklist()
98 * @see wp_link_category_checklist()
100 * @param int $default
102 function dropdown_link_categories( $default = 0 ) {
103 _deprecated_function( __FUNCTION__, '2.6', 'wp_link_category_checklist()' );
105 wp_link_category_checklist( $link_id );
109 * Get the real filesystem path to a file to edit within the admin.
113 * @uses WP_CONTENT_DIR Full filesystem path to the wp-content directory.
115 * @param string $file Filesystem path relative to the wp-content directory.
116 * @return string Full filesystem path to edit.
118 function get_real_file_to_edit( $file ) {
119 _deprecated_function( __FUNCTION__, '2.9' );
121 return WP_CONTENT_DIR . $file;
125 * {@internal Missing Short Description}}
129 * @deprecated Use wp_dropdown_categories()
130 * @see wp_dropdown_categories()
132 * @param int $currentcat
133 * @param int $currentparent
136 * @param array $categories
139 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
140 _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' );
142 $categories = get_categories( array('hide_empty' => 0) );
145 foreach ( $categories as $category ) {
146 if ( $currentcat != $category->term_id && $parent == $category->parent) {
147 $pad = str_repeat( '– ', $level );
148 $category->name = esc_html( $category->name );
149 echo "\n\t<option value='$category->term_id'";
150 if ( $currentparent == $category->term_id )
151 echo " selected='selected'";
152 echo ">$pad$category->name</option>";
153 wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories );
162 * Register a setting and its sanitization callback
166 * @deprecated Use register_setting()
167 * @see register_setting()
169 * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
170 * Default whitelisted option key names include "general," "discussion," and "reading," among others.
171 * @param string $option_name The name of an option to sanitize and save.
172 * @param callable $sanitize_callback A callback function that sanitizes the option's value.
174 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
175 _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' );
176 register_setting( $option_group, $option_name, $sanitize_callback );
180 * Unregister a setting
184 * @deprecated Use unregister_setting()
185 * @see unregister_setting()
187 * @param string $option_group
188 * @param string $option_name
189 * @param callable $sanitize_callback
191 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
192 _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' );
193 unregister_setting( $option_group, $option_name, $sanitize_callback );
197 * Determines the language to use for CodePress syntax highlighting.
202 * @param string $filename
204 function codepress_get_lang( $filename ) {
205 _deprecated_function( __FUNCTION__, '3.0' );
209 * Adds JavaScript required to make CodePress work on the theme/plugin editors.
214 function codepress_footer_js() {
215 _deprecated_function( __FUNCTION__, '3.0' );
219 * Determine whether to use CodePress.
224 function use_codepress() {
225 _deprecated_function( __FUNCTION__, '3.0' );
231 * @return array List of user IDs.
233 function get_author_user_ids() {
234 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
237 if ( !is_multisite() )
238 $level_key = $wpdb->get_blog_prefix() . 'user_level';
240 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
242 return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) );
248 * @param int $user_id User ID.
249 * @return array|bool List of editable authors. False if no editable users.
251 function get_editable_authors( $user_id ) {
252 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
256 $editable = get_editable_user_ids( $user_id );
261 $editable = join(',', $editable);
262 $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );
265 return apply_filters('get_editable_authors', $authors);
271 * @param int $user_id User ID.
272 * @param bool $exclude_zeros Optional, default is true. Whether to exclude zeros.
275 function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
276 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
280 if ( ! $user = get_userdata( $user_id ) )
282 $post_type_obj = get_post_type_object($post_type);
284 if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) {
285 if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros )
286 return array($user->ID);
291 if ( !is_multisite() )
292 $level_key = $wpdb->get_blog_prefix() . 'user_level';
294 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
296 $query = $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s", $level_key);
297 if ( $exclude_zeros )
298 $query .= " AND meta_value != '0'";
300 return $wpdb->get_col( $query );
306 function get_nonauthor_user_ids() {
307 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
311 if ( !is_multisite() )
312 $level_key = $wpdb->get_blog_prefix() . 'user_level';
314 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
316 return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) );
319 if ( !class_exists('WP_User_Search') ) :
321 * WordPress User Search class.
326 class WP_User_Search {
329 * {@internal Missing Description}}
338 * {@internal Missing Description}}
356 * Role name that users have.
374 * Amount of users to display per page.
380 var $users_per_page = 50;
383 * {@internal Missing Description}}
392 * {@internal Missing Description}}
401 * {@internal Missing Description}}
410 * {@internal Missing Description}}
419 * {@internal Missing Description}}
428 * {@internal Missing Description}}
437 * {@internal Missing Description}}
443 var $total_users_for_query = 0;
446 * {@internal Missing Description}}
452 var $too_many_total_users = false;
455 * {@internal Missing Description}}
464 * {@internal Missing Description}}
473 * PHP4 Constructor - Sets up the object properties.
477 * @param string $search_term Search terms string.
478 * @param int $page Optional. Page ID.
479 * @param string $role Role name.
480 * @return WP_User_Search
482 function WP_User_Search ($search_term = '', $page = '', $role = '') {
483 _deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' );
485 $this->search_term = wp_unslash( $search_term );
486 $this->raw_page = ( '' == $page ) ? false : (int) $page;
487 $this->page = (int) ( '' == $page ) ? 1 : $page;
490 $this->prepare_query();
496 * {@internal Missing Short Description}}
498 * {@internal Missing Long Description}}
503 function prepare_query() {
505 $this->first_user = ($this->page - 1) * $this->users_per_page;
507 $this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $this->first_user, $this->users_per_page);
508 $this->query_orderby = ' ORDER BY user_login';
511 if ( $this->search_term ) {
513 $search_sql = 'AND (';
514 foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col )
515 $searches[] = $wpdb->prepare( $col . ' LIKE %s', '%' . like_escape($this->search_term) . '%' );
516 $search_sql .= implode(' OR ', $searches);
520 $this->query_from = " FROM $wpdb->users";
521 $this->query_where = " WHERE 1=1 $search_sql";
524 $this->query_from .= " INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id";
525 $this->query_where .= $wpdb->prepare(" AND $wpdb->usermeta.meta_key = '{$wpdb->prefix}capabilities' AND $wpdb->usermeta.meta_value LIKE %s", '%' . $this->role . '%');
526 } elseif ( is_multisite() ) {
527 $level_key = $wpdb->prefix . 'capabilities'; // wpmu site admins don't have user_levels
528 $this->query_from .= ", $wpdb->usermeta";
529 $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'";
532 do_action_ref_array( 'pre_user_search', array( &$this ) );
536 * {@internal Missing Short Description}}
538 * {@internal Missing Long Description}}
546 $this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit);
548 if ( $this->results )
549 $this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // no limit
551 $this->search_errors = new WP_Error('no_matching_users_found', __('No users found.'));
555 * {@internal Missing Short Description}}
557 * {@internal Missing Long Description}}
562 function prepare_vars_for_template_usage() {}
565 * {@internal Missing Short Description}}
567 * {@internal Missing Long Description}}
572 function do_paging() {
573 if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results
575 if( ! empty($this->search_term) )
576 $args['usersearch'] = urlencode($this->search_term);
577 if( ! empty($this->role) )
578 $args['role'] = urlencode($this->role);
580 $this->paging_text = paginate_links( array(
581 'total' => ceil($this->total_users_for_query / $this->users_per_page),
582 'current' => $this->page,
583 'base' => 'users.php?%_%',
584 'format' => 'userspage=%#%',
587 if ( $this->paging_text ) {
588 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
589 number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ),
590 number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ),
591 number_format_i18n( $this->total_users_for_query ),
599 * {@internal Missing Short Description}}
601 * {@internal Missing Long Description}}
608 function get_results() {
609 return (array) $this->results;
613 * Displaying paging text.
615 * @see do_paging() Builds paging text.
620 function page_links() {
621 echo $this->paging_text;
625 * Whether paging is enabled.
627 * @see do_paging() Builds paging text.
634 function results_are_paged() {
635 if ( $this->paging_text )
641 * Whether there are search terms.
648 function is_search() {
649 if ( $this->search_term )
657 * Retrieve editable posts from other users.
661 * @param int $user_id User ID to not retrieve posts from.
662 * @param string $type Optional, defaults to 'any'. Post type to retrieve, can be 'draft' or 'pending'.
663 * @return array List of posts from others.
665 function get_others_unpublished_posts($user_id, $type='any') {
666 _deprecated_function( __FUNCTION__, '3.1' );
670 $editable = get_editable_user_ids( $user_id );
672 if ( in_array($type, array('draft', 'pending')) )
673 $type_sql = " post_status = '$type' ";
675 $type_sql = " ( post_status = 'draft' OR post_status = 'pending' ) ";
677 $dir = ( 'pending' == $type ) ? 'ASC' : 'DESC';
682 $editable = join(',', $editable);
683 $other_unpubs = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_title, post_author FROM $wpdb->posts WHERE post_type = 'post' AND $type_sql AND post_author IN ($editable) AND post_author != %d ORDER BY post_modified $dir", $user_id) );
686 return apply_filters('get_others_drafts', $other_unpubs);
690 * Retrieve drafts from other users.
694 * @param int $user_id User ID.
695 * @return array List of drafts from other users.
697 function get_others_drafts($user_id) {
698 _deprecated_function( __FUNCTION__, '3.1' );
700 return get_others_unpublished_posts($user_id, 'draft');
704 * Retrieve pending review posts from other users.
708 * @param int $user_id User ID.
709 * @return array List of posts with pending review post type from other users.
711 function get_others_pending($user_id) {
712 _deprecated_function( __FUNCTION__, '3.1' );
714 return get_others_unpublished_posts($user_id, 'pending');
718 * Output the QuickPress dashboard widget.
722 * @deprecated Use wp_dashboard_quick_press()
723 * @see wp_dashboard_quick_press()
725 function wp_dashboard_quick_press_output() {
726 _deprecated_function( __FUNCTION__, '3.2', 'wp_dashboard_quick_press()' );
727 wp_dashboard_quick_press();
733 * @deprecated Use wp_editor()
736 function wp_tiny_mce( $teeny = false, $settings = false ) {
737 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
741 if ( ! class_exists('_WP_Editors' ) )
742 require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
744 $editor_id = 'content' . $num++;
748 'tinymce' => $settings ? $settings : true,
752 $set = _WP_Editors::parse_settings($editor_id, $set);
753 _WP_Editors::editor_settings($editor_id, $set);
758 * @deprecated Use wp_editor()
761 function wp_preload_dialogs() {
762 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
767 * @deprecated Use wp_editor()
770 function wp_print_editor_js() {
771 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
776 * @deprecated Use wp_editor()
779 function wp_quicktags() {
780 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
784 * Returns the screen layout options.
788 * @deprecated Use $current_screen->render_screen_layout()
789 * @see WP_Screen::render_screen_layout()
791 function screen_layout( $screen ) {
792 _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_screen_layout()' );
794 $current_screen = get_current_screen();
796 if ( ! $current_screen )
800 $current_screen->render_screen_layout();
801 return ob_get_clean();
805 * Returns the screen's per-page options.
809 * @deprecated Use $current_screen->render_per_page_options()
810 * @see WP_Screen::render_per_page_options()
812 function screen_options( $screen ) {
813 _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_per_page_options()' );
815 $current_screen = get_current_screen();
817 if ( ! $current_screen )
821 $current_screen->render_per_page_options();
822 return ob_get_clean();
826 * Renders the screen's help.
830 * @deprecated Use $current_screen->render_screen_meta()
831 * @see WP_Screen::render_screen_meta()
833 function screen_meta( $screen ) {
834 $current_screen = get_current_screen();
835 $current_screen->render_screen_meta();
839 * Favorite actions were deprecated in version 3.2. Use the admin bar instead.
844 function favorite_actions() {
845 _deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' );
848 function media_upload_image() {
849 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
850 return wp_media_upload_handler();
853 function media_upload_audio() {
854 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
855 return wp_media_upload_handler();
858 function media_upload_video() {
859 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
860 return wp_media_upload_handler();
863 function media_upload_file() {
864 _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
865 return wp_media_upload_handler();
868 function type_url_form_image() {
869 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" );
870 return wp_media_insert_url_form( 'image' );
873 function type_url_form_audio() {
874 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" );
875 return wp_media_insert_url_form( 'audio' );
878 function type_url_form_video() {
879 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" );
880 return wp_media_insert_url_form( 'video' );
883 function type_url_form_file() {
884 _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" );
885 return wp_media_insert_url_form( 'file' );
889 * Add contextual help text for a page.
891 * Creates an 'Overview' help tab.
895 * @deprecated Use get_current_screen()->add_help_tab()
898 * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
899 * @param string $help The content of an 'Overview' help tab.
901 function add_contextual_help( $screen, $help ) {
902 _deprecated_function( __FUNCTION__, '3.3', 'get_current_screen()->add_help_tab()' );
904 if ( is_string( $screen ) )
905 $screen = convert_to_screen( $screen );
907 WP_Screen::add_old_compat_help( $screen, $help );
911 * Get the allowed themes for the current blog.
915 * @deprecated Use wp_get_themes()
916 * @see wp_get_themes()
918 * @return array $themes Array of allowed themes.
920 function get_allowed_themes() {
921 _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'allowed' => true ) )" );
923 $themes = wp_get_themes( array( 'allowed' => true ) );
925 $wp_themes = array();
926 foreach ( $themes as $theme ) {
927 $wp_themes[ $theme->get('Name') ] = $theme;
934 * {@internal Missing Short Description}}
941 function get_broken_themes() {
942 _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'errors' => true )" );
944 $themes = wp_get_themes( array( 'errors' => true ) );
946 foreach ( $themes as $theme ) {
947 $name = $theme->get('Name');
948 $broken[ $name ] = array(
951 'Description' => $theme->errors()->get_error_message(),
958 * {@internal Missing Short Description}}
965 function current_theme_info() {
966 _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
968 return wp_get_theme();
972 * This was once used to display an 'Insert into Post' button. Now it is deprecated and stubbed.
976 function _insert_into_post_button( $type ) {
977 _deprecated_function( __FUNCTION__, '3.5' );
981 * This was once used to display a media button. Now it is deprecated and stubbed.
985 function _media_button($title, $icon, $type, $id) {
986 _deprecated_function( __FUNCTION__, '3.5' );
990 * Get an existing post and format it for editing.
998 function get_post_to_edit( $id ) {
999 _deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
1001 return get_post( $id, OBJECT, 'edit' );
1005 * Get the default page information to use.
1009 * @deprecated Use get_default_post_to_edit()
1011 * @return WP_Post Post object containing all the default post data as attributes
1013 function get_default_page_to_edit() {
1014 _deprecated_function( __FUNCTION__, '3.5', "get_default_post_to_edit( 'page' )" );
1016 $page = get_default_post_to_edit();
1017 $page->post_type = 'page';
1022 * This was once used to create a thumbnail from an Image given a maximum side size.
1026 * @deprecated Use image_resize()
1027 * @see image_resize()
1029 * @param mixed $file Filename of the original image, Or attachment id.
1030 * @param int $max_side Maximum length of a single side for the thumbnail.
1031 * @param mixed $deprecated Never used.
1032 * @return string Thumbnail path on success, Error string on failure.
1034 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
1035 _deprecated_function( __FUNCTION__, '3.5', 'image_resize()' );
1036 return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
1040 * This was once used to display a metabox for the nav menu theme locations.
1042 * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen.
1047 function wp_nav_menu_locations_meta_box() {
1048 _deprecated_function( __FUNCTION__, '3.6' );
1052 * This was once used to kick-off the Core Updater.
1054 * Deprecated in favor of instantating a Core_Upgrader instance directly,
1055 * and calling the 'upgrade' method.
1059 * @see Core_Upgrader
1061 function wp_update_core($current, $feedback = '') {
1062 _deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' );
1064 if ( !empty($feedback) )
1065 add_filter('update_feedback', $feedback);
1067 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
1068 $upgrader = new Core_Upgrader();
1069 return $upgrader->upgrade($current);
1074 * This was once used to kick-off the Plugin Updater.
1076 * Deprecated in favor of instantating a Plugin_Upgrader instance directly,
1077 * and calling the 'upgrade' method.
1078 * Unused since 2.8.0.
1082 * @see Plugin_Upgrader
1084 function wp_update_plugin($plugin, $feedback = '') {
1085 _deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' );
1087 if ( !empty($feedback) )
1088 add_filter('update_feedback', $feedback);
1090 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
1091 $upgrader = new Plugin_Upgrader();
1092 return $upgrader->upgrade($plugin);
1096 * This was once used to kick-off the Theme Updater.
1098 * Deprecated in favor of instantating a Theme_Upgrader instance directly,
1099 * and calling the 'upgrade' method.
1100 * Unused since 2.8.0.
1104 * @see Theme_Upgrader
1106 function wp_update_theme($theme, $feedback = '') {
1107 _deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' );
1109 if ( !empty($feedback) )
1110 add_filter('update_feedback', $feedback);
1112 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
1113 $upgrader = new Theme_Upgrader();
1114 return $upgrader->upgrade($theme);
1118 * This was once used to display attachment links. Now it is deprecated and stubbed.
1120 * {@internal Missing Short Description}}
1125 * @param int|bool $id
1127 function the_attachment_links( $id = false ) {
1128 _deprecated_function( __FUNCTION__, '3.7' );
1132 * Displays a screen icon.
1135 * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output.
1138 function screen_icon() {
1139 echo get_screen_icon();
1141 function get_screen_icon() {
1142 return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
1147 * Deprecated dashboard widget controls.
1152 function wp_dashboard_incoming_links_output() {}
1153 function wp_dashboard_secondary_output() {}
1157 * Deprecated dashboard widget controls.
1162 function wp_dashboard_incoming_links() {}
1163 function wp_dashboard_incoming_links_control() {}
1164 function wp_dashboard_plugins() {}
1165 function wp_dashboard_primary_control() {}
1166 function wp_dashboard_recent_comments_control() {}
1167 function wp_dashboard_secondary() {}
1168 function wp_dashboard_secondary_control() {}
1172 * This was once used to move child posts to a new parent.
1178 * @param int $old_ID
1179 * @param int $new_ID
1181 function _relocate_children( $old_ID, $new_ID ) {
1182 _deprecated_function( __FUNCTION__, '3.9' );