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' );
40 * Calculates the new dimensions for a downsampled image.
44 * @deprecated Use wp_constrain_dimensions()
45 * @see wp_constrain_dimensions()
47 * @param int $width Current width of the image
48 * @param int $height Current height of the image
49 * @param int $wmax Maximum wanted width
50 * @param int $hmax Maximum wanted height
51 * @return array Shrunk dimensions (width, height).
53 function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
54 _deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' );
55 return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
59 * Calculated the new dimensions for a downsampled image.
63 * @deprecated Use wp_constrain_dimensions()
64 * @see wp_constrain_dimensions()
66 * @param int $width Current width of the image
67 * @param int $height Current height of the image
68 * @return array Shrunk dimensions (width, height).
70 function get_udims( $width, $height ) {
71 _deprecated_function( __FUNCTION__, '3.5', 'wp_constrain_dimensions()' );
72 return wp_constrain_dimensions( $width, $height, 128, 96 );
76 * {@internal Missing Short Description}}
80 * @deprecated Use wp_category_checklist()
81 * @see wp_category_checklist()
83 * @param unknown_type $default
84 * @param unknown_type $parent
85 * @param unknown_type $popular_ids
87 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
88 _deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' );
90 wp_category_checklist( $post_ID );
94 * {@internal Missing Short Description}}
98 * @deprecated Use wp_link_category_checklist()
99 * @see wp_link_category_checklist()
101 * @param unknown_type $default
103 function dropdown_link_categories( $default = 0 ) {
104 _deprecated_function( __FUNCTION__, '2.6', 'wp_link_category_checklist()' );
106 wp_link_category_checklist( $link_id );
110 * Get the real filesystem path to a file to edit within the admin.
114 * @uses WP_CONTENT_DIR Full filesystem path to the wp-content directory.
116 * @param string $file Filesystem path relative to the wp-content directory.
117 * @return string Full filesystem path to edit.
119 function get_real_file_to_edit( $file ) {
120 _deprecated_function( __FUNCTION__, '2.9' );
122 return WP_CONTENT_DIR . $file;
126 * {@internal Missing Short Description}}
130 * @deprecated Use wp_dropdown_categories()
131 * @see wp_dropdown_categories()
133 * @param unknown_type $currentcat
134 * @param unknown_type $currentparent
135 * @param unknown_type $parent
136 * @param unknown_type $level
137 * @param unknown_type $categories
140 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
141 _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' );
143 $categories = get_categories( array('hide_empty' => 0) );
146 foreach ( $categories as $category ) {
147 if ( $currentcat != $category->term_id && $parent == $category->parent) {
148 $pad = str_repeat( '– ', $level );
149 $category->name = esc_html( $category->name );
150 echo "\n\t<option value='$category->term_id'";
151 if ( $currentparent == $category->term_id )
152 echo " selected='selected'";
153 echo ">$pad$category->name</option>";
154 wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories );
163 * Register a setting and its sanitization callback
167 * @deprecated Use register_setting()
168 * @see register_setting()
170 * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
171 * Default whitelisted option key names include "general," "discussion," and "reading," among others.
172 * @param string $option_name The name of an option to sanitize and save.
173 * @param unknown_type $sanitize_callback A callback function that sanitizes the option's value.
176 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
177 _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' );
178 return register_setting( $option_group, $option_name, $sanitize_callback );
182 * Unregister a setting
186 * @deprecated Use unregister_setting()
187 * @see unregister_setting()
189 * @param unknown_type $option_group
190 * @param unknown_type $option_name
191 * @param unknown_type $sanitize_callback
194 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
195 _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' );
196 return unregister_setting( $option_group, $option_name, $sanitize_callback );
200 * Determines the language to use for CodePress syntax highlighting.
205 * @param string $filename
207 function codepress_get_lang( $filename ) {
208 _deprecated_function( __FUNCTION__, '3.0' );
213 * Adds Javascript required to make CodePress work on the theme/plugin editors.
218 function codepress_footer_js() {
219 _deprecated_function( __FUNCTION__, '3.0' );
224 * Determine whether to use CodePress.
229 function use_codepress() {
230 _deprecated_function( __FUNCTION__, '3.0' );
237 * @return array List of user IDs.
239 function get_author_user_ids() {
240 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
243 if ( !is_multisite() )
244 $level_key = $wpdb->get_blog_prefix() . 'user_level';
246 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
248 return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) );
254 * @param int $user_id User ID.
255 * @return array|bool List of editable authors. False if no editable users.
257 function get_editable_authors( $user_id ) {
258 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
262 $editable = get_editable_user_ids( $user_id );
267 $editable = join(',', $editable);
268 $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );
271 return apply_filters('get_editable_authors', $authors);
277 * @param int $user_id User ID.
278 * @param bool $exclude_zeros Optional, default is true. Whether to exclude zeros.
281 function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
282 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
286 if ( ! $user = get_userdata( $user_id ) )
288 $post_type_obj = get_post_type_object($post_type);
290 if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) {
291 if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros )
292 return array($user->ID);
297 if ( !is_multisite() )
298 $level_key = $wpdb->get_blog_prefix() . 'user_level';
300 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
302 $query = $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s", $level_key);
303 if ( $exclude_zeros )
304 $query .= " AND meta_value != '0'";
306 return $wpdb->get_col( $query );
312 function get_nonauthor_user_ids() {
313 _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
317 if ( !is_multisite() )
318 $level_key = $wpdb->get_blog_prefix() . 'user_level';
320 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
322 return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) );
325 if ( !class_exists('WP_User_Search') ) :
327 * WordPress User Search class.
332 class WP_User_Search {
335 * {@internal Missing Description}}
344 * {@internal Missing Description}}
362 * Role name that users have.
380 * Amount of users to display per page.
386 var $users_per_page = 50;
389 * {@internal Missing Description}}
398 * {@internal Missing Description}}
407 * {@internal Missing Description}}
416 * {@internal Missing Description}}
425 * {@internal Missing Description}}
434 * {@internal Missing Description}}
443 * {@internal Missing Description}}
449 var $total_users_for_query = 0;
452 * {@internal Missing Description}}
458 var $too_many_total_users = false;
461 * {@internal Missing Description}}
470 * {@internal Missing Description}}
479 * PHP4 Constructor - Sets up the object properties.
483 * @param string $search_term Search terms string.
484 * @param int $page Optional. Page ID.
485 * @param string $role Role name.
486 * @return WP_User_Search
488 function WP_User_Search ($search_term = '', $page = '', $role = '') {
489 _deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' );
491 $this->search_term = wp_unslash( $search_term );
492 $this->raw_page = ( '' == $page ) ? false : (int) $page;
493 $this->page = (int) ( '' == $page ) ? 1 : $page;
496 $this->prepare_query();
502 * {@internal Missing Short Description}}
504 * {@internal Missing Long Description}}
509 function prepare_query() {
511 $this->first_user = ($this->page - 1) * $this->users_per_page;
513 $this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $this->first_user, $this->users_per_page);
514 $this->query_orderby = ' ORDER BY user_login';
517 if ( $this->search_term ) {
519 $search_sql = 'AND (';
520 foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col )
521 $searches[] = $wpdb->prepare( $col . ' LIKE %s', '%' . like_escape($this->search_term) . '%' );
522 $search_sql .= implode(' OR ', $searches);
526 $this->query_from = " FROM $wpdb->users";
527 $this->query_where = " WHERE 1=1 $search_sql";
530 $this->query_from .= " INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id";
531 $this->query_where .= $wpdb->prepare(" AND $wpdb->usermeta.meta_key = '{$wpdb->prefix}capabilities' AND $wpdb->usermeta.meta_value LIKE %s", '%' . $this->role . '%');
532 } elseif ( is_multisite() ) {
533 $level_key = $wpdb->prefix . 'capabilities'; // wpmu site admins don't have user_levels
534 $this->query_from .= ", $wpdb->usermeta";
535 $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'";
538 do_action_ref_array( 'pre_user_search', array( &$this ) );
542 * {@internal Missing Short Description}}
544 * {@internal Missing Long Description}}
552 $this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit);
554 if ( $this->results )
555 $this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // no limit
557 $this->search_errors = new WP_Error('no_matching_users_found', __('No matching users were found!'));
561 * {@internal Missing Short Description}}
563 * {@internal Missing Long Description}}
568 function prepare_vars_for_template_usage() {}
571 * {@internal Missing Short Description}}
573 * {@internal Missing Long Description}}
578 function do_paging() {
579 if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results
581 if( ! empty($this->search_term) )
582 $args['usersearch'] = urlencode($this->search_term);
583 if( ! empty($this->role) )
584 $args['role'] = urlencode($this->role);
586 $this->paging_text = paginate_links( array(
587 'total' => ceil($this->total_users_for_query / $this->users_per_page),
588 'current' => $this->page,
589 'base' => 'users.php?%_%',
590 'format' => 'userspage=%#%',
593 if ( $this->paging_text ) {
594 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
595 number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ),
596 number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ),
597 number_format_i18n( $this->total_users_for_query ),
605 * {@internal Missing Short Description}}
607 * {@internal Missing Long Description}}
614 function get_results() {
615 return (array) $this->results;
619 * Displaying paging text.
621 * @see do_paging() Builds paging text.
626 function page_links() {
627 echo $this->paging_text;
631 * Whether paging is enabled.
633 * @see do_paging() Builds paging text.
640 function results_are_paged() {
641 if ( $this->paging_text )
647 * Whether there are search terms.
654 function is_search() {
655 if ( $this->search_term )
663 * Retrieve editable posts from other users.
667 * @param int $user_id User ID to not retrieve posts from.
668 * @param string $type Optional, defaults to 'any'. Post type to retrieve, can be 'draft' or 'pending'.
669 * @return array List of posts from others.
671 function get_others_unpublished_posts($user_id, $type='any') {
672 _deprecated_function( __FUNCTION__, '3.1' );
676 $editable = get_editable_user_ids( $user_id );
678 if ( in_array($type, array('draft', 'pending')) )
679 $type_sql = " post_status = '$type' ";
681 $type_sql = " ( post_status = 'draft' OR post_status = 'pending' ) ";
683 $dir = ( 'pending' == $type ) ? 'ASC' : 'DESC';
688 $editable = join(',', $editable);
689 $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) );
692 return apply_filters('get_others_drafts', $other_unpubs);
696 * Retrieve drafts from other users.
700 * @param int $user_id User ID.
701 * @return array List of drafts from other users.
703 function get_others_drafts($user_id) {
704 _deprecated_function( __FUNCTION__, '3.1' );
706 return get_others_unpublished_posts($user_id, 'draft');
710 * Retrieve pending review posts from other users.
714 * @param int $user_id User ID.
715 * @return array List of posts with pending review post type from other users.
717 function get_others_pending($user_id) {
718 _deprecated_function( __FUNCTION__, '3.1' );
720 return get_others_unpublished_posts($user_id, 'pending');
724 * Output the QuickPress dashboard widget.
728 * @deprecated Use wp_dashboard_quick_press()
729 * @see wp_dashboard_quick_press()
731 function wp_dashboard_quick_press_output() {
732 _deprecated_function( __FUNCTION__, '3.2', 'wp_dashboard_quick_press()' );
733 wp_dashboard_quick_press();
739 * @deprecated Use wp_editor()
742 function wp_tiny_mce( $teeny = false, $settings = false ) {
743 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
747 if ( ! class_exists('_WP_Editors' ) )
748 require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
750 $editor_id = 'content' . $num++;
754 'tinymce' => $settings ? $settings : true,
758 $set = _WP_Editors::parse_settings($editor_id, $set);
759 _WP_Editors::editor_settings($editor_id, $set);
764 * @deprecated Use wp_editor()
767 function wp_preload_dialogs() {
768 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
773 * @deprecated Use wp_editor()
776 function wp_print_editor_js() {
777 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
782 * @deprecated Use wp_editor()
785 function wp_quicktags() {
786 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
790 * Returns the screen layout options.
794 * @deprecated Use $current_screen->render_screen_layout()
795 * @see WP_Screen::render_screen_layout()
797 function screen_layout( $screen ) {
798 _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_screen_layout()' );
800 $current_screen = get_current_screen();
802 if ( ! $current_screen )
806 $current_screen->render_screen_layout();
807 return ob_get_clean();
811 * Returns the screen's per-page options.
815 * @deprecated Use $current_screen->render_per_page_options()
816 * @see WP_Screen::render_per_page_options()
818 function screen_options( $screen ) {
819 _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_per_page_options()' );
821 $current_screen = get_current_screen();
823 if ( ! $current_screen )
827 $current_screen->render_per_page_options();
828 return ob_get_clean();
832 * Renders the screen's help.
836 * @deprecated Use $current_screen->render_screen_meta()
837 * @see WP_Screen::render_screen_meta()
839 function screen_meta( $screen ) {
840 $current_screen = get_current_screen();
841 $current_screen->render_screen_meta();
845 * Favorite actions were deprecated in version 3.2. Use the admin bar instead.
850 function favorite_actions() {
851 _deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' );
854 function media_upload_image() {
855 __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
856 return wp_media_upload_handler();
859 function media_upload_audio() {
860 __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
861 return wp_media_upload_handler();
864 function media_upload_video() {
865 __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
866 return wp_media_upload_handler();
869 function media_upload_file() {
870 __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
871 return wp_media_upload_handler();
874 function type_url_form_image() {
875 __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" );
876 return wp_media_insert_url_form( 'image' );
879 function type_url_form_audio() {
880 __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" );
881 return wp_media_insert_url_form( 'audio' );
884 function type_url_form_video() {
885 __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" );
886 return wp_media_insert_url_form( 'video' );
889 function type_url_form_file() {
890 __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" );
891 return wp_media_insert_url_form( 'file' );
895 * Add contextual help text for a page.
897 * Creates an 'Overview' help tab.
901 * @deprecated Use get_current_screen()->add_help_tab()
904 * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
905 * @param string $help The content of an 'Overview' help tab.
907 function add_contextual_help( $screen, $help ) {
908 _deprecated_function( __FUNCTION__, '3.3', 'get_current_screen()->add_help_tab()' );
910 if ( is_string( $screen ) )
911 $screen = convert_to_screen( $screen );
913 WP_Screen::add_old_compat_help( $screen, $help );
917 * Get the allowed themes for the current blog.
921 * @deprecated Use wp_get_themes()
922 * @see wp_get_themes()
924 * @return array $themes Array of allowed themes.
926 function get_allowed_themes() {
927 _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'allowed' => true ) )" );
929 $themes = wp_get_themes( array( 'allowed' => true ) );
931 $wp_themes = array();
932 foreach ( $themes as $theme ) {
933 $wp_themes[ $theme->get('Name') ] = $theme;
940 * {@internal Missing Short Description}}
947 function get_broken_themes() {
948 _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'errors' => true )" );
950 $themes = wp_get_themes( array( 'errors' => true ) );
952 foreach ( $themes as $theme ) {
953 $name = $theme->get('Name');
954 $broken[ $name ] = array(
957 'Description' => $theme->errors()->get_error_message(),
964 * {@internal Missing Short Description}}
971 function current_theme_info() {
972 _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
974 return wp_get_theme();
978 * This was once used to display an 'Insert into Post' button. Now it is deprecated and stubbed.
982 function _insert_into_post_button( $type ) {
983 _deprecated_function( __FUNCTION__, '3.5' );
987 * This was once used to display a media button. Now it is deprecated and stubbed.
991 function _media_button($title, $icon, $type, $id) {
992 _deprecated_function( __FUNCTION__, '3.5' );
996 * Get an existing post and format it for editing.
1004 function get_post_to_edit( $id ) {
1005 _deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
1007 return get_post( $id, OBJECT, 'edit' );
1011 * Get the default page information to use.
1015 * @deprecated Use get_default_post_to_edit()
1017 * @return WP_Post Post object containing all the default post data as attributes
1019 function get_default_page_to_edit() {
1020 _deprecated_function( __FUNCTION__, '3.5', "get_default_post_to_edit( 'page' )" );
1022 $page = get_default_post_to_edit();
1023 $page->post_type = 'page';
1028 * This was once used to create a thumbnail from an Image given a maximum side size.
1032 * @deprecated Use image_resize()
1033 * @see image_resize()
1035 * @param mixed $file Filename of the original image, Or attachment id.
1036 * @param int $max_side Maximum length of a single side for the thumbnail.
1037 * @param mixed $deprecated Never used.
1038 * @return string Thumbnail path on success, Error string on failure.
1040 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
1041 _deprecated_function( __FUNCTION__, '3.5', 'image_resize()' );
1042 return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
1046 * This was once used to display a metabox for the nav menu theme locations.
1048 * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen.
1053 function wp_nav_menu_locations_meta_box() {
1054 _deprecated_function( __FUNCTION__, '3.6' );
1058 * This was once used to kick-off the Core Updater.
1060 * Deprecated in favor of instantating a Core_Upgrader instance directly,
1061 * and calling the 'upgrade' method.
1065 * @see Core_Upgrader
1067 function wp_update_core($current, $feedback = '') {
1068 _deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' );
1070 if ( !empty($feedback) )
1071 add_filter('update_feedback', $feedback);
1073 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
1074 $upgrader = new Core_Upgrader();
1075 return $upgrader->upgrade($current);
1080 * This was once used to kick-off the Plugin Updater.
1082 * Deprecated in favor of instantating a Plugin_Upgrader instance directly,
1083 * and calling the 'upgrade' method.
1084 * Unused since 2.8.0.
1088 * @see Plugin_Upgrader
1090 function wp_update_plugin($plugin, $feedback = '') {
1091 _deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' );
1093 if ( !empty($feedback) )
1094 add_filter('update_feedback', $feedback);
1096 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
1097 $upgrader = new Plugin_Upgrader();
1098 return $upgrader->upgrade($plugin);
1102 * This was once used to kick-off the Theme Updater.
1104 * Deprecated in favor of instantating a Theme_Upgrader instance directly,
1105 * and calling the 'upgrade' method.
1106 * Unused since 2.8.0.
1110 * @see Theme_Upgrader
1112 function wp_update_theme($theme, $feedback = '') {
1113 _deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' );
1115 if ( !empty($feedback) )
1116 add_filter('update_feedback', $feedback);
1118 include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
1119 $upgrader = new Theme_Upgrader();
1120 return $upgrader->upgrade($theme);
1124 * This was once used to display attachment links. Now it is deprecated and stubbed.
1126 * {@internal Missing Short Description}}
1131 * @param unknown_type $id
1134 function the_attachment_links( $id = false ) {
1135 _deprecated_function( __FUNCTION__, '3.7' );
1139 * Displays a screen icon.
1142 * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output.
1145 function screen_icon() {
1146 echo get_screen_icon();
1148 function get_screen_icon() {
1149 return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
1154 * Deprecated dashboard widget controls.
1159 function wp_dashboard_incoming_links_output() {}
1160 function wp_dashboard_secondary_output() {}
1164 * Deprecated dashboard widget controls.
1169 function wp_dashboard_incoming_links() {}
1170 function wp_dashboard_incoming_links_control() {}
1171 function wp_dashboard_plugins() {}
1172 function wp_dashboard_primary_control() {}
1173 function wp_dashboard_recent_comments_control() {}
1174 function wp_dashboard_secondary() {}
1175 function wp_dashboard_secondary_control() {}