Ticket #13874: _deprecated_package.patch
File _deprecated_package.patch, 73.6 KB (added by , 13 years ago) |
---|
-
wp-admin/admin-functions.php
9 9 * @subpackage Administration 10 10 */ 11 11 12 _deprecated_file( basename(__FILE__), ' 2.5', 'wp-admin/includes/admin.php' );12 _deprecated_file( basename(__FILE__), 'wp-core', '2.5', 'wp-admin/includes/admin.php' ); 13 13 14 14 /** WordPress Administration API: Includes all Administration functions. */ 15 15 require_once(ABSPATH . 'wp-admin/includes/admin.php'); -
wp-admin/includes/class-wp-filesystem-base.php
99 99 * @return string The location of the remote path. 100 100 */ 101 101 function find_base_dir($base = '.', $echo = false) { 102 _deprecated_function( __FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );102 _deprecated_function( __FUNCTION__, 'wp-core', '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); 103 103 $this->verbose = $echo; 104 104 return $this->abspath(); 105 105 } … … 117 117 * @return string The location of the remote path. 118 118 */ 119 119 function get_base_dir($base = '.', $echo = false) { 120 _deprecated_function( __FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );120 _deprecated_function( __FUNCTION__, 'wp-core', '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); 121 121 $this->verbose = $echo; 122 122 return $this->abspath(); 123 123 } -
wp-admin/includes/deprecated.php
19 19 * @see wp_tiny_mce() 20 20 */ 21 21 function tinymce_include() { 22 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_tiny_mce()' );22 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_tiny_mce()' ); 23 23 24 24 wp_tiny_mce(); 25 25 } … … 32 32 * 33 33 */ 34 34 function documentation_link() { 35 _deprecated_function( __FUNCTION__, ' 2.5', '' );35 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', '' ); 36 36 return; 37 37 } 38 38 … … 50 50 * @return mixed Array(height,width) of shrunk dimensions. 51 51 */ 52 52 function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) { 53 _deprecated_function( __FUNCTION__, ' 3.0', 'wp_constrain_dimensions()' );53 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'wp_constrain_dimensions()' ); 54 54 return wp_constrain_dimensions( $width, $height, $wmax, $hmax ); 55 55 } 56 56 … … 67 67 * @param unknown_type $popular_ids 68 68 */ 69 69 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { 70 _deprecated_function( __FUNCTION__, ' 0.0', 'wp_category_checklist()' );70 _deprecated_function( __FUNCTION__, 'wp-core', '0.0', 'wp_category_checklist()' ); 71 71 global $post_ID; 72 72 wp_category_checklist( $post_ID ); 73 73 } … … 83 83 * @param unknown_type $default 84 84 */ 85 85 function dropdown_link_categories( $default = 0 ) { 86 _deprecated_function( __FUNCTION__, ' 0.0', 'wp_link_category_checklist()' );86 _deprecated_function( __FUNCTION__, 'wp-core', '0.0', 'wp_link_category_checklist()' ); 87 87 global $link_id; 88 88 wp_link_category_checklist( $link_id ); 89 89 } … … 104 104 * @return unknown 105 105 */ 106 106 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { 107 _deprecated_function( __FUNCTION__, ' 3.0', 'wp_dropdown_categories()' );107 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'wp_dropdown_categories()' ); 108 108 if (!$categories ) 109 109 $categories = get_categories( array('hide_empty' => 0) ); 110 110 … … 140 140 * @return unknown 141 141 */ 142 142 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { 143 _deprecated_function( __FUNCTION__, ' 3.0', 'register_setting()' );143 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'register_setting()' ); 144 144 return register_setting( $option_group, $option_name, $sanitize_callback ); 145 145 } 146 146 … … 158 158 * @return unknown 159 159 */ 160 160 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { 161 _deprecated_function( __FUNCTION__, ' 3.0', 'unregister_setting()' );161 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'unregister_setting()' ); 162 162 return unregister_setting( $option_group, $option_name, $sanitize_callback ); 163 163 } 164 164 … … 171 171 * @param string $filename 172 172 **/ 173 173 function codepress_get_lang( $filename ) { 174 _deprecated_function( __FUNCTION__, ' 3.0' );174 _deprecated_function( __FUNCTION__, 'wp-core', '3.0' ); 175 175 return; 176 176 } 177 177 … … 182 182 * @deprecated 3.0.0 183 183 **/ 184 184 function codepress_footer_js() { 185 _deprecated_function( __FUNCTION__, ' 3.0' );185 _deprecated_function( __FUNCTION__, 'wp-core', '3.0' ); 186 186 return; 187 187 } 188 188 … … 193 193 * @deprecated 3.0.0 194 194 **/ 195 195 function use_codepress() { 196 _deprecated_function( __FUNCTION__, ' 3.0' );196 _deprecated_function( __FUNCTION__, 'wp-core', '3.0' ); 197 197 return; 198 198 } 199 199 -
wp-admin/includes/image.php
22 22 */ 23 23 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { 24 24 if ( !empty( $deprecated ) ) 25 _deprecated_argument( __FUNCTION__, ' 1.2' );25 _deprecated_argument( __FUNCTION__, 'wp-core', '1.2' ); 26 26 $thumbpath = image_resize( $file, $max_side, $max_side ); 27 27 return apply_filters( 'wp_create_thumbnail', $thumbpath ); 28 28 } -
wp-admin/includes/meta-boxes.php
703 703 global $link; 704 704 705 705 if ( !empty( $deprecated ) ) 706 _deprecated_argument( __FUNCTION__, ' 0.0' ); // Never implemented706 _deprecated_argument( __FUNCTION__, 'wp-core', '0.0' ); // Never implemented 707 707 708 708 $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: ''; 709 709 $rels = preg_split('/\s+/', $link_rel); -
wp-admin/includes/ms-deprecated.php
13 13 * @deprecated 3.0.0 14 14 */ 15 15 function wpmu_menu() { 16 _deprecated_function( __FUNCTION__, '3.0' );16 _deprecated_function( __FUNCTION__, 'wp-core', '3.0' ); 17 17 // deprecated. See #11763 18 18 } 19 19 … … 24 24 * @see is_upload_space_available() 25 25 */ 26 26 function wpmu_checkAvailableSpace() { 27 _deprecated_function( __FUNCTION__, '3.0', 'is_upload_space_available()' );27 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'is_upload_space_available()' ); 28 28 29 29 if ( !is_upload_space_available() ) 30 30 wp_die( __('Sorry, you must delete files before you can upload any more.') ); … … 34 34 * @deprecated 3.0.0 35 35 */ 36 36 function mu_options( $options ) { 37 _deprecated_function( __FUNCTION__, '3.0' );37 _deprecated_function( __FUNCTION__, 'wp-core', '3.0' ); 38 38 return $options; 39 39 } 40 40 … … 43 43 * @see activate_plugin() 44 44 */ 45 45 function activate_sitewide_plugin() { 46 _deprecated_function( __FUNCTION__, '3.0', 'activate_plugin()' );46 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'activate_plugin()' ); 47 47 return false; 48 48 } 49 49 … … 52 52 * @see deactivate_sitewide_plugin() 53 53 */ 54 54 function deactivate_sitewide_plugin( $plugin = false ) { 55 _deprecated_function( __FUNCTION__, '3.0', 'deactivate_plugin()' );55 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'deactivate_plugin()' ); 56 56 return; 57 57 } 58 58 … … 61 61 * @see is_network_only_plugin() 62 62 */ 63 63 function is_wpmu_sitewide_plugin( $file ) { 64 _deprecated_function( __FUNCTION__, '3.0', 'is_network_only_plugin()' );64 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'is_network_only_plugin()' ); 65 65 return is_network_only_plugin( $file ); 66 66 } 67 67 -
wp-admin/includes/plugin.php
89 89 90 90 // Site Wide Only is the old header for Network 91 91 if ( empty( $plugin_data['Network'] ) && ! empty( $plugin_data['_sitewide'] ) ) { 92 _deprecated_argument( __FUNCTION__, ' 3.0', sprintf( __( 'The <code>%1$s</code> plugin header is deprecated. Use <code>%2$s</code> instead.' ), 'Site Wide Only: true', 'Network: true' ) );92 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', sprintf( __( 'The <code>%1$s</code> plugin header is deprecated. Use <code>%2$s</code> instead.' ), 'Site Wide Only: true', 'Network: true' ) ); 93 93 $plugin_data['Network'] = $plugin_data['_sitewide']; 94 94 } 95 95 $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) ); … … 1437 1437 global $new_whitelist_options; 1438 1438 1439 1439 if ( 'misc' == $option_group ) { 1440 _deprecated_argument( __FUNCTION__, ' 3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );1440 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); 1441 1441 $option_group = 'general'; 1442 1442 } 1443 1443 … … 1460 1460 global $new_whitelist_options; 1461 1461 1462 1462 if ( 'misc' == $option_group ) { 1463 _deprecated_argument( __FUNCTION__, ' 3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );1463 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); 1464 1464 $option_group = 'general'; 1465 1465 } 1466 1466 -
wp-admin/includes/template.php
2982 2982 global $wp_settings_sections; 2983 2983 2984 2984 if ( 'misc' == $page ) { 2985 _deprecated_argument( __FUNCTION__, ' 3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );2985 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); 2986 2986 $page = 'general'; 2987 2987 } 2988 2988 … … 3022 3022 global $wp_settings_fields; 3023 3023 3024 3024 if ( 'misc' == $page ) { 3025 _deprecated_argument( __FUNCTION__, ' 3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );3025 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); 3026 3026 $page = 'general'; 3027 3027 } 3028 3028 -
wp-admin/includes/upgrade.php
38 38 global $wp_rewrite; 39 39 40 40 if ( !empty( $deprecated ) ) 41 _deprecated_argument( __FUNCTION__, ' 2.6' );41 _deprecated_argument( __FUNCTION__, 'wp-core', '2.6' ); 42 42 43 43 wp_check_mysql_version(); 44 44 wp_cache_flush(); -
wp-admin/upgrade-functions.php
8 8 * @subpackage Administration 9 9 */ 10 10 11 _deprecated_file( basename(__FILE__), ' 2.5', 'wp-admin/includes/upgrade.php' );11 _deprecated_file( basename(__FILE__), 'wp-core', '2.5', 'wp-admin/includes/upgrade.php' ); 12 12 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 13 13 ?> -
wp-app.php
871 871 */ 872 872 function get_categories_url($deprecated = '') { 873 873 if ( !empty( $deprecated ) ) 874 _deprecated_argument( __FUNCTION__, ' 2.5' );874 _deprecated_argument( __FUNCTION__, 'wp-core', '2.5' ); 875 875 return $this->app_base . $this->CATEGORIES_PATH; 876 876 } 877 877 -
wp-includes/author-template.php
24 24 global $authordata; 25 25 26 26 if ( !empty( $deprecated ) ) 27 _deprecated_argument( __FUNCTION__, ' 2.1' );27 _deprecated_argument( __FUNCTION__, 'wp-core', '2.1' ); 28 28 29 29 return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null); 30 30 } … … 50 50 */ 51 51 function the_author( $deprecated = '', $deprecated_echo = true ) { 52 52 if ( !empty( $deprecated ) ) 53 _deprecated_argument( __FUNCTION__, ' 2.1' );53 _deprecated_argument( __FUNCTION__, 'wp-core', '2.1' ); 54 54 if ( $deprecated_echo !== true ) 55 _deprecated_argument( __FUNCTION__, ' 1.5', __('Use <code>get_the_author()</code> instead if you do not want the value echoed.') );55 _deprecated_argument( __FUNCTION__, 'wp-core', '1.5', __('Use <code>get_the_author()</code> instead if you do not want the value echoed.') ); 56 56 if ( $deprecated_echo ) 57 57 echo get_the_author(); 58 58 return get_the_author(); … … 198 198 */ 199 199 function the_author_posts_link($deprecated = '') { 200 200 if ( !empty( $deprecated ) ) 201 _deprecated_argument( __FUNCTION__, ' 2.1' );201 _deprecated_argument( __FUNCTION__, 'wp-core', '2.1' ); 202 202 203 203 global $authordata; 204 204 $link = sprintf( -
wp-includes/capabilities.php
719 719 */ 720 720 function has_cap( $cap ) { 721 721 if ( is_numeric( $cap ) ) { 722 _deprecated_argument( __FUNCTION__, ' 2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );722 _deprecated_argument( __FUNCTION__, 'wp-core', '2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') ); 723 723 $cap = $this->translate_level_to_cap( $cap ); 724 724 } 725 725 -
wp-includes/category-template.php
351 351 352 352 // Back compat. 353 353 if ( isset( $args['type'] ) && 'link' == $args['type'] ) { 354 _deprecated_argument( __FUNCTION__, ' 3.0', '' );354 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', '' ); 355 355 $args['taxonomy'] = 'link_category'; 356 356 } 357 357 -
wp-includes/category.php
44 44 45 45 // Back compat 46 46 if ( isset($args['type']) && 'link' == $args['type'] ) { 47 _deprecated_argument( __FUNCTION__, ' 3.0', '' );47 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', '' ); 48 48 $taxonomy = $args['taxonomy'] = 'link_category'; 49 49 } 50 50 -
wp-includes/comment-template.php
529 529 */ 530 530 function comments_link( $deprecated = '', $deprecated_2 = '' ) { 531 531 if ( !empty( $deprecated ) ) 532 _deprecated_argument( __FUNCTION__, ' 0.72' );532 _deprecated_argument( __FUNCTION__, 'wp-core', '0.72' ); 533 533 if ( !empty( $deprecated_2 ) ) 534 _deprecated_argument( __FUNCTION__, ' 1.3' );534 _deprecated_argument( __FUNCTION__, 'wp-core', '1.3' ); 535 535 echo get_comments_link(); 536 536 } 537 537 … … 576 576 global $id; 577 577 578 578 if ( !empty( $deprecated ) ) 579 _deprecated_argument( __FUNCTION__, ' 1.3' );579 _deprecated_argument( __FUNCTION__, 'wp-core', '1.3' ); 580 580 581 581 $number = get_comments_number($id); 582 582 … … 728 728 */ 729 729 function trackback_url( $deprecated_echo = true ) { 730 730 if ( $deprecated_echo !== true ) 731 _deprecated_argument( __FUNCTION__, ' 2.5', __('Use <code>get_trackback_url()</code> instead if you do not want the value echoed.') );731 _deprecated_argument( __FUNCTION__, 'wp-core', '2.5', __('Use <code>get_trackback_url()</code> instead if you do not want the value echoed.') ); 732 732 if ( $deprecated_echo ) 733 733 echo get_trackback_url(); 734 734 else -
wp-includes/comment.php
1525 1525 */ 1526 1526 function discover_pingback_server_uri( $url, $deprecated = '' ) { 1527 1527 if ( !empty( $deprecated ) ) 1528 _deprecated_argument( __FUNCTION__, ' 2.7' );1528 _deprecated_argument( __FUNCTION__, 'wp-core', '2.7' ); 1529 1529 1530 1530 $pingback_str_dquote = 'rel="pingback"'; 1531 1531 $pingback_str_squote = 'rel=\'pingback\''; -
wp-includes/cron.php
136 136 // Backward compatibility 137 137 // Previously this function took the arguments as discrete vars rather than an array like the rest of the API 138 138 if ( !is_array($args) ) { 139 _deprecated_argument( __FUNCTION__, ' 3.0.0', __('This argument has changed to an array to match the behavior of the other cron functions.') );139 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0.0', __('This argument has changed to an array to match the behavior of the other cron functions.') ); 140 140 $args = array_slice( func_get_args(), 1 ); 141 141 } 142 142 -
wp-includes/deprecated.php
24 24 * @return array 25 25 */ 26 26 function get_postdata($postid) { 27 _deprecated_function( __FUNCTION__, ' 1.5.1', 'get_post()' );27 _deprecated_function( __FUNCTION__, 'wp-core', '1.5.1', 'get_post()' ); 28 28 29 29 $post = &get_post($postid); 30 30 … … 59 59 function start_wp() { 60 60 global $wp_query, $post; 61 61 62 _deprecated_function( __FUNCTION__, ' 1.5', __('new WordPress Loop') );62 _deprecated_function( __FUNCTION__, 'wp-core', '1.5', __('new WordPress Loop') ); 63 63 64 64 // Since the old style loop is being used, advance the query iterator here. 65 65 $wp_query->next_post(); … … 79 79 * @return null|int 80 80 */ 81 81 function the_category_ID($echo = true) { 82 _deprecated_function( __FUNCTION__, ' 0.71', 'get_the_category()' );82 _deprecated_function( __FUNCTION__, 'wp-core', '0.71', 'get_the_category()' ); 83 83 84 84 // Grab the first cat in the list. 85 85 $categories = get_the_category(); … … 105 105 function the_category_head($before='', $after='') { 106 106 global $currentcat, $previouscat; 107 107 108 _deprecated_function( __FUNCTION__, ' 0.71', 'get_the_category_by_ID()' );108 _deprecated_function( __FUNCTION__, 'wp-core', '0.71', 'get_the_category_by_ID()' ); 109 109 110 110 // Grab the first cat in the list. 111 111 $categories = get_the_category(); … … 135 135 */ 136 136 function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') { 137 137 138 _deprecated_function( __FUNCTION__, ' 2.0', 'previous_post_link()' );138 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'previous_post_link()' ); 139 139 140 140 if ( empty($in_same_cat) || 'no' == $in_same_cat ) 141 141 $in_same_cat = false; … … 171 171 * @param string $excluded_categories 172 172 */ 173 173 function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') { 174 _deprecated_function( __FUNCTION__, ' 2.0', 'next_post_link()' );174 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'next_post_link()' ); 175 175 176 176 if ( empty($in_same_cat) || 'no' == $in_same_cat ) 177 177 $in_same_cat = false; … … 205 205 * @return bool 206 206 */ 207 207 function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') { 208 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );208 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 209 209 210 210 $author_data = get_userdata($user_id); 211 211 return ($author_data->user_level > 1); … … 225 225 * @return bool 226 226 */ 227 227 function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') { 228 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );228 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 229 229 230 230 $author_data = get_userdata($user_id); 231 231 return ($author_data->user_level >= 1); … … 245 245 * @return bool 246 246 */ 247 247 function user_can_edit_post($user_id, $post_id, $blog_id = 1) { 248 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );248 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 249 249 250 250 $author_data = get_userdata($user_id); 251 251 $post = get_post($post_id); … … 274 274 * @return bool 275 275 */ 276 276 function user_can_delete_post($user_id, $post_id, $blog_id = 1) { 277 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );277 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 278 278 279 279 // right now if one can edit, one can delete 280 280 return user_can_edit_post($user_id, $post_id, $blog_id); … … 294 294 * @return bool 295 295 */ 296 296 function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') { 297 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );297 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 298 298 299 299 $author_data = get_userdata($user_id); 300 300 return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id)); … … 314 314 * @return bool returns true if $user_id can edit $post_id's date 315 315 */ 316 316 function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) { 317 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );317 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 318 318 319 319 $author_data = get_userdata($user_id); 320 320 return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id)); … … 334 334 * @return bool returns true if $user_id can edit $post_id's comments 335 335 */ 336 336 function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) { 337 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );337 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 338 338 339 339 // right now if one can edit a post, one can edit comments made on it 340 340 return user_can_edit_post($user_id, $post_id, $blog_id); … … 354 354 * @return bool returns true if $user_id can delete $post_id's comments 355 355 */ 356 356 function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) { 357 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );357 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 358 358 359 359 // right now if one can edit comments, one can delete comments 360 360 return user_can_edit_post_comments($user_id, $post_id, $blog_id); … … 373 373 * @return bool 374 374 */ 375 375 function user_can_edit_user($user_id, $other_user) { 376 _deprecated_function( __FUNCTION__, ' 2.0', 'current_user_can()' );376 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'current_user_can()' ); 377 377 378 378 $user = get_userdata($user_id); 379 379 $other = get_userdata($other_user); … … 407 407 function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id', 408 408 $show_description = true, $show_rating = false, 409 409 $limit = -1, $show_updated = 0) { 410 _deprecated_function( __FUNCTION__, ' 2.1', 'get_bookmarks()' );410 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_bookmarks()' ); 411 411 412 412 $cat_id = -1; 413 413 $cat = get_term_by('name', $cat_name, 'link_category'); … … 471 471 * @return unknown 472 472 */ 473 473 function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) { 474 _deprecated_function( __FUNCTION__, ' 2.1', 'get_bookmarks()' );474 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_bookmarks()' ); 475 475 476 476 $cat_id = -1; 477 477 $cat = get_term_by('name', $cat_name, 'link_category'); … … 525 525 * @return unknown 526 526 */ 527 527 function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) { 528 _deprecated_function( __FUNCTION__, ' 2.1', 'get_bookmarks()' );528 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_bookmarks()' ); 529 529 530 530 $links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ; 531 531 … … 559 559 */ 560 560 function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ", 561 561 $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { 562 _deprecated_function( __FUNCTION__, ' 2.1', 'get_bookmarks()' );562 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_bookmarks()' ); 563 563 564 564 get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated); 565 565 } … … 587 587 */ 588 588 function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true, 589 589 $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { 590 _deprecated_function( __FUNCTION__, ' 2.1', 'get_bookmarks()' );590 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_bookmarks()' ); 591 591 592 592 get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated); 593 593 } … … 603 603 * @return int Only returns 0. 604 604 */ 605 605 function get_autotoggle($id = 0) { 606 _deprecated_function( __FUNCTION__, ' 2.1' );606 _deprecated_function( __FUNCTION__, 'wp-core', '2.1' ); 607 607 return 0; 608 608 } 609 609 … … 636 636 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, 637 637 $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0, 638 638 $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) { 639 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_list_categories()' );639 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_list_categories()' ); 640 640 641 641 $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children', 642 642 'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical'); … … 653 653 * @return unknown 654 654 */ 655 655 function wp_list_cats($args = '') { 656 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_list_categories()' );656 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_list_categories()' ); 657 657 658 658 $r = wp_parse_args( $args ); 659 659 … … 696 696 function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', 697 697 $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, 698 698 $selected = 0, $exclude = 0) { 699 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_dropdown_categories()' );699 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_dropdown_categories()' ); 700 700 701 701 $show_option_all = ''; 702 702 if ( $optionall ) … … 727 727 * @return unknown 728 728 */ 729 729 function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') { 730 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_list_authors()' );730 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_list_authors()' ); 731 731 732 732 $args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image'); 733 733 return wp_list_authors($args); … … 744 744 * @return unknown 745 745 */ 746 746 function wp_get_post_cats($blogid = '1', $post_ID = 0) { 747 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_get_post_categories()' );747 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_get_post_categories()' ); 748 748 return wp_get_post_categories($post_ID); 749 749 } 750 750 … … 762 762 * @return unknown 763 763 */ 764 764 function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) { 765 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_set_post_categories()' );765 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_set_post_categories()' ); 766 766 return wp_set_post_categories($post_ID, $post_categories); 767 767 } 768 768 … … 781 781 * @return unknown 782 782 */ 783 783 function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) { 784 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_get_archives()' );784 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_get_archives()' ); 785 785 $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count'); 786 786 return wp_get_archives($args); 787 787 } … … 800 800 * @return string|null 801 801 */ 802 802 function get_author_link($echo = false, $author_id, $author_nicename = '') { 803 _deprecated_function( __FUNCTION__, ' 2.1', 'get_author_posts_url()' );803 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_author_posts_url()' ); 804 804 805 805 $link = get_author_posts_url($author_id, $author_nicename); 806 806 … … 828 828 */ 829 829 function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', 830 830 $pagelink='%', $more_file='') { 831 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_link_pages()' );831 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_link_pages()' ); 832 832 833 833 $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file'); 834 834 return wp_link_pages($args); … … 846 846 * @return string 847 847 */ 848 848 function get_settings($option) { 849 _deprecated_function( __FUNCTION__, ' 2.1', 'get_option()' );849 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_option()' ); 850 850 851 851 return get_option($option); 852 852 } … … 860 860 * @see the_permalink() 861 861 */ 862 862 function permalink_link() { 863 _deprecated_function( __FUNCTION__, ' 1.2', 'the_permalink()' );863 _deprecated_function( __FUNCTION__, 'wp-core', '1.2', 'the_permalink()' ); 864 864 the_permalink(); 865 865 } 866 866 … … 875 875 * @param string $file 876 876 */ 877 877 function permalink_single_rss($deprecated = '') { 878 _deprecated_function( __FUNCTION__, ' 0.0', 'the_permalink_rss()' );878 _deprecated_function( __FUNCTION__, 'wp-core', '0.0', 'the_permalink_rss()' ); 879 879 the_permalink_rss(); 880 880 } 881 881 … … 892 892 * @return null|string 893 893 */ 894 894 function wp_get_links($args = '') { 895 _deprecated_function( __FUNCTION__, ' 0.0', 'wp_list_bookmarks()' );895 _deprecated_function( __FUNCTION__, 'wp-core', '0.0', 'wp_list_bookmarks()' ); 896 896 897 897 if ( strpos( $args, '=' ) === false ) { 898 898 $cat_id = $args; … … 947 947 */ 948 948 function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name', 949 949 $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) { 950 _deprecated_function( __FUNCTION__, ' 2.1', 'get_bookmarks()' );950 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_bookmarks()' ); 951 951 952 952 $order = 'ASC'; 953 953 if ( substr($orderby, 0, 1) == '_' ) { … … 1040 1040 * @param string $order Sort link categories by 'name' or 'id' 1041 1041 */ 1042 1042 function get_links_list($order = 'name') { 1043 _deprecated_function( __FUNCTION__, ' 2.1', 'wp_list_bookmarks()' );1043 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_list_bookmarks()' ); 1044 1044 1045 1045 $order = strtolower($order); 1046 1046 … … 1086 1086 * @param bool $count the number of links in the db 1087 1087 */ 1088 1088 function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) { 1089 _deprecated_function( __FUNCTION__, ' 2.1' );1089 _deprecated_function( __FUNCTION__, 'wp-core', '2.1' ); 1090 1090 1091 1091 if ( $count ) 1092 1092 $counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links"); … … 1111 1111 * @return unknown 1112 1112 */ 1113 1113 function get_linkrating($link) { 1114 _deprecated_function( __FUNCTION__, ' 2.1', 'sanitize_bookmark_field()' );1114 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'sanitize_bookmark_field()' ); 1115 1115 return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display'); 1116 1116 } 1117 1117 … … 1127 1127 * @return string 1128 1128 */ 1129 1129 function get_linkcatname($id = 0) { 1130 _deprecated_function( __FUNCTION__, ' 2.1', 'get_category()' );1130 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_category()' ); 1131 1131 1132 1132 $id = (int) $id; 1133 1133 … … 1156 1156 * @param string $link_text 1157 1157 */ 1158 1158 function comments_rss_link($link_text = 'Comments RSS') { 1159 _deprecated_function( __FUNCTION__, ' 2.5', 'post_comments_feed_link()' );1159 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'post_comments_feed_link()' ); 1160 1160 post_comments_feed_link($link_text); 1161 1161 } 1162 1162 … … 1173 1173 * @return string|null 1174 1174 */ 1175 1175 function get_category_rss_link($echo = false, $cat_ID = 1) { 1176 _deprecated_function( __FUNCTION__, ' 2.5', 'get_category_feed_link()' );1176 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'get_category_feed_link()' ); 1177 1177 1178 1178 $link = get_category_feed_link($cat_ID, 'rss2'); 1179 1179 … … 1195 1195 * @return string|null 1196 1196 */ 1197 1197 function get_author_rss_link($echo = false, $author_id = 1) { 1198 _deprecated_function( __FUNCTION__, ' 2.5', 'get_author_feed_link()' );1198 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'get_author_feed_link()' ); 1199 1199 1200 1200 $link = get_author_feed_link($author_id); 1201 1201 if ( $echo ) … … 1214 1214 * @return string 1215 1215 */ 1216 1216 function comments_rss() { 1217 _deprecated_function( __FUNCTION__, ' 2.2', 'get_post_comments_feed_link()' );1217 _deprecated_function( __FUNCTION__, 'wp-core', '2.2', 'get_post_comments_feed_link()' ); 1218 1218 return get_post_comments_feed_link(); 1219 1219 } 1220 1220 … … 1232 1232 * @return int The new user's ID. 1233 1233 */ 1234 1234 function create_user($username, $password, $email) { 1235 _deprecated_function( __FUNCTION__, ' 2.0', 'wp_create_user()' );1235 _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'wp_create_user()' ); 1236 1236 return wp_create_user($username, $password, $email); 1237 1237 } 1238 1238 … … 1242 1242 * @deprecated 2.5 1243 1243 */ 1244 1244 function gzip_compression() { 1245 _deprecated_function( __FUNCTION__, ' 2.5' );1245 _deprecated_function( __FUNCTION__, 'wp-core', '2.5' ); 1246 1246 return false; 1247 1247 } 1248 1248 … … 1260 1260 * @return array The comment data 1261 1261 */ 1262 1262 function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) { 1263 _deprecated_function( __FUNCTION__, ' 2.7', 'get_comment()' );1263 _deprecated_function( __FUNCTION__, 'wp-core', '2.7', 'get_comment()' ); 1264 1264 return get_comment($comment_ID, ARRAY_A); 1265 1265 } 1266 1266 … … 1276 1276 * @return string category name 1277 1277 */ 1278 1278 function get_catname( $cat_ID ) { 1279 _deprecated_function( __FUNCTION__, ' 2.8', 'get_cat_name()' );1279 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_cat_name()' ); 1280 1280 return get_cat_name( $cat_ID ); 1281 1281 } 1282 1282 … … 1295 1295 * @return string 1296 1296 */ 1297 1297 function get_category_children( $id, $before = '/', $after = '', $visited = array() ) { 1298 _deprecated_function( __FUNCTION__, ' 2.8', 'get_term_children()' );1298 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_term_children()' ); 1299 1299 if ( 0 == $id ) 1300 1300 return ''; 1301 1301 … … 1329 1329 * @return string The author's description. 1330 1330 */ 1331 1331 function get_the_author_description() { 1332 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'description\')' );1332 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'description\')' ); 1333 1333 return get_the_author_meta('description'); 1334 1334 } 1335 1335 … … 1342 1342 * @see the_author_meta() 1343 1343 */ 1344 1344 function the_author_description() { 1345 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'description\')' );1345 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'description\')' ); 1346 1346 the_author_meta('description'); 1347 1347 } 1348 1348 … … 1357 1357 * @return string The author's login name (username). 1358 1358 */ 1359 1359 function get_the_author_login() { 1360 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'login\')' );1360 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'login\')' ); 1361 1361 return get_the_author_meta('login'); 1362 1362 } 1363 1363 … … 1370 1370 * @see the_author_meta() 1371 1371 */ 1372 1372 function the_author_login() { 1373 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'login\')' );1373 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'login\')' ); 1374 1374 the_author_meta('login'); 1375 1375 } 1376 1376 … … 1385 1385 * @return string The author's first name. 1386 1386 */ 1387 1387 function get_the_author_firstname() { 1388 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'first_name\')' );1388 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'first_name\')' ); 1389 1389 return get_the_author_meta('first_name'); 1390 1390 } 1391 1391 … … 1398 1398 * @see the_author_meta() 1399 1399 */ 1400 1400 function the_author_firstname() { 1401 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'first_name\')' );1401 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'first_name\')' ); 1402 1402 the_author_meta('first_name'); 1403 1403 } 1404 1404 … … 1413 1413 * @return string The author's last name. 1414 1414 */ 1415 1415 function get_the_author_lastname() { 1416 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'last_name\')' );1416 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'last_name\')' ); 1417 1417 return get_the_author_meta('last_name'); 1418 1418 } 1419 1419 … … 1426 1426 * @see the_author_meta() 1427 1427 */ 1428 1428 function the_author_lastname() { 1429 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'last_name\')' );1429 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'last_name\')' ); 1430 1430 the_author_meta('last_name'); 1431 1431 } 1432 1432 … … 1441 1441 * @return string The author's nickname. 1442 1442 */ 1443 1443 function get_the_author_nickname() { 1444 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'nickname\')' );1444 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'nickname\')' ); 1445 1445 return get_the_author_meta('nickname'); 1446 1446 } 1447 1447 … … 1454 1454 * @see the_author_meta() 1455 1455 */ 1456 1456 function the_author_nickname() { 1457 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'nickname\')' );1457 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'nickname\')' ); 1458 1458 the_author_meta('nickname'); 1459 1459 } 1460 1460 … … 1469 1469 * @return string The author's username. 1470 1470 */ 1471 1471 function get_the_author_email() { 1472 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'email\')' );1472 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'email\')' ); 1473 1473 return get_the_author_meta('email'); 1474 1474 } 1475 1475 … … 1482 1482 * @see the_author_meta() 1483 1483 */ 1484 1484 function the_author_email() { 1485 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'email\')' );1485 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'email\')' ); 1486 1486 the_author_meta('email'); 1487 1487 } 1488 1488 … … 1497 1497 * @return string The author's ICQ number. 1498 1498 */ 1499 1499 function get_the_author_icq() { 1500 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'icq\')' );1500 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'icq\')' ); 1501 1501 return get_the_author_meta('icq'); 1502 1502 } 1503 1503 … … 1510 1510 * @see the_author_meta() 1511 1511 */ 1512 1512 function the_author_icq() { 1513 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'icq\')' );1513 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'icq\')' ); 1514 1514 the_author_meta('icq'); 1515 1515 } 1516 1516 … … 1525 1525 * @return string The author's Yahoo! IM name. 1526 1526 */ 1527 1527 function get_the_author_yim() { 1528 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'yim\')' );1528 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'yim\')' ); 1529 1529 return get_the_author_meta('yim'); 1530 1530 } 1531 1531 … … 1538 1538 * @see the_author_meta() 1539 1539 */ 1540 1540 function the_author_yim() { 1541 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'yim\')' );1541 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'yim\')' ); 1542 1542 the_author_meta('yim'); 1543 1543 } 1544 1544 … … 1553 1553 * @return string The author's MSN address. 1554 1554 */ 1555 1555 function get_the_author_msn() { 1556 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'msn\')' );1556 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'msn\')' ); 1557 1557 return get_the_author_meta('msn'); 1558 1558 } 1559 1559 … … 1566 1566 * @see the_author_meta() 1567 1567 */ 1568 1568 function the_author_msn() { 1569 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'msn\')' );1569 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'msn\')' ); 1570 1570 the_author_meta('msn'); 1571 1571 } 1572 1572 … … 1581 1581 * @return string The author's AIM address. 1582 1582 */ 1583 1583 function get_the_author_aim() { 1584 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'aim\')' );1584 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'aim\')' ); 1585 1585 return get_the_author_meta('aim'); 1586 1586 } 1587 1587 … … 1594 1594 * @deprecated Use the_author_meta('aim') 1595 1595 */ 1596 1596 function the_author_aim() { 1597 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'aim\')' );1597 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'aim\')' ); 1598 1598 the_author_meta('aim'); 1599 1599 } 1600 1600 … … 1610 1610 * @return string The author's display name. 1611 1611 */ 1612 1612 function get_author_name( $auth_id = false ) { 1613 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'display_name\')' );1613 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'display_name\')' ); 1614 1614 return get_the_author_meta('display_name', $auth_id); 1615 1615 } 1616 1616 … … 1625 1625 * @return string The URL to the author's page. 1626 1626 */ 1627 1627 function get_the_author_url() { 1628 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'url\')' );1628 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'url\')' ); 1629 1629 return get_the_author_meta('url'); 1630 1630 } 1631 1631 … … 1638 1638 * @see the_author_meta() 1639 1639 */ 1640 1640 function the_author_url() { 1641 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'url\')' );1641 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'url\')' ); 1642 1642 the_author_meta('url'); 1643 1643 } 1644 1644 … … 1653 1653 * @return int The author's ID. 1654 1654 */ 1655 1655 function get_the_author_ID() { 1656 _deprecated_function( __FUNCTION__, ' 2.8', 'get_the_author_meta(\'ID\')' );1656 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_the_author_meta(\'ID\')' ); 1657 1657 return get_the_author_meta('ID'); 1658 1658 } 1659 1659 … … 1666 1666 * @see the_author_meta() 1667 1667 */ 1668 1668 function the_author_ID() { 1669 _deprecated_function( __FUNCTION__, ' 2.8', 'the_author_meta(\'ID\')' );1669 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'the_author_meta(\'ID\')' ); 1670 1670 the_author_meta('ID'); 1671 1671 } 1672 1672 … … 1705 1705 * @param int $encode_html Optional. How to encode the content. 1706 1706 */ 1707 1707 function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { 1708 _deprecated_function( __FUNCTION__, ' 2.9', 'the_content_feed' );1708 _deprecated_function( __FUNCTION__, 'wp-core', '2.9', 'the_content_feed' ); 1709 1709 $content = get_the_content($more_link_text, $stripteaser, $more_file); 1710 1710 $content = apply_filters('the_content_rss', $content); 1711 1711 if ( $cut && !$encode_html ) … … 1751 1751 * @return string HTML stripped out of content with links at the bottom. 1752 1752 */ 1753 1753 function make_url_footnote( $content ) { 1754 _deprecated_function( __FUNCTION__, ' 2.9', '' );1754 _deprecated_function( __FUNCTION__, 'wp-core', '2.9', '' ); 1755 1755 preg_match_all( '/<a(.+?)href=\"(.+?)\"(.*?)>(.+?)<\/a>/', $content, $matches ); 1756 1756 $links_summary = "\n"; 1757 1757 for ( $i=0; $i<count($matches[0]); $i++ ) { … … 1791 1791 * @return string Translated context string without pipe 1792 1792 */ 1793 1793 function _c( $text, $domain = 'default' ) { 1794 _deprecated_function( __FUNCTION__, ' 2.9', '_x()' );1794 _deprecated_function( __FUNCTION__, 'wp-core', '2.9', '_x()' ); 1795 1795 return before_last_bar( translate( $text, $domain ) ); 1796 1796 } 1797 1797 … … 1810 1810 * @return string Translated text 1811 1811 */ 1812 1812 function translate_with_context( $text, $domain = 'default' ) { 1813 _deprecated_function( __FUNCTION__, ' 2.9', '_x()' );1813 _deprecated_function( __FUNCTION__, 'wp-core', '2.9', '_x()' ); 1814 1814 return before_last_bar( translate( $text, $domain ) ); 1815 1815 } 1816 1816 … … 1827 1827 * 1828 1828 */ 1829 1829 function _nc( $single, $plural, $number, $domain = 'default' ) { 1830 _deprecated_function( __FUNCTION__, ' 2.9', '_nx()' );1830 _deprecated_function( __FUNCTION__, 'wp-core', '2.9', '_nx()' ); 1831 1831 return before_last_bar( _n( $single, $plural, $number, $domain ) ); 1832 1832 } 1833 1833 … … 1840 1840 * @see _n() 1841 1841 */ 1842 1842 function __ngettext() { 1843 _deprecated_function( __FUNCTION__, ' 2.8', '_n()' );1843 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', '_n()' ); 1844 1844 $args = func_get_args(); 1845 1845 return call_user_func_array('_n', $args); 1846 1846 } … … 1854 1854 * @see _n_noop() 1855 1855 */ 1856 1856 function __ngettext_noop() { 1857 _deprecated_function( __FUNCTION__, ' 2.8', '_n_noop()' );1857 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', '_n_noop()' ); 1858 1858 $args = func_get_args(); 1859 1859 return call_user_func_array('_n_noop', $args); 1860 1860 … … 1871 1871 * @return array List of all options. 1872 1872 */ 1873 1873 function get_alloptions() { 1874 _deprecated_function( __FUNCTION__, ' 3.0', 'wp_load_alloptions()' );1874 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'wp_load_alloptions()' ); 1875 1875 return wp_load_alloptions(); 1876 1876 } 1877 1877 … … 1890 1890 * @return string 1891 1891 */ 1892 1892 function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) { 1893 _deprecated_function( __FUNCTION__, ' 2.5', 'wp_get_attachment_link()' );1893 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_get_attachment_link()' ); 1894 1894 $id = (int) $id; 1895 1895 $_post = & get_post($id); 1896 1896 … … 1919 1919 * @return array Icon URL and full path to file, respectively. 1920 1920 */ 1921 1921 function get_attachment_icon_src( $id = 0, $fullsize = false ) { 1922 _deprecated_function( __FUNCTION__, ' 2.5', 'wp_get_attachment_image_src()' );1922 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_get_attachment_image_src()' ); 1923 1923 $id = (int) $id; 1924 1924 if ( !$post = & get_post($id) ) 1925 1925 return false; … … 1964 1964 * @return string HTML content. 1965 1965 */ 1966 1966 function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) { 1967 _deprecated_function( __FUNCTION__, ' 2.5', 'wp_get_attachment_image()' );1967 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_get_attachment_image()' ); 1968 1968 $id = (int) $id; 1969 1969 if ( !$post = & get_post($id) ) 1970 1970 return false; … … 2021 2021 * @return string 2022 2022 */ 2023 2023 function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) { 2024 _deprecated_function( __FUNCTION__, ' 2.5', 'wp_get_attachment_image()' );2024 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_get_attachment_image()' ); 2025 2025 $id = (int) $id; 2026 2026 if ( !$post = & get_post($id) ) 2027 2027 return false; … … 2048 2048 * @return object|array 2049 2049 */ 2050 2050 function get_link($bookmark_id, $output = OBJECT, $filter = 'raw') { 2051 _deprecated_function( __FUNCTION__, ' 2.1', 'get_bookmark()' );2051 _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_bookmark()' ); 2052 2052 return get_bookmark($bookmark_id, $output, $filter); 2053 2053 } 2054 2054 … … 2065 2065 * @return string The cleaned URL. 2066 2066 */ 2067 2067 function sanitize_url( $url, $protocols = null ) { 2068 _deprecated_function( __FUNCTION__, ' 2.8', 'esc_url_raw()' );2068 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'esc_url_raw()' ); 2069 2069 return esc_url_raw( $url, $protocols ); 2070 2070 } 2071 2071 … … 2090 2090 if ( $context == 'db' ) 2091 2091 _deprecated_function( 'clean_url( $context = \'db\' )', '3.0', 'esc_url_raw()' ); 2092 2092 else 2093 _deprecated_function( __FUNCTION__, ' 3.0', 'esc_url()' );2093 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'esc_url()' ); 2094 2094 return esc_url( $url, $protocols, $context ); 2095 2095 } 2096 2096 … … 2108 2108 * @return string Escaped text. 2109 2109 */ 2110 2110 function js_escape( $text ) { 2111 _deprecated_function( __FUNCTION__, ' 2.8', 'esc_js()' );2111 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'esc_js()' ); 2112 2112 return esc_js( $text ); 2113 2113 } 2114 2114 … … 2120 2120 * @see esc_html() 2121 2121 */ 2122 2122 function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { 2123 _deprecated_function( __FUNCTION__, ' 2.8', 'esc_html()' );2123 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'esc_html()' ); 2124 2124 if ( func_num_args() > 1 ) { // Maintain backwards compat for people passing additional args 2125 2125 $args = func_get_args(); 2126 2126 return call_user_func_array( '_wp_specialchars', $args ); … … 2142 2142 * @return string 2143 2143 */ 2144 2144 function attribute_escape( $text ) { 2145 _deprecated_function( __FUNCTION__, ' 2.8', 'esc_attr()' );2145 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'esc_attr()' ); 2146 2146 return esc_attr( $text ); 2147 2147 } 2148 2148 … … 2167 2167 * @param mixed $params,... Widget parameters. 2168 2168 */ 2169 2169 function register_sidebar_widget($name, $output_callback, $classname = '') { 2170 _deprecated_function( __FUNCTION__, ' 2.8', 'wp_register_sidebar_widget()' );2170 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'wp_register_sidebar_widget()' ); 2171 2171 // Compat 2172 2172 if ( is_array($name) ) { 2173 2173 if ( count($name) == 3 ) … … 2199 2199 * @param int|string $id Widget ID. 2200 2200 */ 2201 2201 function unregister_sidebar_widget($id) { 2202 _deprecated_function( __FUNCTION__, ' 2.8', 'wp_unregister_sidebar_widget()' );2202 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'wp_unregister_sidebar_widget()' ); 2203 2203 return wp_unregister_sidebar_widget($id); 2204 2204 } 2205 2205 … … 2224 2224 * @param int $height Widget height. 2225 2225 */ 2226 2226 function register_widget_control($name, $control_callback, $width = '', $height = '') { 2227 _deprecated_function( __FUNCTION__, ' 2.8', 'wp_register_widget_control()' );2227 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'wp_register_widget_control()' ); 2228 2228 // Compat 2229 2229 if ( is_array($name) ) { 2230 2230 if ( count($name) == 3 ) … … 2258 2258 * @param int|string $id Widget ID. 2259 2259 */ 2260 2260 function unregister_widget_control($id) { 2261 _deprecated_function( __FUNCTION__, ' 2.8', 'wp_unregister_widget_control()' );2261 _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'wp_unregister_widget_control()' ); 2262 2262 return wp_unregister_widget_control($id); 2263 2263 } 2264 2264 … … 2276 2276 * @return bool True deletion completed and false if user_id is not a number. 2277 2277 */ 2278 2278 function delete_usermeta( $user_id, $meta_key, $meta_value = '' ) { 2279 _deprecated_function( __FUNCTION__, ' 3.0', 'delete_user_meta()' );2279 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'delete_user_meta()' ); 2280 2280 global $wpdb; 2281 2281 if ( !is_numeric( $user_id ) ) 2282 2282 return false; … … 2322 2322 * @return mixed 2323 2323 */ 2324 2324 function get_usermeta( $user_id, $meta_key = '' ) { 2325 _deprecated_function( __FUNCTION__, ' 3.0', 'get_user_meta()' );2325 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'get_user_meta()' ); 2326 2326 global $wpdb; 2327 2327 $user_id = (int) $user_id; 2328 2328 … … 2376 2376 * @return bool True on successful update, false on failure. 2377 2377 */ 2378 2378 function update_usermeta( $user_id, $meta_key, $meta_value ) { 2379 _deprecated_function( __FUNCTION__, ' 3.0', 'update_user_meta()' );2379 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'update_user_meta()' ); 2380 2380 global $wpdb; 2381 2381 if ( !is_numeric( $user_id ) ) 2382 2382 return false; … … 2423 2423 * @param boolean $add Optional, default is true. Add or remove links. Defaults to true. 2424 2424 */ 2425 2425 function automatic_feed_links( $add = true ) { 2426 _deprecated_function( __FUNCTION__, ' 3.0', "add_theme_support( 'automatic-feed-links' )" );2426 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', "add_theme_support( 'automatic-feed-links' )" ); 2427 2427 2428 2428 if ( $add ) 2429 2429 add_theme_support( 'automatic-feed-links' ); … … 2440 2440 * @see get_the_author_meta() 2441 2441 */ 2442 2442 function get_profile( $field, $user = false ) { 2443 _deprecated_function( __FUNCTION__, ' 3.0', 'get_the_author_meta()' );2443 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'get_the_author_meta()' ); 2444 2444 if ( $user ) { 2445 2445 $user = get_user_by( 'login', $user ); 2446 2446 $user = $user->ID; … … 2457 2457 * @see count_user_posts() 2458 2458 */ 2459 2459 function get_usernumposts( $userid ) { 2460 _deprecated_function( __FUNCTION__, ' 3.0', 'count_user_posts()' );2460 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'count_user_posts()' ); 2461 2461 return count_user_posts( $userid ); 2462 2462 } 2463 2463 … … 2489 2489 * @return string Fixed text. 2490 2490 */ 2491 2491 function funky_javascript_fix($text) { 2492 _deprecated_function( __FUNCTION__, ' 3.0' );2492 _deprecated_function( __FUNCTION__, 'wp-core', '3.0' ); 2493 2493 // Fixes for browsers' javascript bugs 2494 2494 global $is_macIE, $is_winIE; 2495 2495 … … 2510 2510 * @param int $deprecated Not used (Was $timezone = 0) 2511 2511 */ 2512 2512 function trackback_rdf($deprecated = '') { 2513 _deprecated_function( __FUNCTION__, ' 3.0' );2513 _deprecated_function( __FUNCTION__, 'wp-core', '3.0' ); 2514 2514 return ''; 2515 2515 } -
wp-includes/formatting.php
900 900 */ 901 901 function convert_chars($content, $deprecated = '') { 902 902 if ( !empty( $deprecated ) ) 903 _deprecated_argument( __FUNCTION__, ' 0.71' );903 _deprecated_argument( __FUNCTION__, 'wp-core', '0.71' ); 904 904 905 905 // Translation of invalid Unicode references range to valid range 906 906 $wp_htmltranswinuni = array( … … 1481 1481 */ 1482 1482 function is_email( $email, $deprecated = false ) { 1483 1483 if ( ! empty( $deprecated ) ) 1484 _deprecated_argument( __FUNCTION__, ' 3.0' );1484 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0' ); 1485 1485 1486 1486 // Test for the minimum length the email can be 1487 1487 if ( strlen( $email ) < 3 ) { -
wp-includes/functions.php
561 561 global $wpdb; 562 562 563 563 if ( !empty( $deprecated ) ) 564 _deprecated_argument( __FUNCTION__, ' 2.3' );564 _deprecated_argument( __FUNCTION__, 'wp-core', '2.3' ); 565 565 566 566 $option = trim($option); 567 567 if ( empty($option) ) … … 1300 1300 */ 1301 1301 function wp_get_http_headers( $url, $deprecated = false ) { 1302 1302 if ( !empty( $deprecated ) ) 1303 _deprecated_argument( __FUNCTION__, ' 2.7' );1303 _deprecated_argument( __FUNCTION__, 'wp-core', '2.7' ); 1304 1304 1305 1305 $response = wp_remote_head( $url ); 1306 1306 … … 2270 2270 */ 2271 2271 function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { 2272 2272 if ( !empty( $deprecated ) ) 2273 _deprecated_argument( __FUNCTION__, ' 2.0' );2273 _deprecated_argument( __FUNCTION__, 'wp-core', '2.0' ); 2274 2274 2275 2275 if ( empty( $name ) ) 2276 2276 return array( 'error' => __( 'Empty filename' ) ); … … 3221 3221 * trigger or false to not trigger error. 3222 3222 * 3223 3223 * @param string $function The function that was called 3224 * @param string $version The version of WordPress that deprecated the function 3224 * @param string $package The package that $function belongs to 3225 * @param string $version The version of $package that deprecated the function 3225 3226 * @param string $replacement Optional. The function that should have been called 3226 3227 */ 3227 function _deprecated_function( $function, $ version, $replacement=null ) {3228 function _deprecated_function( $function, $package, $version, $replacement=null ) { 3228 3229 3229 3230 do_action( 'deprecated_function_run', $function, $replacement, $version ); 3230 3231 … … 3259 3260 * trigger or false to not trigger error. 3260 3261 * 3261 3262 * @param string $file The file that was included 3262 * @param string $version The version of WordPress that deprecated the file 3263 * @param string $package The package that $function belongs to 3264 * @param string $version The version of $package that deprecated the file 3263 3265 * @param string $replacement Optional. The file that should have been included based on ABSPATH 3264 3266 * @param string $message Optional. A message regarding the change 3265 3267 */ 3266 function _deprecated_file( $file, $ version, $replacement = null, $message = '' ) {3268 function _deprecated_file( $file, $package, $version, $replacement = null, $message = '' ) { 3267 3269 3268 do_action( 'deprecated_file_included', $file, $replacement, $ version, $message );3270 do_action( 'deprecated_file_included', $file, $replacement, $package, $version, $message ); 3269 3271 3270 3272 // Allow plugin to filter the output error trigger 3271 3273 if ( WP_DEBUG && apply_filters( 'deprecated_file_trigger_error', true ) ) { … … 3285 3287 * For example: 3286 3288 * <code> 3287 3289 * if ( !empty($deprecated) ) 3288 * _deprecated_argument( __FUNCTION__, ' 3.0' );3290 * _deprecated_argument( __FUNCTION__, 'wp-core', '3.0' ); 3289 3291 * </code> 3290 3292 * 3291 3293 * There is a hook deprecated_argument_run that will be called that can be used … … 3305 3307 * trigger or false to not trigger error. 3306 3308 * 3307 3309 * @param string $function The function that was called 3308 * @param string $version The version of WordPress that deprecated the argument used 3310 * @param string $package The package that $function belongs to 3311 * @param string $version The version of $package that deprecated the argument used 3309 3312 * @param string $message Optional. A message regarding the change. 3310 3313 */ 3311 function _deprecated_argument( $function, $ version, $message = null ) {3314 function _deprecated_argument( $function, $package, $version, $message = null ) { 3312 3315 3313 do_action( 'deprecated_argument_run', $function, $message, $ version );3316 do_action( 'deprecated_argument_run', $function, $message, $package, $version ); 3314 3317 3315 3318 // Allow plugin to filter the output error trigger 3316 3319 if ( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) { -
wp-includes/general-template.php
402 402 switch( $show ) { 403 403 case 'home' : // DEPRECATED 404 404 case 'siteurl' : // DEPRECATED 405 _deprecated_argument( __FUNCTION__, ' 2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> option instead.' ), 'url' ) );405 _deprecated_argument( __FUNCTION__, 'wp-core', '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> option instead.' ), 'url' ) ); 406 406 case 'url' : 407 407 $output = home_url(); 408 408 break; … … 462 462 $output = str_replace('_', '-', $output); 463 463 break; 464 464 case 'text_direction': 465 //_deprecated_argument( __FUNCTION__, ' 2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> function instead.' ), 'is_rtl()' ) );465 //_deprecated_argument( __FUNCTION__, 'wp-core', '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> function instead.' ), 'is_rtl()' ) ); 466 466 if ( function_exists( 'is_rtl' ) ) { 467 467 $output = is_rtl() ? 'rtl' : 'ltr'; 468 468 } else { -
wp-includes/kses.php
1368 1368 */ 1369 1369 function safecss_filter_attr( $css, $deprecated = '' ) { 1370 1370 if ( !empty( $deprecated ) ) 1371 _deprecated_argument( __FUNCTION__, ' 2.8.1' ); // Never implemented1371 _deprecated_argument( __FUNCTION__, 'wp-core', '2.8.1' ); // Never implemented 1372 1372 1373 1373 $css = wp_kses_no_null($css); 1374 1374 $css = str_replace(array("\n","\r","\t"), '', $css); -
wp-includes/l10n.php
389 389 if ( false !== $plugin_rel_path ) { 390 390 $path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/' ); 391 391 } else if ( false !== $abs_rel_path ) { 392 _deprecated_argument( __FUNCTION__, ' 2.7' );392 _deprecated_argument( __FUNCTION__, 'wp-core', '2.7' ); 393 393 $path = ABSPATH . trim( $abs_rel_path, '/' ); 394 394 } else { 395 395 $path = WP_PLUGIN_DIR; -
wp-includes/link-template.php
218 218 */ 219 219 function post_permalink( $post_id = 0, $deprecated = '' ) { 220 220 if ( !empty( $deprecated ) ) 221 _deprecated_argument( __FUNCTION__, ' 1.3' );221 _deprecated_argument( __FUNCTION__, 'wp-core', '1.3' ); 222 222 223 223 return get_permalink($post_id); 224 224 } … … 846 846 */ 847 847 function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) { 848 848 if ( ! empty( $deprecated ) ) 849 _deprecated_argument( __FUNCTION__, ' 3.0.0' );849 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0.0' ); 850 850 851 851 if ( !$post = &get_post( $id ) ) 852 852 return; -
wp-includes/load.php
461 461 462 462 // Check for hacks file if the option is enabled 463 463 if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) { 464 _deprecated_file( 'my-hacks.php', ' 1.5' );464 _deprecated_file( 'my-hacks.php', 'wp-core', '1.5' ); 465 465 array_unshift( $plugins, ABSPATH . 'my-hacks.php' ); 466 466 } 467 467 -
wp-includes/ms-deprecated.php
20 20 * @see wp_generate_password() 21 21 */ 22 22 function generate_random_password( $len = 8 ) { 23 _deprecated_function( __FUNCTION__, ' 3.0', 'wp_generate_password()' );23 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'wp_generate_password()' ); 24 24 return wp_generate_password( $len ); 25 25 } 26 26 … … 41 41 * 42 42 */ 43 43 function is_site_admin( $user_login = '' ) { 44 _deprecated_function( __FUNCTION__, ' 3.0', 'is_super_admin()' );44 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'is_super_admin()' ); 45 45 46 46 if ( empty( $user_login ) ) { 47 47 $user_id = get_current_user_id(); … … 65 65 * @see wp_die() 66 66 */ 67 67 function graceful_fail( $message ) { 68 _deprecated_function( __FUNCTION__, ' 3.0', 'wp_die()' );68 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'wp_die()' ); 69 69 $message = apply_filters( 'graceful_fail', $message ); 70 70 $message_template = apply_filters( 'graceful_fail_template', 71 71 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 101 101 * @deprecated Use $GLOBALS['current_user']->ID 102 102 */ 103 103 function get_current_user_id() { 104 _deprecated_function( __FUNCTION__, ' 3.0', '$GLOBALS[\'current_user\']->ID' );104 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', '$GLOBALS[\'current_user\']->ID' ); 105 105 return $GLOBALS['current_user']->ID; 106 106 } 107 107 … … 112 112 * @see get_user_by() 113 113 */ 114 114 function get_user_details( $username ) { 115 _deprecated_function( __FUNCTION__, ' 3.0', 'get_user_by()' );115 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'get_user_by()' ); 116 116 return get_user_by('login', $username); 117 117 } 118 118 … … 123 123 * @see clean_post_cache() 124 124 */ 125 125 function clear_global_post_cache( $post_id ) { 126 _deprecated_function( __FUNCTION__, ' 3.0', 'clean_post_cache()' );126 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'clean_post_cache()' ); 127 127 } 128 128 129 129 /** … … 133 133 * @see is_main_site() 134 134 */ 135 135 function is_main_blog() { 136 _deprecated_function( __FUNCTION__, ' 3.0', 'is_main_site()' );136 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'is_main_site()' ); 137 137 return is_main_site(); 138 138 } 139 139 … … 144 144 * @see is_email() 145 145 */ 146 146 function validate_email( $email, $check_domain = true) { 147 _deprecated_function( __FUNCTION__, ' 3.0', 'is_email()' );147 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'is_email()' ); 148 148 return is_email( $email, $check_domain ); 149 149 } 150 150 -
wp-includes/pluggable-deprecated.php
31 31 * @return object returns wp_set_current_user() 32 32 */ 33 33 function set_current_user($id, $name = '') { 34 _deprecated_function( __FUNCTION__, ' 3.0', 'wp_set_current_user()' );34 _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'wp_set_current_user()' ); 35 35 return wp_set_current_user($id, $name); 36 36 } 37 37 endif; … … 53 53 * @param bool $remember Optional. Remember that the user is logged in 54 54 */ 55 55 function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) { 56 _deprecated_function( __FUNCTION__, ' 2.5', 'wp_set_auth_cookie()' );56 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_set_auth_cookie()' ); 57 57 $user = get_userdatabylogin($username); 58 58 wp_set_auth_cookie($user->ID, $remember); 59 59 } … … 71 71 * @see wp_clear_auth_cookie() 72 72 */ 73 73 function wp_clearcookie() { 74 _deprecated_function( __FUNCTION__, ' 2.5', 'wp_clear_auth_cookie()' );74 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_clear_auth_cookie()' ); 75 75 wp_clear_auth_cookie(); 76 76 } 77 77 else : … … 92 92 * @return bool Always returns false 93 93 */ 94 94 function wp_get_cookie_login() { 95 _deprecated_function( __FUNCTION__, ' 2.5' );95 _deprecated_function( __FUNCTION__, 'wp-core', '2.5' ); 96 96 return false; 97 97 } 98 98 else : … … 120 120 * @return bool False on login failure, true on successful check 121 121 */ 122 122 function wp_login($username, $password, $deprecated = '') { 123 _deprecated_function( __FUNCTION__, ' 2.5', 'wp_signon()' );123 _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_signon()' ); 124 124 global $error; 125 125 126 126 $user = wp_authenticate($username, $password); -
wp-includes/post-template.php
250 250 */ 251 251 function get_the_excerpt( $deprecated = '' ) { 252 252 if ( !empty( $deprecated ) ) 253 _deprecated_argument( __FUNCTION__, ' 2.3' );253 _deprecated_argument( __FUNCTION__, 'wp-core', '2.3' ); 254 254 255 255 global $post; 256 256 $output = $post->post_excerpt; … … 923 923 */ 924 924 function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) { 925 925 if ( !empty( $deprecated ) ) 926 _deprecated_argument( __FUNCTION__, ' 2.5' );926 _deprecated_argument( __FUNCTION__, 'wp-core', '2.5' ); 927 927 928 928 if ( $fullsize ) 929 929 echo wp_get_attachment_link($id, 'full', $permalink); -
wp-includes/registration-functions.php
4 4 * 5 5 * @package WordPress 6 6 */ 7 _deprecated_file( basename(__FILE__), ' 2.1', WPINC . '/registration.php' );7 _deprecated_file( basename(__FILE__), 'wp-core', '2.1', WPINC . '/registration.php' ); 8 8 require_once(ABSPATH . WPINC . '/registration.php'); 9 9 ?> -
wp-includes/rss-functions.php
5 5 * @package WordPress 6 6 */ 7 7 8 _deprecated_file( basename(__FILE__), ' 2.1', WPINC . '/rss.php' );8 _deprecated_file( basename(__FILE__), 'wp-core', '2.1', WPINC . '/rss.php' ); 9 9 require_once (ABSPATH . WPINC . '/rss.php'); 10 10 ?> -
wp-includes/rss.php
15 15 /** 16 16 * Deprecated. Use SimplePie (class-simplepie.php) instead. 17 17 */ 18 _deprecated_file( basename( __FILE__ ), ' 3.0', WPINC . '/class-simplepie.php' );18 _deprecated_file( basename( __FILE__ ), 'wp-core', '3.0', WPINC . '/class-simplepie.php' ); 19 19 20 20 /* 21 21 * Hook to use another RSS object instead of MagpieRSS -
wp-includes/theme-compat/comments-popup.php
7 7 * This file is here for Backwards compatibility with old themes and will be removed in a future version 8 8 * 9 9 */ 10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), ' 3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), 'wp-core', '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) ); 11 11 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 12 12 <html xmlns="http://www.w3.org/1999/xhtml"> 13 13 <head> -
wp-includes/theme-compat/comments.php
7 7 * This file is here for Backwards compatibility with old themes and will be removed in a future version 8 8 * 9 9 */ 10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), ' 3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), 'wp-core', '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) ); 11 11 12 12 // Do not delete these lines 13 13 if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) -
wp-includes/theme-compat/footer.php
7 7 * This file is here for Backwards compatibility with old themes and will be removed in a future version 8 8 * 9 9 */ 10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), ' 3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), 'wp-core', '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) ); 11 11 ?> 12 12 13 13 <hr /> -
wp-includes/theme-compat/header.php
7 7 * This file is here for Backwards compatibility with old themes and will be removed in a future version 8 8 * 9 9 */ 10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), ' 3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), 'wp-core', '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) ); 11 11 ?> 12 12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 13 13 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> -
wp-includes/theme-compat/sidebar.php
7 7 * This file is here for Backwards compatibility with old themes and will be removed in a future version 8 8 * 9 9 */ 10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), ' 3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), 'wp-core', '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) ); 11 11 ?> 12 12 <div id="sidebar" role="complementary"> 13 13 <ul> -
wp-includes/user.php
234 234 global $wpdb; 235 235 236 236 if ( !empty( $deprecated ) ) 237 _deprecated_argument( __FUNCTION__, ' 3.0' );237 _deprecated_argument( __FUNCTION__, 'wp-core', '3.0' ); 238 238 239 239 if ( empty($user) ) { 240 240 $user = wp_get_current_user(); -
wp-includes/widgets.php
993 993 */ 994 994 function wp_get_sidebars_widgets($deprecated = true) { 995 995 if ( $deprecated !== true ) 996 _deprecated_argument( __FUNCTION__, ' 2.8.1' );996 _deprecated_argument( __FUNCTION__, 'wp-core', '2.8.1' ); 997 997 998 998 global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets; 999 999