wp/wp-admin/includes/deprecated.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
    31  * @deprecated 2.5.0
    31  * @deprecated 2.5.0
    32  *
    32  *
    33  */
    33  */
    34 function documentation_link() {
    34 function documentation_link() {
    35 	_deprecated_function( __FUNCTION__, '2.5' );
    35 	_deprecated_function( __FUNCTION__, '2.5' );
    36 	return;
       
    37 }
    36 }
    38 
    37 
    39 /**
    38 /**
    40  * Calculates the new dimensions for a downsampled image.
    39  * Calculates the new dimensions for a downsampled image.
    41  *
    40  *
    78  * @since 0.71
    77  * @since 0.71
    79  * @deprecated 2.6.0
    78  * @deprecated 2.6.0
    80  * @deprecated Use wp_category_checklist()
    79  * @deprecated Use wp_category_checklist()
    81  * @see wp_category_checklist()
    80  * @see wp_category_checklist()
    82  *
    81  *
    83  * @param unknown_type $default
    82  * @param int $default
    84  * @param unknown_type $parent
    83  * @param int $parent
    85  * @param unknown_type $popular_ids
    84  * @param array $popular_ids
    86  */
    85  */
    87 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
    86 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
    88 	_deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' );
    87 	_deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' );
    89 	global $post_ID;
    88 	global $post_ID;
    90 	wp_category_checklist( $post_ID );
    89 	wp_category_checklist( $post_ID );
    96  * @since 2.1.0
    95  * @since 2.1.0
    97  * @deprecated 2.6.0
    96  * @deprecated 2.6.0
    98  * @deprecated Use wp_link_category_checklist()
    97  * @deprecated Use wp_link_category_checklist()
    99  * @see wp_link_category_checklist()
    98  * @see wp_link_category_checklist()
   100  *
    99  *
   101  * @param unknown_type $default
   100  * @param int $default
   102  */
   101  */
   103 function dropdown_link_categories( $default = 0 ) {
   102 function dropdown_link_categories( $default = 0 ) {
   104 	_deprecated_function( __FUNCTION__, '2.6', 'wp_link_category_checklist()' );
   103 	_deprecated_function( __FUNCTION__, '2.6', 'wp_link_category_checklist()' );
   105 	global $link_id;
   104 	global $link_id;
   106 	wp_link_category_checklist( $link_id );
   105 	wp_link_category_checklist( $link_id );
   128  * @since 1.2.0
   127  * @since 1.2.0
   129  * @deprecated 3.0.0
   128  * @deprecated 3.0.0
   130  * @deprecated Use wp_dropdown_categories()
   129  * @deprecated Use wp_dropdown_categories()
   131  * @see wp_dropdown_categories()
   130  * @see wp_dropdown_categories()
   132  *
   131  *
   133  * @param unknown_type $currentcat
   132  * @param int $currentcat
   134  * @param unknown_type $currentparent
   133  * @param int $currentparent
   135  * @param unknown_type $parent
   134  * @param int $parent
   136  * @param unknown_type $level
   135  * @param int $level
   137  * @param unknown_type $categories
   136  * @param array $categories
   138  * @return unknown
   137  * @return bool|null
   139  */
   138  */
   140 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
   139 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
   141 	_deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' );
   140 	_deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' );
   142 	if (!$categories )
   141 	if (!$categories )
   143 		$categories = get_categories( array('hide_empty' => 0) );
   142 		$categories = get_categories( array('hide_empty' => 0) );
   168  * @see register_setting()
   167  * @see register_setting()
   169  *
   168  *
   170  * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
   169  * @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.
   170  * 	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.
   171  * @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.
   172  * @param callable $sanitize_callback A callback function that sanitizes the option's value.
   174  * @return unknown
       
   175  */
   173  */
   176 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
   174 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
   177 	_deprecated_function( __FUNCTION__, '3.0', 'register_setting()' );
   175 	_deprecated_function( __FUNCTION__, '3.0', 'register_setting()' );
   178 	return register_setting( $option_group, $option_name, $sanitize_callback );
   176 	register_setting( $option_group, $option_name, $sanitize_callback );
   179 }
   177 }
   180 
   178 
   181 /**
   179 /**
   182  * Unregister a setting
   180  * Unregister a setting
   183  *
   181  *
   184  * @since 2.7.0
   182  * @since 2.7.0
   185  * @deprecated 3.0.0
   183  * @deprecated 3.0.0
   186  * @deprecated Use unregister_setting()
   184  * @deprecated Use unregister_setting()
   187  * @see unregister_setting()
   185  * @see unregister_setting()
   188  *
   186  *
   189  * @param unknown_type $option_group
   187  * @param string $option_group
   190  * @param unknown_type $option_name
   188  * @param string $option_name
   191  * @param unknown_type $sanitize_callback
   189  * @param callable $sanitize_callback
   192  * @return unknown
       
   193  */
   190  */
   194 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
   191 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
   195 	_deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' );
   192 	_deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' );
   196 	return unregister_setting( $option_group, $option_name, $sanitize_callback );
   193 	unregister_setting( $option_group, $option_name, $sanitize_callback );
   197 }
   194 }
   198 
   195 
   199 /**
   196 /**
   200  * Determines the language to use for CodePress syntax highlighting.
   197  * Determines the language to use for CodePress syntax highlighting.
   201  *
   198  *
   204  *
   201  *
   205  * @param string $filename
   202  * @param string $filename
   206 **/
   203 **/
   207 function codepress_get_lang( $filename ) {
   204 function codepress_get_lang( $filename ) {
   208 	_deprecated_function( __FUNCTION__, '3.0' );
   205 	_deprecated_function( __FUNCTION__, '3.0' );
   209 	return;
   206 }
   210 }
   207 
   211 
   208 /**
   212 /**
   209  * Adds JavaScript required to make CodePress work on the theme/plugin editors.
   213  * Adds Javascript required to make CodePress work on the theme/plugin editors.
       
   214  *
   210  *
   215  * @since 2.8.0
   211  * @since 2.8.0
   216  * @deprecated 3.0.0
   212  * @deprecated 3.0.0
   217 **/
   213 **/
   218 function codepress_footer_js() {
   214 function codepress_footer_js() {
   219 	_deprecated_function( __FUNCTION__, '3.0' );
   215 	_deprecated_function( __FUNCTION__, '3.0' );
   220 	return;
       
   221 }
   216 }
   222 
   217 
   223 /**
   218 /**
   224  * Determine whether to use CodePress.
   219  * Determine whether to use CodePress.
   225  *
   220  *
   226  * @since 2.8.0
   221  * @since 2.8.0
   227  * @deprecated 3.0.0
   222  * @deprecated 3.0.0
   228 **/
   223 **/
   229 function use_codepress() {
   224 function use_codepress() {
   230 	_deprecated_function( __FUNCTION__, '3.0' );
   225 	_deprecated_function( __FUNCTION__, '3.0' );
   231 	return;
       
   232 }
   226 }
   233 
   227 
   234 /**
   228 /**
   235  * @deprecated 3.1.0
   229  * @deprecated 3.1.0
   236  *
   230  *
   274 /**
   268 /**
   275  * @deprecated 3.1.0
   269  * @deprecated 3.1.0
   276  *
   270  *
   277  * @param int $user_id User ID.
   271  * @param int $user_id User ID.
   278  * @param bool $exclude_zeros Optional, default is true. Whether to exclude zeros.
   272  * @param bool $exclude_zeros Optional, default is true. Whether to exclude zeros.
   279  * @return unknown
   273  * @return mixed
   280  */
   274  */
   281 function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
   275 function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
   282 	_deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
   276 	_deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
   283 
   277 
   284 	global $wpdb;
   278 	global $wpdb;
   334 	/**
   328 	/**
   335 	 * {@internal Missing Description}}
   329 	 * {@internal Missing Description}}
   336 	 *
   330 	 *
   337 	 * @since 2.1.0
   331 	 * @since 2.1.0
   338 	 * @access private
   332 	 * @access private
   339 	 * @var unknown_type
   333 	 * @var mixed
   340 	 */
   334 	 */
   341 	var $results;
   335 	var $results;
   342 
   336 
   343 	/**
   337 	/**
   344 	 * {@internal Missing Description}}
   338 	 * {@internal Missing Description}}
   345 	 *
   339 	 *
   346 	 * @since 2.1.0
   340 	 * @since 2.1.0
   347 	 * @access private
   341 	 * @access private
   348 	 * @var unknown_type
   342 	 * @var string
   349 	 */
   343 	 */
   350 	var $search_term;
   344 	var $search_term;
   351 
   345 
   352 	/**
   346 	/**
   353 	 * Page number.
   347 	 * Page number.
   388 	/**
   382 	/**
   389 	 * {@internal Missing Description}}
   383 	 * {@internal Missing Description}}
   390 	 *
   384 	 *
   391 	 * @since 2.1.0
   385 	 * @since 2.1.0
   392 	 * @access private
   386 	 * @access private
   393 	 * @var unknown_type
   387 	 * @var int
   394 	 */
   388 	 */
   395 	var $first_user;
   389 	var $first_user;
   396 
   390 
   397 	/**
   391 	/**
   398 	 * {@internal Missing Description}}
   392 	 * {@internal Missing Description}}
   460 	/**
   454 	/**
   461 	 * {@internal Missing Description}}
   455 	 * {@internal Missing Description}}
   462 	 *
   456 	 *
   463 	 * @since 2.1.0
   457 	 * @since 2.1.0
   464 	 * @access private
   458 	 * @access private
   465 	 * @var unknown_type
   459 	 * @var WP_Error
   466 	 */
   460 	 */
   467 	var $search_errors;
   461 	var $search_errors;
   468 
   462 
   469 	/**
   463 	/**
   470 	 * {@internal Missing Description}}
   464 	 * {@internal Missing Description}}
   471 	 *
   465 	 *
   472 	 * @since 2.7.0
   466 	 * @since 2.7.0
   473 	 * @access private
   467 	 * @access private
   474 	 * @var unknown_type
   468 	 * @var string
   475 	 */
   469 	 */
   476 	var $paging_text;
   470 	var $paging_text;
   477 
   471 
   478 	/**
   472 	/**
   479 	 * PHP4 Constructor - Sets up the object properties.
   473 	 * PHP4 Constructor - Sets up the object properties.
   552 		$this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit);
   546 		$this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit);
   553 
   547 
   554 		if ( $this->results )
   548 		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
   549 			$this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // no limit
   556 		else
   550 		else
   557 			$this->search_errors = new WP_Error('no_matching_users_found', __('No matching users were found!'));
   551 			$this->search_errors = new WP_Error('no_matching_users_found', __('No users found.'));
   558 	}
   552 	}
   559 
   553 
   560 	/**
   554 	/**
   561 	 * {@internal Missing Short Description}}
   555 	 * {@internal Missing Short Description}}
   562 	 *
   556 	 *
   607 	 * {@internal Missing Long Description}}
   601 	 * {@internal Missing Long Description}}
   608 	 *
   602 	 *
   609 	 * @since 2.1.0
   603 	 * @since 2.1.0
   610 	 * @access public
   604 	 * @access public
   611 	 *
   605 	 *
   612 	 * @return unknown
   606 	 * @return array
   613 	 */
   607 	 */
   614 	function get_results() {
   608 	function get_results() {
   615 		return (array) $this->results;
   609 		return (array) $this->results;
   616 	}
   610 	}
   617 
   611 
   850 function favorite_actions() {
   844 function favorite_actions() {
   851 	_deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' );
   845 	_deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' );
   852 }
   846 }
   853 
   847 
   854 function media_upload_image() {
   848 function media_upload_image() {
   855 	__deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
   849 	_deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
   856 	return wp_media_upload_handler();
   850 	return wp_media_upload_handler();
   857 }
   851 }
   858 
   852 
   859 function media_upload_audio() {
   853 function media_upload_audio() {
   860 	__deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
   854 	_deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
   861 	return wp_media_upload_handler();
   855 	return wp_media_upload_handler();
   862 }
   856 }
   863 
   857 
   864 function media_upload_video() {
   858 function media_upload_video() {
   865 	__deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
   859 	_deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
   866 	return wp_media_upload_handler();
   860 	return wp_media_upload_handler();
   867 }
   861 }
   868 
   862 
   869 function media_upload_file() {
   863 function media_upload_file() {
   870 	__deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
   864 	_deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
   871 	return wp_media_upload_handler();
   865 	return wp_media_upload_handler();
   872 }
   866 }
   873 
   867 
   874 function type_url_form_image() {
   868 function type_url_form_image() {
   875 	__deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" );
   869 	_deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" );
   876 	return wp_media_insert_url_form( 'image' );
   870 	return wp_media_insert_url_form( 'image' );
   877 }
   871 }
   878 
   872 
   879 function type_url_form_audio() {
   873 function type_url_form_audio() {
   880 	__deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" );
   874 	_deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" );
   881 	return wp_media_insert_url_form( 'audio' );
   875 	return wp_media_insert_url_form( 'audio' );
   882 }
   876 }
   883 
   877 
   884 function type_url_form_video() {
   878 function type_url_form_video() {
   885 	__deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" );
   879 	_deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" );
   886 	return wp_media_insert_url_form( 'video' );
   880 	return wp_media_insert_url_form( 'video' );
   887 }
   881 }
   888 
   882 
   889 function type_url_form_file() {
   883 function type_url_form_file() {
   890 	__deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" );
   884 	_deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" );
   891 	return wp_media_insert_url_form( 'file' );
   885 	return wp_media_insert_url_form( 'file' );
   892 }
   886 }
   893 
   887 
   894 /**
   888 /**
   895  * Add contextual help text for a page.
   889  * Add contextual help text for a page.
   940  * {@internal Missing Short Description}}
   934  * {@internal Missing Short Description}}
   941  *
   935  *
   942  * @since 1.5.0
   936  * @since 1.5.0
   943  * @deprecated 3.4.0
   937  * @deprecated 3.4.0
   944  *
   938  *
   945  * @return unknown
   939  * @return array
   946  */
   940  */
   947 function get_broken_themes() {
   941 function get_broken_themes() {
   948 	_deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'errors' => true )" );
   942 	_deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'errors' => true )" );
   949 
   943 
   950 	$themes = wp_get_themes( array( 'errors' => true ) );
   944 	$themes = wp_get_themes( array( 'errors' => true ) );
   964  * {@internal Missing Short Description}}
   958  * {@internal Missing Short Description}}
   965  *
   959  *
   966  * @since 2.0.0
   960  * @since 2.0.0
   967  * @deprecated 3.4.0
   961  * @deprecated 3.4.0
   968  *
   962  *
   969  * @return unknown
   963  * @return WP_Theme
   970  */
   964  */
   971 function current_theme_info() {
   965 function current_theme_info() {
   972 	_deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
   966 	_deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
   973 
   967 
   974 	return wp_get_theme();
   968 	return wp_get_theme();
  1060  * Deprecated in favor of instantating a Core_Upgrader instance directly,
  1054  * Deprecated in favor of instantating a Core_Upgrader instance directly,
  1061  * and calling the 'upgrade' method.
  1055  * and calling the 'upgrade' method.
  1062  *
  1056  *
  1063  * @since 2.7.0
  1057  * @since 2.7.0
  1064  * @deprecated 3.7.0
  1058  * @deprecated 3.7.0
       
  1059  * @see Core_Upgrader
  1065  */
  1060  */
  1066 function wp_update_core($current, $feedback = '') {
  1061 function wp_update_core($current, $feedback = '') {
  1067 	_deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' );
  1062 	_deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' );
  1068 
  1063 
  1069 	if ( !empty($feedback) )
  1064 	if ( !empty($feedback) )
  1070 		add_filter('update_feedback', $feedback);
  1065 		add_filter('update_feedback', $feedback);
  1071 
  1066 
  1072 	include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
  1067 	include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
  1073 	$upgrader = new Core_Upgrader();
  1068 	$upgrader = new Core_Upgrader();
  1074 	return $upgrader->upgrade($current);
  1069 	return $upgrader->upgrade($current);
  1075 
  1070 
  1076 }
  1071 }
  1077 
  1072 
  1082  * and calling the 'upgrade' method.
  1077  * and calling the 'upgrade' method.
  1083  * Unused since 2.8.0.
  1078  * Unused since 2.8.0.
  1084  *
  1079  *
  1085  * @since 2.5.0
  1080  * @since 2.5.0
  1086  * @deprecated 3.7.0
  1081  * @deprecated 3.7.0
       
  1082  * @see Plugin_Upgrader
  1087  */
  1083  */
  1088 function wp_update_plugin($plugin, $feedback = '') {
  1084 function wp_update_plugin($plugin, $feedback = '') {
  1089 	_deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' );
  1085 	_deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' );
  1090 
  1086 
  1091 	if ( !empty($feedback) )
  1087 	if ( !empty($feedback) )
  1092 		add_filter('update_feedback', $feedback);
  1088 		add_filter('update_feedback', $feedback);
  1093 
  1089 
  1094 	include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
  1090 	include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
  1095 	$upgrader = new Plugin_Upgrader();
  1091 	$upgrader = new Plugin_Upgrader();
  1096 	return $upgrader->upgrade($plugin);
  1092 	return $upgrader->upgrade($plugin);
  1097 }
  1093 }
  1098 
  1094 
  1099 /**
  1095 /**
  1100  * This was once used to kick-off the Plugin Updater.
  1096  * This was once used to kick-off the Theme Updater.
  1101  *
  1097  *
  1102  * Deprecated in favor of instantating a Plugin_Upgrader instance directly,
  1098  * Deprecated in favor of instantating a Theme_Upgrader instance directly,
  1103  * and calling the 'upgrade' method.
  1099  * and calling the 'upgrade' method.
  1104  * Unused since 2.8.0.
  1100  * Unused since 2.8.0.
  1105  *
  1101  *
  1106  * @since 2.7.0
  1102  * @since 2.7.0
  1107  * @deprecated 3.7.0
  1103  * @deprecated 3.7.0
       
  1104  * @see Theme_Upgrader
  1108  */
  1105  */
  1109 function wp_update_theme($theme, $feedback = '') {
  1106 function wp_update_theme($theme, $feedback = '') {
  1110 	_deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' );
  1107 	_deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' );
  1111 
  1108 
  1112 	if ( !empty($feedback) )
  1109 	if ( !empty($feedback) )
  1113 		add_filter('update_feedback', $feedback);
  1110 		add_filter('update_feedback', $feedback);
  1114 
  1111 
  1115 	include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
  1112 	include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
  1116 	$upgrader = new Theme_Upgrader();
  1113 	$upgrader = new Theme_Upgrader();
  1117 	return $upgrader->upgrade($theme);
  1114 	return $upgrader->upgrade($theme);
  1118 }
  1115 }
  1119 
  1116 
  1120 /**
  1117 /**
  1123  * {@internal Missing Short Description}}
  1120  * {@internal Missing Short Description}}
  1124  *
  1121  *
  1125  * @since 2.0.0
  1122  * @since 2.0.0
  1126  * @deprecated 3.7.0
  1123  * @deprecated 3.7.0
  1127  *
  1124  *
  1128  * @param unknown_type $id
  1125  * @param int|bool $id
  1129  * @return unknown
       
  1130  */
  1126  */
  1131 function the_attachment_links( $id = false ) {
  1127 function the_attachment_links( $id = false ) {
  1132 	_deprecated_function( __FUNCTION__, '3.7' );
  1128 	_deprecated_function( __FUNCTION__, '3.7' );
  1133 }
  1129 }
       
  1130 
       
  1131 /**#@+
       
  1132  * Displays a screen icon.
       
  1133  *
       
  1134  * @since 2.7.0
       
  1135  * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output.
       
  1136  * @deprecated 3.8.0
       
  1137  */
       
  1138 function screen_icon() {
       
  1139 	echo get_screen_icon();
       
  1140 }
       
  1141 function get_screen_icon() {
       
  1142 	return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
       
  1143 }
       
  1144 /**#@-*/
       
  1145 
       
  1146 /**#@+
       
  1147  * Deprecated dashboard widget controls.
       
  1148  *
       
  1149  * @since 2.5.0
       
  1150  * @deprecated 3.8.0
       
  1151  */
       
  1152 function wp_dashboard_incoming_links_output() {}
       
  1153 function wp_dashboard_secondary_output() {}
       
  1154 /**#@-*/
       
  1155 
       
  1156 /**#@+
       
  1157  * Deprecated dashboard widget controls.
       
  1158  *
       
  1159  * @since 2.7.0
       
  1160  * @deprecated 3.8.0
       
  1161  */
       
  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() {}
       
  1169 /**#@-*/
       
  1170 
       
  1171 /**
       
  1172  * This was once used to move child posts to a new parent.
       
  1173  *
       
  1174  * @since 2.3.0
       
  1175  * @deprecated 3.9.0
       
  1176  * @access private
       
  1177  *
       
  1178  * @param int $old_ID
       
  1179  * @param int $new_ID
       
  1180  */
       
  1181 function _relocate_children( $old_ID, $new_ID ) {
       
  1182 	_deprecated_function( __FUNCTION__, '3.9' );
       
  1183 }