WordPress.org

Make WordPress Core

Ticket #13874: _deprecated_package.patch

File _deprecated_package.patch, 73.6 KB (added by johnjamesjacoby, 11 years ago)

_deprecated_ function enhancements

  • wp-admin/admin-functions.php

     
    99 * @subpackage Administration
    1010 */
    1111
    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' );
    1313
    1414/** WordPress Administration API: Includes all Administration functions. */
    1515require_once(ABSPATH . 'wp-admin/includes/admin.php');
  • wp-admin/includes/class-wp-filesystem-base.php

     
    9999         * @return string The location of the remote path.
    100100         */
    101101        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()' );
    103103                $this->verbose = $echo;
    104104                return $this->abspath();
    105105        }
     
    117117         * @return string The location of the remote path.
    118118         */
    119119        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()' );
    121121                $this->verbose = $echo;
    122122                return $this->abspath();
    123123        }
  • wp-admin/includes/deprecated.php

     
    1919 * @see wp_tiny_mce()
    2020 */
    2121function tinymce_include() {
    22         _deprecated_function( __FUNCTION__, '2.1', 'wp_tiny_mce()' );
     22        _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_tiny_mce()' );
    2323
    2424        wp_tiny_mce();
    2525}
     
    3232 *
    3333 */
    3434function documentation_link() {
    35         _deprecated_function( __FUNCTION__, '2.5', '' );
     35        _deprecated_function( __FUNCTION__, 'wp-core', '2.5', '' );
    3636        return;
    3737}
    3838
     
    5050 * @return mixed Array(height,width) of shrunk dimensions.
    5151 */
    5252function 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()' );
    5454        return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
    5555}
    5656
     
    6767 * @param unknown_type $popular_ids
    6868 */
    6969function 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()' );
    7171        global $post_ID;
    7272        wp_category_checklist( $post_ID );
    7373}
     
    8383 * @param unknown_type $default
    8484 */
    8585function 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()' );
    8787        global $link_id;
    8888        wp_link_category_checklist( $link_id );
    8989}
     
    104104 * @return unknown
    105105 */
    106106function 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()' );
    108108        if (!$categories )
    109109                $categories = get_categories( array('hide_empty' => 0) );
    110110
     
    140140 * @return unknown
    141141 */
    142142function 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()' );
    144144        return register_setting( $option_group, $option_name, $sanitize_callback );
    145145}
    146146
     
    158158 * @return unknown
    159159 */
    160160function 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()' );
    162162        return unregister_setting( $option_group, $option_name, $sanitize_callback );
    163163}
    164164
     
    171171 * @param string $filename
    172172**/
    173173function codepress_get_lang( $filename ) {
    174         _deprecated_function( __FUNCTION__, '3.0' );
     174        _deprecated_function( __FUNCTION__, 'wp-core', '3.0' );
    175175        return;
    176176}
    177177
     
    182182 * @deprecated 3.0.0
    183183**/
    184184function codepress_footer_js() {
    185         _deprecated_function( __FUNCTION__, '3.0' );
     185        _deprecated_function( __FUNCTION__, 'wp-core', '3.0' );
    186186        return;
    187187}
    188188
     
    193193 * @deprecated 3.0.0
    194194**/
    195195function use_codepress() {
    196         _deprecated_function( __FUNCTION__, '3.0' );
     196        _deprecated_function( __FUNCTION__, 'wp-core', '3.0' );
    197197        return;
    198198}
    199199
  • wp-admin/includes/image.php

     
    2222 */
    2323function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
    2424        if ( !empty( $deprecated ) )
    25                 _deprecated_argument( __FUNCTION__, '1.2' );
     25                _deprecated_argument( __FUNCTION__, 'wp-core', '1.2' );
    2626        $thumbpath = image_resize( $file, $max_side, $max_side );
    2727        return apply_filters( 'wp_create_thumbnail', $thumbpath );
    2828}
  • wp-admin/includes/meta-boxes.php

     
    703703        global $link;
    704704
    705705        if ( !empty( $deprecated ) )
    706                 _deprecated_argument( __FUNCTION__, '0.0' ); // Never implemented
     706                _deprecated_argument( __FUNCTION__, 'wp-core', '0.0' ); // Never implemented
    707707
    708708        $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: '';
    709709        $rels = preg_split('/\s+/', $link_rel);
  • wp-admin/includes/ms-deprecated.php

     
    1313 * @deprecated 3.0.0
    1414 */
    1515function wpmu_menu() {
    16         _deprecated_function(__FUNCTION__, '3.0' );
     16        _deprecated_function( __FUNCTION__, 'wp-core', '3.0' );
    1717        // deprecated. See #11763
    1818}
    1919
     
    2424  * @see is_upload_space_available()
    2525 */
    2626function wpmu_checkAvailableSpace() {
    27         _deprecated_function(__FUNCTION__, '3.0', 'is_upload_space_available()' );
     27        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'is_upload_space_available()' );
    2828
    2929        if ( !is_upload_space_available() )
    3030                wp_die( __('Sorry, you must delete files before you can upload any more.') );
     
    3434 * @deprecated 3.0.0
    3535 */
    3636function mu_options( $options ) {
    37         _deprecated_function(__FUNCTION__, '3.0' );
     37        _deprecated_function( __FUNCTION__, 'wp-core', '3.0' );
    3838        return $options;
    3939}
    4040
     
    4343 * @see activate_plugin()
    4444 */
    4545function activate_sitewide_plugin() {
    46         _deprecated_function(__FUNCTION__, '3.0', 'activate_plugin()' );
     46        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'activate_plugin()' );
    4747        return false;
    4848}
    4949
     
    5252 * @see deactivate_sitewide_plugin()
    5353 */
    5454function deactivate_sitewide_plugin( $plugin = false ) {
    55         _deprecated_function(__FUNCTION__, '3.0', 'deactivate_plugin()' );
     55        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'deactivate_plugin()' );
    5656        return;
    5757}
    5858
     
    6161 * @see is_network_only_plugin()
    6262 */
    6363function 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()' );
    6565        return is_network_only_plugin( $file );
    6666}
    6767
  • wp-admin/includes/plugin.php

     
    8989
    9090        // Site Wide Only is the old header for Network
    9191        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' ) );
    9393                $plugin_data['Network'] = $plugin_data['_sitewide'];
    9494        }
    9595        $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) );
     
    14371437        global $new_whitelist_options;
    14381438
    14391439        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.' ) );
    14411441                $option_group = 'general';
    14421442        }
    14431443
     
    14601460        global $new_whitelist_options;
    14611461
    14621462        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.' ) );
    14641464                $option_group = 'general';
    14651465        }
    14661466
  • wp-admin/includes/template.php

     
    29822982        global $wp_settings_sections;
    29832983
    29842984        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.' ) );
    29862986                $page = 'general';
    29872987        }
    29882988
     
    30223022        global $wp_settings_fields;
    30233023
    30243024        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.' ) );
    30263026                $page = 'general';
    30273027        }
    30283028
  • wp-admin/includes/upgrade.php

     
    3838        global $wp_rewrite;
    3939
    4040        if ( !empty( $deprecated ) )
    41                 _deprecated_argument( __FUNCTION__, '2.6' );
     41                _deprecated_argument( __FUNCTION__, 'wp-core', '2.6' );
    4242
    4343        wp_check_mysql_version();
    4444        wp_cache_flush();
  • wp-admin/upgrade-functions.php

     
    88 * @subpackage Administration
    99 */
    1010
    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' );
    1212require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
    1313?>
  • wp-app.php

     
    871871         */
    872872        function get_categories_url($deprecated = '') {
    873873                if ( !empty( $deprecated ) )
    874                         _deprecated_argument( __FUNCTION__, '2.5' );
     874                        _deprecated_argument( __FUNCTION__, 'wp-core', '2.5' );
    875875                return $this->app_base . $this->CATEGORIES_PATH;
    876876        }
    877877
  • wp-includes/author-template.php

     
    2424        global $authordata;
    2525
    2626        if ( !empty( $deprecated ) )
    27                 _deprecated_argument( __FUNCTION__, '2.1' );
     27                _deprecated_argument( __FUNCTION__, 'wp-core', '2.1' );
    2828
    2929        return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null);
    3030}
     
    5050 */
    5151function the_author( $deprecated = '', $deprecated_echo = true ) {
    5252        if ( !empty( $deprecated ) )
    53                 _deprecated_argument( __FUNCTION__, '2.1' );
     53                _deprecated_argument( __FUNCTION__, 'wp-core', '2.1' );
    5454        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.') );
    5656        if ( $deprecated_echo )
    5757                echo get_the_author();
    5858        return get_the_author();
     
    198198 */
    199199function the_author_posts_link($deprecated = '') {
    200200        if ( !empty( $deprecated ) )
    201                 _deprecated_argument( __FUNCTION__, '2.1' );
     201                _deprecated_argument( __FUNCTION__, 'wp-core', '2.1' );
    202202
    203203        global $authordata;
    204204        $link = sprintf(
  • wp-includes/capabilities.php

     
    719719         */
    720720        function has_cap( $cap ) {
    721721                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.') );
    723723                        $cap = $this->translate_level_to_cap( $cap );
    724724                }
    725725
  • wp-includes/category-template.php

     
    351351
    352352        // Back compat.
    353353        if ( isset( $args['type'] ) && 'link' == $args['type'] ) {
    354                 _deprecated_argument( __FUNCTION__, '3.0', '' );
     354                _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', '' );
    355355                $args['taxonomy'] = 'link_category';
    356356        }
    357357
  • wp-includes/category.php

     
    4444
    4545        // Back compat
    4646        if ( isset($args['type']) && 'link' == $args['type'] ) {
    47                 _deprecated_argument( __FUNCTION__, '3.0', '' );
     47                _deprecated_argument( __FUNCTION__, 'wp-core', '3.0', '' );
    4848                $taxonomy = $args['taxonomy'] = 'link_category';
    4949        }
    5050
  • wp-includes/comment-template.php

     
    529529 */
    530530function comments_link( $deprecated = '', $deprecated_2 = '' ) {
    531531        if ( !empty( $deprecated ) )
    532                 _deprecated_argument( __FUNCTION__, '0.72' );
     532                _deprecated_argument( __FUNCTION__, 'wp-core', '0.72' );
    533533        if ( !empty( $deprecated_2 ) )
    534                 _deprecated_argument( __FUNCTION__, '1.3' );
     534                _deprecated_argument( __FUNCTION__, 'wp-core', '1.3' );
    535535        echo get_comments_link();
    536536}
    537537
     
    576576        global $id;
    577577
    578578        if ( !empty( $deprecated ) )
    579                 _deprecated_argument( __FUNCTION__, '1.3' );
     579                _deprecated_argument( __FUNCTION__, 'wp-core', '1.3' );
    580580
    581581        $number = get_comments_number($id);
    582582
     
    728728 */
    729729function trackback_url( $deprecated_echo = true ) {
    730730        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.') );
    732732        if ( $deprecated_echo )
    733733                echo get_trackback_url();
    734734        else
  • wp-includes/comment.php

     
    15251525 */
    15261526function discover_pingback_server_uri( $url, $deprecated = '' ) {
    15271527        if ( !empty( $deprecated ) )
    1528                 _deprecated_argument( __FUNCTION__, '2.7' );
     1528                _deprecated_argument( __FUNCTION__, 'wp-core', '2.7' );
    15291529
    15301530        $pingback_str_dquote = 'rel="pingback"';
    15311531        $pingback_str_squote = 'rel=\'pingback\'';
  • wp-includes/cron.php

     
    136136        // Backward compatibility
    137137        // Previously this function took the arguments as discrete vars rather than an array like the rest of the API
    138138        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.') );
    140140                $args = array_slice( func_get_args(), 1 );
    141141        }
    142142
  • wp-includes/deprecated.php

     
    2424 * @return array
    2525 */
    2626function get_postdata($postid) {
    27         _deprecated_function( __FUNCTION__, '1.5.1', 'get_post()' );
     27        _deprecated_function( __FUNCTION__, 'wp-core', '1.5.1', 'get_post()' );
    2828
    2929        $post = &get_post($postid);
    3030
     
    5959function start_wp() {
    6060        global $wp_query, $post;
    6161
    62         _deprecated_function( __FUNCTION__, '1.5', __('new WordPress Loop') );
     62        _deprecated_function( __FUNCTION__, 'wp-core', '1.5', __('new WordPress Loop') );
    6363
    6464        // Since the old style loop is being used, advance the query iterator here.
    6565        $wp_query->next_post();
     
    7979 * @return null|int
    8080 */
    8181function 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()' );
    8383
    8484        // Grab the first cat in the list.
    8585        $categories = get_the_category();
     
    105105function the_category_head($before='', $after='') {
    106106        global $currentcat, $previouscat;
    107107
    108         _deprecated_function( __FUNCTION__, '0.71', 'get_the_category_by_ID()' );
     108        _deprecated_function( __FUNCTION__, 'wp-core', '0.71', 'get_the_category_by_ID()' );
    109109
    110110        // Grab the first cat in the list.
    111111        $categories = get_the_category();
     
    135135 */
    136136function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
    137137
    138         _deprecated_function( __FUNCTION__, '2.0', 'previous_post_link()' );
     138        _deprecated_function( __FUNCTION__, 'wp-core', '2.0', 'previous_post_link()' );
    139139
    140140        if ( empty($in_same_cat) || 'no' == $in_same_cat )
    141141                $in_same_cat = false;
     
    171171 * @param string $excluded_categories
    172172 */
    173173function 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()' );
    175175
    176176        if ( empty($in_same_cat) || 'no' == $in_same_cat )
    177177                $in_same_cat = false;
     
    205205 * @return bool
    206206 */
    207207function 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()' );
    209209
    210210        $author_data = get_userdata($user_id);
    211211        return ($author_data->user_level > 1);
     
    225225 * @return bool
    226226 */
    227227function 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()' );
    229229
    230230        $author_data = get_userdata($user_id);
    231231        return ($author_data->user_level >= 1);
     
    245245 * @return bool
    246246 */
    247247function 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()' );
    249249
    250250        $author_data = get_userdata($user_id);
    251251        $post = get_post($post_id);
     
    274274 * @return bool
    275275 */
    276276function 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()' );
    278278
    279279        // right now if one can edit, one can delete
    280280        return user_can_edit_post($user_id, $post_id, $blog_id);
     
    294294 * @return bool
    295295 */
    296296function 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()' );
    298298
    299299        $author_data = get_userdata($user_id);
    300300        return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id));
     
    314314 * @return bool returns true if $user_id can edit $post_id's date
    315315 */
    316316function 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()' );
    318318
    319319        $author_data = get_userdata($user_id);
    320320        return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id));
     
    334334 * @return bool returns true if $user_id can edit $post_id's comments
    335335 */
    336336function 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()' );
    338338
    339339        // right now if one can edit a post, one can edit comments made on it
    340340        return user_can_edit_post($user_id, $post_id, $blog_id);
     
    354354 * @return bool returns true if $user_id can delete $post_id's comments
    355355 */
    356356function 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()' );
    358358
    359359        // right now if one can edit comments, one can delete comments
    360360        return user_can_edit_post_comments($user_id, $post_id, $blog_id);
     
    373373 * @return bool
    374374 */
    375375function 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()' );
    377377
    378378        $user  = get_userdata($user_id);
    379379        $other = get_userdata($other_user);
     
    407407function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
    408408                                                 $show_description = true, $show_rating = false,
    409409                                                 $limit = -1, $show_updated = 0) {
    410         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
     410        _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_bookmarks()' );
    411411
    412412        $cat_id = -1;
    413413        $cat = get_term_by('name', $cat_name, 'link_category');
     
    471471 * @return unknown
    472472 */
    473473function 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()' );
    475475
    476476        $cat_id = -1;
    477477        $cat = get_term_by('name', $cat_name, 'link_category');
     
    525525 * @return unknown
    526526 */
    527527function 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()' );
    529529
    530530        $links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ;
    531531
     
    559559 */
    560560function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",
    561561                                                                        $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()' );
    563563
    564564        get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
    565565}
     
    587587 */
    588588function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
    589589                                                          $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()' );
    591591
    592592        get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
    593593}
     
    603603 * @return int Only returns 0.
    604604 */
    605605function get_autotoggle($id = 0) {
    606         _deprecated_function( __FUNCTION__, '2.1' );
     606        _deprecated_function( __FUNCTION__, 'wp-core', '2.1' );
    607607        return 0;
    608608}
    609609
     
    636636function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
    637637                                   $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
    638638                                   $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()' );
    640640
    641641        $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
    642642                'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
     
    653653 * @return unknown
    654654 */
    655655function wp_list_cats($args = '') {
    656         _deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' );
     656        _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_list_categories()' );
    657657
    658658        $r = wp_parse_args( $args );
    659659
     
    696696function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',
    697697                $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false,
    698698                $selected = 0, $exclude = 0) {
    699         _deprecated_function( __FUNCTION__, '2.1', 'wp_dropdown_categories()' );
     699        _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_dropdown_categories()' );
    700700
    701701        $show_option_all = '';
    702702        if ( $optionall )
     
    727727 * @return unknown
    728728 */
    729729function 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()' );
    731731
    732732        $args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
    733733        return wp_list_authors($args);
     
    744744 * @return unknown
    745745 */
    746746function 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()' );
    748748        return wp_get_post_categories($post_ID);
    749749}
    750750
     
    762762 * @return unknown
    763763 */
    764764function 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()' );
    766766        return wp_set_post_categories($post_ID, $post_categories);
    767767}
    768768
     
    781781 * @return unknown
    782782 */
    783783function 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()' );
    785785        $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
    786786        return wp_get_archives($args);
    787787}
     
    800800 * @return string|null
    801801 */
    802802function 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()' );
    804804
    805805        $link = get_author_posts_url($author_id, $author_nicename);
    806806
     
    828828 */
    829829function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page',
    830830                                        $pagelink='%', $more_file='') {
    831         _deprecated_function( __FUNCTION__, '2.1', 'wp_link_pages()' );
     831        _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'wp_link_pages()' );
    832832
    833833        $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file');
    834834        return wp_link_pages($args);
     
    846846 * @return string
    847847 */
    848848function get_settings($option) {
    849         _deprecated_function( __FUNCTION__, '2.1', 'get_option()' );
     849        _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_option()' );
    850850
    851851        return get_option($option);
    852852}
     
    860860 * @see the_permalink()
    861861 */
    862862function permalink_link() {
    863         _deprecated_function( __FUNCTION__, '1.2', 'the_permalink()' );
     863        _deprecated_function( __FUNCTION__, 'wp-core', '1.2', 'the_permalink()' );
    864864        the_permalink();
    865865}
    866866
     
    875875 * @param string $file
    876876 */
    877877function permalink_single_rss($deprecated = '') {
    878         _deprecated_function( __FUNCTION__, '0.0', 'the_permalink_rss()' );
     878        _deprecated_function( __FUNCTION__, 'wp-core', '0.0', 'the_permalink_rss()' );
    879879        the_permalink_rss();
    880880}
    881881
     
    892892 * @return null|string
    893893 */
    894894function wp_get_links($args = '') {
    895         _deprecated_function( __FUNCTION__, '0.0', 'wp_list_bookmarks()' );
     895        _deprecated_function( __FUNCTION__, 'wp-core', '0.0', 'wp_list_bookmarks()' );
    896896
    897897        if ( strpos( $args, '=' ) === false ) {
    898898                $cat_id = $args;
     
    947947 */
    948948function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
    949949                        $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()' );
    951951
    952952        $order = 'ASC';
    953953        if ( substr($orderby, 0, 1) == '_' ) {
     
    10401040 * @param string $order Sort link categories by 'name' or 'id'
    10411041 */
    10421042function 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()' );
    10441044
    10451045        $order = strtolower($order);
    10461046
     
    10861086 * @param bool $count the number of links in the db
    10871087 */
    10881088function 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' );
    10901090
    10911091        if ( $count )
    10921092                $counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
     
    11111111 * @return unknown
    11121112 */
    11131113function get_linkrating($link) {
    1114         _deprecated_function( __FUNCTION__, '2.1', 'sanitize_bookmark_field()' );
     1114        _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'sanitize_bookmark_field()' );
    11151115        return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');
    11161116}
    11171117
     
    11271127 * @return string
    11281128 */
    11291129function get_linkcatname($id = 0) {
    1130         _deprecated_function( __FUNCTION__, '2.1', 'get_category()' );
     1130        _deprecated_function( __FUNCTION__, 'wp-core', '2.1', 'get_category()' );
    11311131
    11321132        $id = (int) $id;
    11331133
     
    11561156 * @param string $link_text
    11571157 */
    11581158function 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()' );
    11601160        post_comments_feed_link($link_text);
    11611161}
    11621162
     
    11731173 * @return string|null
    11741174 */
    11751175function 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()' );
    11771177
    11781178        $link = get_category_feed_link($cat_ID, 'rss2');
    11791179
     
    11951195 * @return string|null
    11961196 */
    11971197function 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()' );
    11991199
    12001200        $link = get_author_feed_link($author_id);
    12011201        if ( $echo )
     
    12141214 * @return string
    12151215 */
    12161216function 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()' );
    12181218        return get_post_comments_feed_link();
    12191219}
    12201220
     
    12321232 * @return int The new user's ID.
    12331233 */
    12341234function 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()' );
    12361236        return wp_create_user($username, $password, $email);
    12371237}
    12381238
     
    12421242 * @deprecated 2.5
    12431243*/
    12441244function gzip_compression() {
    1245         _deprecated_function( __FUNCTION__, '2.5' );
     1245        _deprecated_function( __FUNCTION__, 'wp-core', '2.5' );
    12461246        return false;
    12471247}
    12481248
     
    12601260 * @return array The comment data
    12611261 */
    12621262function 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()' );
    12641264        return get_comment($comment_ID, ARRAY_A);
    12651265}
    12661266
     
    12761276 * @return string category name
    12771277 */
    12781278function get_catname( $cat_ID ) {
    1279         _deprecated_function( __FUNCTION__, '2.8', 'get_cat_name()' );
     1279        _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'get_cat_name()' );
    12801280        return get_cat_name( $cat_ID );
    12811281}
    12821282
     
    12951295 * @return string
    12961296 */
    12971297function 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()' );
    12991299        if ( 0 == $id )
    13001300                return '';
    13011301
     
    13291329 * @return string The author's description.
    13301330 */
    13311331function 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\')' );
    13331333        return get_the_author_meta('description');
    13341334}
    13351335
     
    13421342 * @see the_author_meta()
    13431343 */
    13441344function 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\')' );
    13461346        the_author_meta('description');
    13471347}
    13481348
     
    13571357 * @return string The author's login name (username).
    13581358 */
    13591359function 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\')' );
    13611361        return get_the_author_meta('login');
    13621362}
    13631363
     
    13701370 * @see the_author_meta()
    13711371 */
    13721372function 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\')' );
    13741374        the_author_meta('login');
    13751375}
    13761376
     
    13851385 * @return string The author's first name.
    13861386 */
    13871387function 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\')' );
    13891389        return get_the_author_meta('first_name');
    13901390}
    13911391
     
    13981398 * @see the_author_meta()
    13991399 */
    14001400function 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\')' );
    14021402        the_author_meta('first_name');
    14031403}
    14041404
     
    14131413 * @return string The author's last name.
    14141414 */
    14151415function 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\')' );
    14171417        return get_the_author_meta('last_name');
    14181418}
    14191419
     
    14261426 * @see the_author_meta()
    14271427 */
    14281428function 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\')' );
    14301430        the_author_meta('last_name');
    14311431}
    14321432
     
    14411441 * @return string The author's nickname.
    14421442 */
    14431443function 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\')' );
    14451445        return get_the_author_meta('nickname');
    14461446}
    14471447
     
    14541454 * @see the_author_meta()
    14551455 */
    14561456function 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\')' );
    14581458        the_author_meta('nickname');
    14591459}
    14601460
     
    14691469 * @return string The author's username.
    14701470 */
    14711471function 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\')' );
    14731473        return get_the_author_meta('email');
    14741474}
    14751475
     
    14821482 * @see the_author_meta()
    14831483 */
    14841484function 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\')' );
    14861486        the_author_meta('email');
    14871487}
    14881488
     
    14971497 * @return string The author's ICQ number.
    14981498 */
    14991499function 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\')' );
    15011501        return get_the_author_meta('icq');
    15021502}
    15031503
     
    15101510 * @see the_author_meta()
    15111511 */
    15121512function 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\')' );
    15141514        the_author_meta('icq');
    15151515}
    15161516
     
    15251525 * @return string The author's Yahoo! IM name.
    15261526 */
    15271527function 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\')' );
    15291529        return get_the_author_meta('yim');
    15301530}
    15311531
     
    15381538 * @see the_author_meta()
    15391539 */
    15401540function 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\')' );
    15421542        the_author_meta('yim');
    15431543}
    15441544
     
    15531553 * @return string The author's MSN address.
    15541554 */
    15551555function 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\')' );
    15571557        return get_the_author_meta('msn');
    15581558}
    15591559
     
    15661566 * @see the_author_meta()
    15671567 */
    15681568function 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\')' );
    15701570        the_author_meta('msn');
    15711571}
    15721572
     
    15811581 * @return string The author's AIM address.
    15821582 */
    15831583function 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\')' );
    15851585        return get_the_author_meta('aim');
    15861586}
    15871587
     
    15941594 * @deprecated Use the_author_meta('aim')
    15951595 */
    15961596function 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\')' );
    15981598        the_author_meta('aim');
    15991599}
    16001600
     
    16101610 * @return string The author's display name.
    16111611 */
    16121612function 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\')' );
    16141614        return get_the_author_meta('display_name', $auth_id);
    16151615}
    16161616
     
    16251625 * @return string The URL to the author's page.
    16261626 */
    16271627function 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\')' );
    16291629        return get_the_author_meta('url');
    16301630}
    16311631
     
    16381638 * @see the_author_meta()
    16391639 */
    16401640function 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\')' );
    16421642        the_author_meta('url');
    16431643}
    16441644
     
    16531653 * @return int The author's ID.
    16541654 */
    16551655function 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\')' );
    16571657        return get_the_author_meta('ID');
    16581658}
    16591659
     
    16661666 * @see the_author_meta()
    16671667*/
    16681668function 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\')' );
    16701670        the_author_meta('ID');
    16711671}
    16721672
     
    17051705 * @param int $encode_html Optional. How to encode the content.
    17061706 */
    17071707function 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' );
    17091709        $content = get_the_content($more_link_text, $stripteaser, $more_file);
    17101710        $content = apply_filters('the_content_rss', $content);
    17111711        if ( $cut && !$encode_html )
     
    17511751 * @return string HTML stripped out of content with links at the bottom.
    17521752 */
    17531753function make_url_footnote( $content ) {
    1754         _deprecated_function( __FUNCTION__, '2.9', '' );
     1754        _deprecated_function( __FUNCTION__, 'wp-core', '2.9', '' );
    17551755        preg_match_all( '/<a(.+?)href=\"(.+?)\"(.*?)>(.+?)<\/a>/', $content, $matches );
    17561756        $links_summary = "\n";
    17571757        for ( $i=0; $i<count($matches[0]); $i++ ) {
     
    17911791 * @return string Translated context string without pipe
    17921792 */
    17931793function _c( $text, $domain = 'default' ) {
    1794         _deprecated_function( __FUNCTION__, '2.9', '_x()' );
     1794        _deprecated_function( __FUNCTION__, 'wp-core', '2.9', '_x()' );
    17951795        return before_last_bar( translate( $text, $domain ) );
    17961796}
    17971797
     
    18101810 * @return string Translated text
    18111811 */
    18121812function translate_with_context( $text, $domain = 'default' ) {
    1813         _deprecated_function( __FUNCTION__, '2.9', '_x()' );
     1813        _deprecated_function( __FUNCTION__, 'wp-core', '2.9', '_x()' );
    18141814        return before_last_bar( translate( $text, $domain ) );
    18151815}
    18161816
     
    18271827 *
    18281828 */
    18291829function _nc( $single, $plural, $number, $domain = 'default' ) {
    1830         _deprecated_function( __FUNCTION__, '2.9', '_nx()' );
     1830        _deprecated_function( __FUNCTION__, 'wp-core', '2.9', '_nx()' );
    18311831        return before_last_bar( _n( $single, $plural, $number, $domain ) );
    18321832}
    18331833
     
    18401840 * @see _n()
    18411841 */
    18421842function __ngettext() {
    1843         _deprecated_function( __FUNCTION__, '2.8', '_n()' );
     1843        _deprecated_function( __FUNCTION__, 'wp-core', '2.8', '_n()' );
    18441844        $args = func_get_args();
    18451845        return call_user_func_array('_n', $args);
    18461846}
     
    18541854 * @see _n_noop()
    18551855 */
    18561856function __ngettext_noop() {
    1857         _deprecated_function( __FUNCTION__, '2.8', '_n_noop()' );
     1857        _deprecated_function( __FUNCTION__, 'wp-core', '2.8', '_n_noop()' );
    18581858        $args = func_get_args();
    18591859        return call_user_func_array('_n_noop', $args);
    18601860
     
    18711871 * @return array List of all options.
    18721872 */
    18731873function get_alloptions() {
    1874         _deprecated_function( __FUNCTION__, '3.0', 'wp_load_alloptions()' );
     1874        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'wp_load_alloptions()' );
    18751875        return wp_load_alloptions();
    18761876}
    18771877
     
    18901890 * @return string
    18911891 */
    18921892function 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()' );
    18941894        $id = (int) $id;
    18951895        $_post = & get_post($id);
    18961896
     
    19191919 * @return array Icon URL and full path to file, respectively.
    19201920 */
    19211921function 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()' );
    19231923        $id = (int) $id;
    19241924        if ( !$post = & get_post($id) )
    19251925                return false;
     
    19641964 * @return string HTML content.
    19651965 */
    19661966function 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()' );
    19681968        $id = (int) $id;
    19691969        if ( !$post = & get_post($id) )
    19701970                return false;
     
    20212021 * @return string
    20222022 */
    20232023function 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()' );
    20252025        $id = (int) $id;
    20262026        if ( !$post = & get_post($id) )
    20272027                return false;
     
    20482048 * @return object|array
    20492049 */
    20502050function 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()' );
    20522052        return get_bookmark($bookmark_id, $output, $filter);
    20532053}
    20542054
     
    20652065 * @return string The cleaned URL.
    20662066 */
    20672067function 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()' );
    20692069        return esc_url_raw( $url, $protocols );
    20702070}
    20712071
     
    20902090        if ( $context == 'db' )
    20912091                _deprecated_function( 'clean_url( $context = \'db\' )', '3.0', 'esc_url_raw()' );
    20922092        else
    2093                 _deprecated_function( __FUNCTION__, '3.0', 'esc_url()' );
     2093                _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'esc_url()' );
    20942094        return esc_url( $url, $protocols, $context );
    20952095}
    20962096
     
    21082108 * @return string Escaped text.
    21092109 */
    21102110function js_escape( $text ) {
    2111         _deprecated_function( __FUNCTION__, '2.8', 'esc_js()' );
     2111        _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'esc_js()' );
    21122112        return esc_js( $text );
    21132113}
    21142114
     
    21202120 * @see esc_html()
    21212121 */
    21222122function 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()' );
    21242124        if ( func_num_args() > 1 ) { // Maintain backwards compat for people passing additional args
    21252125                $args = func_get_args();
    21262126                return call_user_func_array( '_wp_specialchars', $args );
     
    21422142 * @return string
    21432143 */
    21442144function attribute_escape( $text ) {
    2145         _deprecated_function( __FUNCTION__, '2.8', 'esc_attr()' );
     2145        _deprecated_function( __FUNCTION__, 'wp-core', '2.8', 'esc_attr()' );
    21462146        return esc_attr( $text );
    21472147}
    21482148
     
    21672167 * @param mixed $params,... Widget parameters.
    21682168 */
    21692169function 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()' );
    21712171        // Compat
    21722172        if ( is_array($name) ) {
    21732173                if ( count($name) == 3 )
     
    21992199 * @param int|string $id Widget ID.
    22002200 */
    22012201function 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()' );
    22032203        return wp_unregister_sidebar_widget($id);
    22042204}
    22052205
     
    22242224 * @param int $height Widget height.
    22252225 */
    22262226function 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()' );
    22282228        // Compat
    22292229        if ( is_array($name) ) {
    22302230                if ( count($name) == 3 )
     
    22582258 * @param int|string $id Widget ID.
    22592259 */
    22602260function 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()' );
    22622262        return wp_unregister_widget_control($id);
    22632263}
    22642264
     
    22762276 * @return bool True deletion completed and false if user_id is not a number.
    22772277 */
    22782278function 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()' );
    22802280        global $wpdb;
    22812281        if ( !is_numeric( $user_id ) )
    22822282                return false;
     
    23222322 * @return mixed
    23232323 */
    23242324function 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()' );
    23262326        global $wpdb;
    23272327        $user_id = (int) $user_id;
    23282328
     
    23762376 * @return bool True on successful update, false on failure.
    23772377 */
    23782378function 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()' );
    23802380        global $wpdb;
    23812381        if ( !is_numeric( $user_id ) )
    23822382                return false;
     
    24232423 * @param boolean $add Optional, default is true. Add or remove links. Defaults to true.
    24242424 */
    24252425function 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' )" );
    24272427
    24282428        if ( $add )
    24292429                add_theme_support( 'automatic-feed-links' );
     
    24402440 * @see get_the_author_meta()
    24412441 */
    24422442function 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()' );
    24442444        if ( $user ) {
    24452445                $user = get_user_by( 'login', $user );
    24462446                $user = $user->ID;
     
    24572457 * @see count_user_posts()
    24582458 */
    24592459function get_usernumposts( $userid ) {
    2460         _deprecated_function( __FUNCTION__, '3.0', 'count_user_posts()' );
     2460        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'count_user_posts()' );
    24612461        return count_user_posts( $userid );
    24622462}
    24632463
     
    24892489 * @return string Fixed text.
    24902490 */
    24912491function funky_javascript_fix($text) {
    2492         _deprecated_function( __FUNCTION__, '3.0' );
     2492        _deprecated_function( __FUNCTION__, 'wp-core', '3.0' );
    24932493        // Fixes for browsers' javascript bugs
    24942494        global $is_macIE, $is_winIE;
    24952495
     
    25102510 * @param int $deprecated Not used (Was $timezone = 0)
    25112511 */
    25122512function trackback_rdf($deprecated = '') {
    2513         _deprecated_function( __FUNCTION__, '3.0' );
     2513        _deprecated_function( __FUNCTION__, 'wp-core', '3.0' );
    25142514        return '';
    25152515}
  • wp-includes/formatting.php

     
    900900 */
    901901function convert_chars($content, $deprecated = '') {
    902902        if ( !empty( $deprecated ) )
    903                 _deprecated_argument( __FUNCTION__, '0.71' );
     903                _deprecated_argument( __FUNCTION__, 'wp-core', '0.71' );
    904904
    905905        // Translation of invalid Unicode references range to valid range
    906906        $wp_htmltranswinuni = array(
     
    14811481 */
    14821482function is_email( $email, $deprecated = false ) {
    14831483        if ( ! empty( $deprecated ) )
    1484                 _deprecated_argument( __FUNCTION__, '3.0' );
     1484                _deprecated_argument( __FUNCTION__, 'wp-core', '3.0' );
    14851485
    14861486        // Test for the minimum length the email can be
    14871487        if ( strlen( $email ) < 3 ) {
  • wp-includes/functions.php

     
    561561        global $wpdb;
    562562
    563563        if ( !empty( $deprecated ) )
    564                 _deprecated_argument( __FUNCTION__, '2.3' );
     564                _deprecated_argument( __FUNCTION__, 'wp-core', '2.3' );
    565565
    566566        $option = trim($option);
    567567        if ( empty($option) )
     
    13001300 */
    13011301function wp_get_http_headers( $url, $deprecated = false ) {
    13021302        if ( !empty( $deprecated ) )
    1303                 _deprecated_argument( __FUNCTION__, '2.7' );
     1303                _deprecated_argument( __FUNCTION__, 'wp-core', '2.7' );
    13041304
    13051305        $response = wp_remote_head( $url );
    13061306
     
    22702270 */
    22712271function wp_upload_bits( $name, $deprecated, $bits, $time = null ) {
    22722272        if ( !empty( $deprecated ) )
    2273                 _deprecated_argument( __FUNCTION__, '2.0' );
     2273                _deprecated_argument( __FUNCTION__, 'wp-core', '2.0' );
    22742274
    22752275        if ( empty( $name ) )
    22762276                return array( 'error' => __( 'Empty filename' ) );
     
    32213221 *   trigger or false to not trigger error.
    32223222 *
    32233223 * @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
    32253226 * @param string $replacement Optional. The function that should have been called
    32263227 */
    3227 function _deprecated_function( $function, $version, $replacement=null ) {
     3228function _deprecated_function( $function, $package, $version, $replacement=null ) {
    32283229
    32293230        do_action( 'deprecated_function_run', $function, $replacement, $version );
    32303231
     
    32593260 *   trigger or false to not trigger error.
    32603261 *
    32613262 * @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
    32633265 * @param string $replacement Optional. The file that should have been included based on ABSPATH
    32643266 * @param string $message Optional. A message regarding the change
    32653267 */
    3266 function _deprecated_file( $file, $version, $replacement = null, $message = '' ) {
     3268function _deprecated_file( $file, $package, $version, $replacement = null, $message = '' ) {
    32673269
    3268         do_action( 'deprecated_file_included', $file, $replacement, $version, $message );
     3270        do_action( 'deprecated_file_included', $file, $replacement, $package, $version, $message );
    32693271
    32703272        // Allow plugin to filter the output error trigger
    32713273        if ( WP_DEBUG && apply_filters( 'deprecated_file_trigger_error', true ) ) {
     
    32853287 * For example:
    32863288 * <code>
    32873289 * if ( !empty($deprecated) )
    3288  *      _deprecated_argument( __FUNCTION__, '3.0' );
     3290 *      _deprecated_argument( __FUNCTION__, 'wp-core', '3.0' );
    32893291 * </code>
    32903292 *
    32913293 * There is a hook deprecated_argument_run that will be called that can be used
     
    33053307 *   trigger or false to not trigger error.
    33063308 *
    33073309 * @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
    33093312 * @param string $message Optional. A message regarding the change.
    33103313 */
    3311 function _deprecated_argument( $function, $version, $message = null ) {
     3314function _deprecated_argument( $function, $package, $version, $message = null ) {
    33123315
    3313         do_action( 'deprecated_argument_run', $function, $message, $version );
     3316        do_action( 'deprecated_argument_run', $function, $message, $package, $version );
    33143317
    33153318        // Allow plugin to filter the output error trigger
    33163319        if ( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) {
  • wp-includes/general-template.php

     
    402402        switch( $show ) {
    403403                case 'home' : // DEPRECATED
    404404                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'  ) );
    406406                case 'url' :
    407407                        $output = home_url();
    408408                        break;
     
    462462                        $output = str_replace('_', '-', $output);
    463463                        break;
    464464                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()'  ) );
    466466                        if ( function_exists( 'is_rtl' ) ) {
    467467                                $output = is_rtl() ? 'rtl' : 'ltr';
    468468                        } else {
  • wp-includes/kses.php

     
    13681368 */
    13691369function safecss_filter_attr( $css, $deprecated = '' ) {
    13701370        if ( !empty( $deprecated ) )
    1371                 _deprecated_argument( __FUNCTION__, '2.8.1' ); // Never implemented
     1371                _deprecated_argument( __FUNCTION__, 'wp-core', '2.8.1' ); // Never implemented
    13721372
    13731373        $css = wp_kses_no_null($css);
    13741374        $css = str_replace(array("\n","\r","\t"), '', $css);
  • wp-includes/l10n.php

     
    389389        if ( false !== $plugin_rel_path ) {
    390390                $path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/' );
    391391        } else if ( false !== $abs_rel_path ) {
    392                 _deprecated_argument( __FUNCTION__, '2.7' );
     392                _deprecated_argument( __FUNCTION__, 'wp-core', '2.7' );
    393393                $path = ABSPATH . trim( $abs_rel_path, '/' );
    394394        } else {
    395395                $path = WP_PLUGIN_DIR;
  • wp-includes/link-template.php

     
    218218 */
    219219function post_permalink( $post_id = 0, $deprecated = '' ) {
    220220        if ( !empty( $deprecated ) )
    221                 _deprecated_argument( __FUNCTION__, '1.3' );
     221                _deprecated_argument( __FUNCTION__, 'wp-core', '1.3' );
    222222
    223223        return get_permalink($post_id);
    224224}
     
    846846 */
    847847function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) {
    848848        if ( ! empty( $deprecated ) )
    849                 _deprecated_argument( __FUNCTION__, '3.0.0' );
     849                _deprecated_argument( __FUNCTION__, 'wp-core', '3.0.0' );
    850850
    851851        if ( !$post = &get_post( $id ) )
    852852                return;
  • wp-includes/load.php

     
    461461
    462462        // Check for hacks file if the option is enabled
    463463        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' );
    465465                array_unshift( $plugins, ABSPATH . 'my-hacks.php' );
    466466        }
    467467
  • wp-includes/ms-deprecated.php

     
    2020 * @see wp_generate_password()
    2121 */
    2222function 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()' );
    2424        return wp_generate_password( $len );
    2525}
    2626
     
    4141 *
    4242 */
    4343function 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()' );
    4545
    4646        if ( empty( $user_login ) ) {
    4747                $user_id = get_current_user_id();
     
    6565 * @see wp_die()
    6666 */
    6767function graceful_fail( $message ) {
    68         _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
     68        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'wp_die()' );
    6969        $message = apply_filters( 'graceful_fail', $message );
    7070        $message_template = apply_filters( 'graceful_fail_template',
    7171'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    101101 * @deprecated Use $GLOBALS['current_user']->ID
    102102 */
    103103function 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' );
    105105        return $GLOBALS['current_user']->ID;
    106106}
    107107
     
    112112 * @see get_user_by()
    113113 */
    114114function get_user_details( $username ) {
    115         _deprecated_function( __FUNCTION__, '3.0', 'get_user_by()' );
     115        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'get_user_by()' );
    116116        return get_user_by('login', $username);
    117117}
    118118
     
    123123 * @see clean_post_cache()
    124124 */
    125125function 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()' );
    127127}
    128128
    129129/**
     
    133133 * @see is_main_site()
    134134 */
    135135function is_main_blog() {
    136         _deprecated_function( __FUNCTION__, '3.0', 'is_main_site()' );
     136        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'is_main_site()' );
    137137        return is_main_site();
    138138}
    139139
     
    144144 * @see is_email()
    145145 */
    146146function validate_email( $email, $check_domain = true) {
    147         _deprecated_function( __FUNCTION__, '3.0', 'is_email()' );
     147        _deprecated_function( __FUNCTION__, 'wp-core', '3.0', 'is_email()' );
    148148        return is_email( $email, $check_domain );
    149149}
    150150
  • wp-includes/pluggable-deprecated.php

     
    3131 * @return object returns wp_set_current_user()
    3232 */
    3333function 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()' );
    3535        return wp_set_current_user($id, $name);
    3636}
    3737endif;
     
    5353 * @param bool $remember Optional. Remember that the user is logged in
    5454 */
    5555function 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()' );
    5757        $user = get_userdatabylogin($username);
    5858        wp_set_auth_cookie($user->ID, $remember);
    5959}
     
    7171 * @see wp_clear_auth_cookie()
    7272 */
    7373function wp_clearcookie() {
    74         _deprecated_function( __FUNCTION__, '2.5', 'wp_clear_auth_cookie()' );
     74        _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_clear_auth_cookie()' );
    7575        wp_clear_auth_cookie();
    7676}
    7777else :
     
    9292 * @return bool Always returns false
    9393 */
    9494function wp_get_cookie_login() {
    95         _deprecated_function( __FUNCTION__, '2.5' );
     95        _deprecated_function( __FUNCTION__, 'wp-core', '2.5' );
    9696        return false;
    9797}
    9898else :
     
    120120 * @return bool False on login failure, true on successful check
    121121 */
    122122function wp_login($username, $password, $deprecated = '') {
    123         _deprecated_function( __FUNCTION__, '2.5', 'wp_signon()' );
     123        _deprecated_function( __FUNCTION__, 'wp-core', '2.5', 'wp_signon()' );
    124124        global $error;
    125125
    126126        $user = wp_authenticate($username, $password);
  • wp-includes/post-template.php

     
    250250 */
    251251function get_the_excerpt( $deprecated = '' ) {
    252252        if ( !empty( $deprecated ) )
    253                 _deprecated_argument( __FUNCTION__, '2.3' );
     253                _deprecated_argument( __FUNCTION__, 'wp-core', '2.3' );
    254254
    255255        global $post;
    256256        $output = $post->post_excerpt;
     
    923923 */
    924924function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
    925925        if ( !empty( $deprecated ) )
    926                 _deprecated_argument( __FUNCTION__, '2.5' );
     926                _deprecated_argument( __FUNCTION__, 'wp-core', '2.5' );
    927927
    928928        if ( $fullsize )
    929929                echo wp_get_attachment_link($id, 'full', $permalink);
  • wp-includes/registration-functions.php

     
    44 *
    55 * @package WordPress
    66 */
    7 _deprecated_file( basename(__FILE__), '2.1', WPINC .  '/registration.php' );
     7_deprecated_file( basename(__FILE__), 'wp-core', '2.1', WPINC .  '/registration.php' );
    88require_once(ABSPATH . WPINC .  '/registration.php');
    99?>
  • wp-includes/rss-functions.php

     
    55 * @package WordPress
    66 */
    77
    8 _deprecated_file( basename(__FILE__), '2.1', WPINC . '/rss.php' );
     8_deprecated_file( basename(__FILE__), 'wp-core', '2.1', WPINC . '/rss.php' );
    99require_once (ABSPATH . WPINC . '/rss.php');
    1010?>
  • wp-includes/rss.php

     
    1515/**
    1616 * Deprecated. Use SimplePie (class-simplepie.php) instead.
    1717 */
    18 _deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/class-simplepie.php' );
     18_deprecated_file( basename( __FILE__ ), 'wp-core', '3.0', WPINC . '/class-simplepie.php' );
    1919
    2020/*
    2121 * Hook to use another RSS object instead of MagpieRSS
  • wp-includes/theme-compat/comments-popup.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    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__) ) );
    1111?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1212<html xmlns="http://www.w3.org/1999/xhtml">
    1313<head>
  • wp-includes/theme-compat/comments.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    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__) ) );
    1111
    1212// Do not delete these lines
    1313        if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  • wp-includes/theme-compat/footer.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    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__) ) );
    1111?>
    1212
    1313<hr />
  • wp-includes/theme-compat/header.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    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__) ) );
    1111?>
    1212<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1313<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  • wp-includes/theme-compat/sidebar.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    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__) ) );
    1111?>
    1212        <div id="sidebar" role="complementary">
    1313                <ul>
  • wp-includes/user.php

     
    234234        global $wpdb;
    235235
    236236        if ( !empty( $deprecated ) )
    237                 _deprecated_argument( __FUNCTION__, '3.0' );
     237                _deprecated_argument( __FUNCTION__, 'wp-core', '3.0' );
    238238
    239239        if ( empty($user) ) {
    240240                $user = wp_get_current_user();
  • wp-includes/widgets.php

     
    993993 */
    994994function wp_get_sidebars_widgets($deprecated = true) {
    995995        if ( $deprecated !== true )
    996                 _deprecated_argument( __FUNCTION__, '2.8.1' );
     996                _deprecated_argument( __FUNCTION__, 'wp-core', '2.8.1' );
    997997
    998998        global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets;
    999999