Make WordPress Core

Ticket #36495: 36495.2.diff

File 36495.2.diff, 135.5 KB (added by metodiew, 7 years ago)

I think I've missed a few places, so here's an updated patch

  • 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__), '2.5.0', '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

     
    138138         * @return string The location of the remote path.
    139139         */
    140140        public function find_base_dir( $base = '.', $echo = false ) {
    141                 _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
     141                _deprecated_function(__FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
    142142                $this->verbose = $echo;
    143143                return $this->abspath();
    144144        }
     
    160160         * @return string The location of the remote path.
    161161         */
    162162        public function get_base_dir( $base = '.', $echo = false ) {
    163                 _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
     163                _deprecated_function(__FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
    164164                $this->verbose = $echo;
    165165                return $this->abspath();
    166166        }
  • wp-admin/includes/deprecated.php

     
    1818 * @see wp_editor()
    1919 */
    2020function tinymce_include() {
    21         _deprecated_function( __FUNCTION__, '2.1', 'wp_editor()' );
     21        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_editor()' );
    2222
    2323        wp_tiny_mce();
    2424}
     
    3131 *
    3232 */
    3333function documentation_link() {
    34         _deprecated_function( __FUNCTION__, '2.5' );
     34        _deprecated_function( __FUNCTION__, '2.5.0' );
    3535}
    3636
    3737/**
     
    4848 * @return array Shrunk dimensions (width, height).
    4949 */
    5050function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
    51         _deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' );
     51        _deprecated_function( __FUNCTION__, '3.0.0', 'wp_constrain_dimensions()' );
    5252        return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
    5353}
    5454
     
    6464 * @return array Shrunk dimensions (width, height).
    6565 */
    6666function get_udims( $width, $height ) {
    67         _deprecated_function( __FUNCTION__, '3.5', 'wp_constrain_dimensions()' );
     67        _deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
    6868        return wp_constrain_dimensions( $width, $height, 128, 96 );
    6969}
    7070
     
    8080 * @param array $popular_ids Unused.
    8181 */
    8282function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
    83         _deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' );
     83        _deprecated_function( __FUNCTION__, '2.6.0', 'wp_category_checklist()' );
    8484        global $post_ID;
    8585        wp_category_checklist( $post_ID );
    8686}
     
    9595 * @param int $default Unused.
    9696 */
    9797function dropdown_link_categories( $default = 0 ) {
    98         _deprecated_function( __FUNCTION__, '2.6', 'wp_link_category_checklist()' );
     98        _deprecated_function( __FUNCTION__, '2.6.0', 'wp_link_category_checklist()' );
    9999        global $link_id;
    100100        wp_link_category_checklist( $link_id );
    101101}
     
    111111 * @return string Full filesystem path to edit.
    112112 */
    113113function get_real_file_to_edit( $file ) {
    114         _deprecated_function( __FUNCTION__, '2.9' );
     114        _deprecated_function( __FUNCTION__, '2.9.0' );
    115115
    116116        return WP_CONTENT_DIR . $file;
    117117}
     
    131131 * @return bool|null False if no categories were found.
    132132 */
    133133function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
    134         _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' );
     134        _deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' );
    135135        if (!$categories )
    136136                $categories = get_categories( array('hide_empty' => 0) );
    137137
     
    165165 * @param callable $sanitize_callback A callback function that sanitizes the option's value.
    166166 */
    167167function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
    168         _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' );
     168        _deprecated_function( __FUNCTION__, '3.0.0', 'register_setting()' );
    169169        register_setting( $option_group, $option_name, $sanitize_callback );
    170170}
    171171
     
    181181 * @param callable $sanitize_callback
    182182 */
    183183function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
    184         _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' );
     184        _deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' );
    185185        unregister_setting( $option_group, $option_name, $sanitize_callback );
    186186}
    187187
     
    194194 * @param string $filename
    195195**/
    196196function codepress_get_lang( $filename ) {
    197         _deprecated_function( __FUNCTION__, '3.0' );
     197        _deprecated_function( __FUNCTION__, '3.0.0' );
    198198}
    199199
    200200/**
     
    204204 * @deprecated 3.0.0
    205205**/
    206206function codepress_footer_js() {
    207         _deprecated_function( __FUNCTION__, '3.0' );
     207        _deprecated_function( __FUNCTION__, '3.0.0' );
    208208}
    209209
    210210/**
     
    214214 * @deprecated 3.0.0
    215215**/
    216216function use_codepress() {
    217         _deprecated_function( __FUNCTION__, '3.0' );
     217        _deprecated_function( __FUNCTION__, '3.0.0' );
    218218}
    219219
    220220/**
     
    225225 * @return array List of user IDs.
    226226 */
    227227function get_author_user_ids() {
    228         _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
     228        _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    229229
    230230        global $wpdb;
    231231        if ( !is_multisite() )
     
    245245 * @return array|bool List of editable authors. False if no editable users.
    246246 */
    247247function get_editable_authors( $user_id ) {
    248         _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
     248        _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    249249
    250250        global $wpdb;
    251251
     
    271271 * @return array Array of editable user IDs, empty array otherwise.
    272272 */
    273273function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
    274         _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
     274        _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    275275
    276276        global $wpdb;
    277277
     
    304304 * @deprecated 3.1.0 Use get_users()
    305305 */
    306306function get_nonauthor_user_ids() {
    307         _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
     307        _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    308308
    309309        global $wpdb;
    310310
     
    480480         * @return WP_User_Search
    481481         */
    482482        function __construct( $search_term = '', $page = '', $role = '' ) {
    483                 _deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' );
     483                _deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' );
    484484
    485485                $this->search_term = wp_unslash( $search_term );
    486486                $this->raw_page = ( '' == $page ) ? false : (int) $page;
     
    670670 * @return array List of posts from others.
    671671 */
    672672function get_others_unpublished_posts( $user_id, $type = 'any' ) {
    673         _deprecated_function( __FUNCTION__, '3.1' );
     673        _deprecated_function( __FUNCTION__, '3.1.0' );
    674674
    675675        global $wpdb;
    676676
     
    703703 * @return array List of drafts from other users.
    704704 */
    705705function get_others_drafts($user_id) {
    706         _deprecated_function( __FUNCTION__, '3.1' );
     706        _deprecated_function( __FUNCTION__, '3.1.0' );
    707707
    708708        return get_others_unpublished_posts($user_id, 'draft');
    709709}
     
    718718 * @return array List of posts with pending review post type from other users.
    719719 */
    720720function get_others_pending($user_id) {
    721         _deprecated_function( __FUNCTION__, '3.1' );
     721        _deprecated_function( __FUNCTION__, '3.1.0' );
    722722
    723723        return get_others_unpublished_posts($user_id, 'pending');
    724724}
     
    731731 * @see wp_dashboard_quick_press()
    732732 */
    733733function wp_dashboard_quick_press_output() {
    734         _deprecated_function( __FUNCTION__, '3.2', 'wp_dashboard_quick_press()' );
     734        _deprecated_function( __FUNCTION__, '3.2.0', 'wp_dashboard_quick_press()' );
    735735        wp_dashboard_quick_press();
    736736}
    737737
     
    745745 * @staticvar int $num
    746746 */
    747747function wp_tiny_mce( $teeny = false, $settings = false ) {
    748         _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
     748        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    749749
    750750        static $num = 1;
    751751
     
    771771 * @see wp_editor()
    772772 */
    773773function wp_preload_dialogs() {
    774         _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
     774        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    775775}
    776776
    777777/**
     
    781781 * @see wp_editor()
    782782 */
    783783function wp_print_editor_js() {
    784         _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
     784        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    785785}
    786786
    787787/**
     
    791791 * @see wp_editor()
    792792 */
    793793function wp_quicktags() {
    794         _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
     794        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    795795}
    796796
    797797/**
     
    802802 * @see WP_Screen::render_screen_layout()
    803803 */
    804804function screen_layout( $screen ) {
    805         _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_screen_layout()' );
     805        _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_screen_layout()' );
    806806
    807807        $current_screen = get_current_screen();
    808808
     
    822822 * @see WP_Screen::render_per_page_options()
    823823 */
    824824function screen_options( $screen ) {
    825         _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_per_page_options()' );
     825        _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_per_page_options()' );
    826826
    827827        $current_screen = get_current_screen();
    828828
     
    854854 * @see WP_Admin_Bar
    855855 */
    856856function favorite_actions() {
    857         _deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' );
     857        _deprecated_function( __FUNCTION__, '3.2.0', 'WP_Admin_Bar' );
    858858}
    859859
    860860/**
     
    866866 * @return null|string
    867867 */
    868868function media_upload_image() {
    869         _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
     869        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    870870        return wp_media_upload_handler();
    871871}
    872872
     
    879879 * @return null|string
    880880 */
    881881function media_upload_audio() {
    882         _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
     882        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    883883        return wp_media_upload_handler();
    884884}
    885885
     
    892892 * @return null|string
    893893 */
    894894function media_upload_video() {
    895         _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
     895        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    896896        return wp_media_upload_handler();
    897897}
    898898
     
    905905 * @return null|string
    906906 */
    907907function media_upload_file() {
    908         _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
     908        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    909909        return wp_media_upload_handler();
    910910}
    911911
     
    918918 * @return string
    919919 */
    920920function type_url_form_image() {
    921         _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" );
     921        _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('image')" );
    922922        return wp_media_insert_url_form( 'image' );
    923923}
    924924
     
    931931 * @return string
    932932 */
    933933function type_url_form_audio() {
    934         _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" );
     934        _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('audio')" );
    935935        return wp_media_insert_url_form( 'audio' );
    936936}
    937937
     
    944944 * @return string
    945945 */
    946946function type_url_form_video() {
    947         _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" );
     947        _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('video')" );
    948948        return wp_media_insert_url_form( 'video' );
    949949}
    950950
     
    957957 * @return string
    958958 */
    959959function type_url_form_file() {
    960         _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" );
     960        _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" );
    961961        return wp_media_insert_url_form( 'file' );
    962962}
    963963
     
    974974 * @param string    $help   The content of an 'Overview' help tab.
    975975 */
    976976function add_contextual_help( $screen, $help ) {
    977         _deprecated_function( __FUNCTION__, '3.3', 'get_current_screen()->add_help_tab()' );
     977        _deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' );
    978978
    979979        if ( is_string( $screen ) )
    980980                $screen = convert_to_screen( $screen );
     
    992992 * @return array $themes Array of allowed themes.
    993993 */
    994994function get_allowed_themes() {
    995         _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'allowed' => true ) )" );
     995        _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'allowed' => true ) )" );
    996996
    997997        $themes = wp_get_themes( array( 'allowed' => true ) );
    998998
     
    10141014 * @return array
    10151015 */
    10161016function get_broken_themes() {
    1017         _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'errors' => true )" );
     1017        _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" );
    10181018
    10191019        $themes = wp_get_themes( array( 'errors' => true ) );
    10201020        $broken = array();
     
    10391039 * @return WP_Theme
    10401040 */
    10411041function current_theme_info() {
    1042         _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
     1042        _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );
    10431043
    10441044        return wp_get_theme();
    10451045}
     
    10521052 * @deprecated 3.5.0
    10531053 */
    10541054function _insert_into_post_button( $type ) {
    1055         _deprecated_function( __FUNCTION__, '3.5' );
     1055        _deprecated_function( __FUNCTION__, '3.5.0' );
    10561056}
    10571057
    10581058/**
     
    10631063 * @deprecated 3.5.0
    10641064 */
    10651065function _media_button($title, $icon, $type, $id) {
    1066         _deprecated_function( __FUNCTION__, '3.5' );
     1066        _deprecated_function( __FUNCTION__, '3.5.0' );
    10671067}
    10681068
    10691069/**
     
    10771077 * @return object
    10781078 */
    10791079function get_post_to_edit( $id ) {
    1080         _deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
     1080        _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' );
    10811081
    10821082        return get_post( $id, OBJECT, 'edit' );
    10831083}
     
    10921092 * @return WP_Post Post object containing all the default post data as attributes
    10931093 */
    10941094function get_default_page_to_edit() {
    1095         _deprecated_function( __FUNCTION__, '3.5', "get_default_post_to_edit( 'page' )" );
     1095        _deprecated_function( __FUNCTION__, '3.5.0', "get_default_post_to_edit( 'page' )" );
    10961096
    10971097        $page = get_default_post_to_edit();
    10981098        $page->post_type = 'page';
     
    11121112 * @return string Thumbnail path on success, Error string on failure.
    11131113 */
    11141114function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
    1115         _deprecated_function( __FUNCTION__, '3.5', 'image_resize()' );
     1115        _deprecated_function( __FUNCTION__, '3.5.0', 'image_resize()' );
    11161116        return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
    11171117}
    11181118
     
    11251125 * @deprecated 3.6.0
    11261126 */
    11271127function wp_nav_menu_locations_meta_box() {
    1128         _deprecated_function( __FUNCTION__, '3.6' );
     1128        _deprecated_function( __FUNCTION__, '3.6.0' );
    11291129}
    11301130
    11311131/**
     
    11391139 * @see Core_Upgrader
    11401140 */
    11411141function wp_update_core($current, $feedback = '') {
    1142         _deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' );
     1142        _deprecated_function( __FUNCTION__, '3.7.0', 'new Core_Upgrader();' );
    11431143
    11441144        if ( !empty($feedback) )
    11451145                add_filter('update_feedback', $feedback);
     
    11621162 * @see Plugin_Upgrader
    11631163 */
    11641164function wp_update_plugin($plugin, $feedback = '') {
    1165         _deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' );
     1165        _deprecated_function( __FUNCTION__, '3.7.0', 'new Plugin_Upgrader();' );
    11661166
    11671167        if ( !empty($feedback) )
    11681168                add_filter('update_feedback', $feedback);
     
    11841184 * @see Theme_Upgrader
    11851185 */
    11861186function wp_update_theme($theme, $feedback = '') {
    1187         _deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' );
     1187        _deprecated_function( __FUNCTION__, '3.7.0', 'new Theme_Upgrader();' );
    11881188
    11891189        if ( !empty($feedback) )
    11901190                add_filter('update_feedback', $feedback);
     
    12031203 * @param int|bool $id
    12041204 */
    12051205function the_attachment_links( $id = false ) {
    1206         _deprecated_function( __FUNCTION__, '3.7' );
     1206        _deprecated_function( __FUNCTION__, '3.7.0' );
    12071207}
    12081208
    12091209/**
     
    13051305 * @param int $new_ID
    13061306 */
    13071307function _relocate_children( $old_ID, $new_ID ) {
    1308         _deprecated_function( __FUNCTION__, '3.9' );
     1308        _deprecated_function( __FUNCTION__, '3.9.0' );
    13091309}
    13101310
    13111311/**
     
    13321332 * @return string The resulting page's hook_suffix.
    13331333 */
    13341334function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') {
    1335         _deprecated_function( __FUNCTION__, '4.5', 'add_menu_page()' );
     1335        _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' );
    13361336
    13371337        global $_wp_last_object_menu;
    13381338
     
    13651365 * @return string The resulting page's hook_suffix.
    13661366 */
    13671367function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') {
    1368         _deprecated_function( __FUNCTION__, '4.5', 'add_menu_page()' );
     1368        _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' );
    13691369
    13701370        global $_wp_last_utility_menu;
    13711371
     
    13901390function post_form_autocomplete_off() {
    13911391        global $is_safari, $is_chrome;
    13921392
    1393         _deprecated_function( __FUNCTION__, '4.6' );
     1393        _deprecated_function( __FUNCTION__, '4.6.0' );
    13941394
    13951395        if ( $is_safari || $is_chrome ) {
    13961396                echo ' autocomplete="off"';
  • wp-admin/includes/image-edit.php

     
    257257
    258258                return true;
    259259        } else {
    260                 _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) );
     260                _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
    261261
    262262                /**
    263263                 * Filters the GD image resource to be streamed to the browser.
     
    322322
    323323                return $image->save( $filename, $mime_type );
    324324        } else {
    325                 _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) );
     325                _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
    326326
    327327                /** This filter is documented in wp-admin/includes/image-edit.php */
    328328                $image = apply_filters( 'image_save_pre', $image, $post_id );
     
    388388 * @return resource|false GD image resource, false otherwise.
    389389 */
    390390function _rotate_image_resource($img, $angle) {
    391         _deprecated_function( __FUNCTION__, '3.5', __( 'Use WP_Image_Editor::rotate' ) );
     391        _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::rotate' ) );
    392392        if ( function_exists('imagerotate') ) {
    393393                $rotated = imagerotate($img, $angle, 0);
    394394                if ( is_resource($rotated) ) {
     
    411411 * @return resource (maybe) flipped image resource.
    412412 */
    413413function _flip_image_resource($img, $horz, $vert) {
    414         _deprecated_function( __FUNCTION__, '3.5', __( 'Use WP_Image_Editor::flip' ) );
     414        _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::flip' ) );
    415415        $w = imagesx($img);
    416416        $h = imagesy($img);
    417417        $dst = wp_imagecreatetruecolor($w, $h);
     
    464464 */
    465465function image_edit_apply_changes( $image, $changes ) {
    466466        if ( is_resource( $image ) )
    467                 _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) );
     467                _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
    468468
    469469        if ( !is_array($changes) )
    470470                return $image;
  • wp-admin/includes/meta-boxes.php

     
    10131013        global $link;
    10141014
    10151015        if ( !empty( $deprecated ) )
    1016                 _deprecated_argument( __FUNCTION__, '0.0' ); // Never implemented
     1016                _deprecated_argument( __FUNCTION__, '0.0.0' ); // Never implemented
    10171017
    10181018        $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: '';
    10191019        $rels = preg_split('/\s+/', $link_rel);
  • wp-admin/includes/ms-deprecated.php

     
    1616 * @deprecated 3.0.0
    1717 */
    1818function wpmu_menu() {
    19         _deprecated_function(__FUNCTION__, '3.0' );
     19        _deprecated_function(__FUNCTION__, '3.0.0' );
    2020        // Deprecated. See #11763.
    2121}
    2222
     
    2727 * @see is_upload_space_available()
    2828 */
    2929function wpmu_checkAvailableSpace() {
    30         _deprecated_function(__FUNCTION__, '3.0', 'is_upload_space_available()' );
     30        _deprecated_function(__FUNCTION__, '3.0.0', 'is_upload_space_available()' );
    3131
    3232        if ( !is_upload_space_available() )
    3333                wp_die( __('Sorry, you must delete files before you can upload any more.') );
     
    3939 * @deprecated 3.0.0
    4040 */
    4141function mu_options( $options ) {
    42         _deprecated_function(__FUNCTION__, '3.0' );
     42        _deprecated_function(__FUNCTION__, '3.0.0' );
    4343        return $options;
    4444}
    4545
     
    5050 * @see activate_plugin()
    5151 */
    5252function activate_sitewide_plugin() {
    53         _deprecated_function(__FUNCTION__, '3.0', 'activate_plugin()' );
     53        _deprecated_function(__FUNCTION__, '3.0.0', 'activate_plugin()' );
    5454        return false;
    5555}
    5656
     
    6161 * @see deactivate_sitewide_plugin()
    6262 */
    6363function deactivate_sitewide_plugin( $plugin = false ) {
    64         _deprecated_function(__FUNCTION__, '3.0', 'deactivate_plugin()' );
     64        _deprecated_function(__FUNCTION__, '3.0.0', 'deactivate_plugin()' );
    6565}
    6666
    6767/**
     
    7171 * @see is_network_only_plugin()
    7272 */
    7373function is_wpmu_sitewide_plugin( $file ) {
    74         _deprecated_function(__FUNCTION__, '3.0', 'is_network_only_plugin()' );
     74        _deprecated_function(__FUNCTION__, '3.0.0', 'is_network_only_plugin()' );
    7575        return is_network_only_plugin( $file );
    7676}
    7777
     
    8282 * @see WP_Theme::get_allowed_on_network()
    8383 */
    8484function get_site_allowed_themes() {
    85         _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_network()' );
     85        _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' );
    8686        return array_map( 'intval', WP_Theme::get_allowed_on_network() );
    8787}
    8888
     
    9393 * @see WP_Theme::get_allowed_on_site()
    9494 */
    9595function wpmu_get_blog_allowedthemes( $blog_id = 0 ) {
    96         _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_site()' );
     96        _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' );
    9797        return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) );
    9898}
    9999
  • wp-admin/includes/ms.php

     
    528528        global $wpdb;
    529529
    530530        if ( null !== $deprecated )
    531                 _deprecated_argument( __FUNCTION__, '3.1' );
     531                _deprecated_argument( __FUNCTION__, '3.0.2' );
    532532
    533533        $wpdb->update( $wpdb->users, array( sanitize_key( $pref ) => $value ), array( 'ID' => $id ) );
    534534
  • wp-admin/includes/plugin.php

     
    8686        // Site Wide Only is the old header for Network
    8787        if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) {
    8888                /* translators: 1: Site Wide Only: true, 2: Network: true */
    89                 _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), '<code>Site Wide Only: true</code>', '<code>Network: true</code>' ) );
     89                _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), '<code>Site Wide Only: true</code>', '<code>Network: true</code>' ) );
    9090                $plugin_data['Network'] = $plugin_data['_sitewide'];
    9191        }
    9292        $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) );
     
    17771777        global $new_whitelist_options;
    17781778
    17791779        if ( 'misc' == $option_group ) {
    1780                 _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1780                _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
    17811781                $option_group = 'general';
    17821782        }
    17831783
    17841784        if ( 'privacy' == $option_group ) {
    1785                 _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1785                _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
    17861786                $option_group = 'reading';
    17871787        }
    17881788
     
    18061806        global $new_whitelist_options;
    18071807
    18081808        if ( 'misc' == $option_group ) {
    1809                 _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1809                _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
    18101810                $option_group = 'general';
    18111811        }
    18121812
    18131813        if ( 'privacy' == $option_group ) {
    1814                 _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1814                _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
    18151815                $option_group = 'reading';
    18161816        }
    18171817
  • wp-admin/includes/template.php

     
    11961196        global $wp_settings_sections;
    11971197
    11981198        if ( 'misc' == $page ) {
    1199                 _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1199                _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
    12001200                $page = 'general';
    12011201        }
    12021202
    12031203        if ( 'privacy' == $page ) {
    1204                 _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1204                _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
    12051205                $page = 'reading';
    12061206        }
    12071207
     
    12471247        global $wp_settings_fields;
    12481248
    12491249        if ( 'misc' == $page ) {
    1250                 _deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
     1250                _deprecated_argument( __FUNCTION__, '3.0.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
    12511251                $page = 'general';
    12521252        }
    12531253
    12541254        if ( 'privacy' == $page ) {
    1255                 _deprecated_argument( __FUNCTION__, '3.5', __( 'The privacy options group has been removed. Use another settings group.' ) );
     1255                _deprecated_argument( __FUNCTION__, '3.5.0', __( 'The privacy options group has been removed. Use another settings group.' ) );
    12561256                $page = 'reading';
    12571257        }
    12581258
     
    19881988 */
    19891989function convert_to_screen( $hook_name ) {
    19901990        if ( ! class_exists( 'WP_Screen', false ) ) {
    1991                 _doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3' );
     1991                _doing_it_wrong( 'convert_to_screen(), add_meta_box()', __( "Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead." ), '3.3.0' );
    19921992                return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' );
    19931993        }
    19941994
  • wp-admin/includes/theme-install.php

     
    2929 * @return array
    3030 */
    3131function install_themes_feature_list() {
    32         _deprecated_function( __FUNCTION__, '3.1', 'get_theme_feature_list()' );
     32        _deprecated_function( __FUNCTION__, '3.1.0', 'get_theme_feature_list()' );
    3333
    3434        if ( !$cache = get_transient( 'wporg_theme_feature_list' ) )
    3535                set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
     
    160160 * @param object $theme
    161161 */
    162162function display_theme( $theme ) {
    163         _deprecated_function( __FUNCTION__, '3.4' );
     163        _deprecated_function( __FUNCTION__, '3.4.0' );
    164164        global $wp_list_table;
    165165        if ( ! isset( $wp_list_table ) ) {
    166166                $wp_list_table = _get_list_table('WP_Theme_Install_List_Table');
  • wp-admin/includes/upgrade.php

     
    3838 */
    3939function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '' ) {
    4040        if ( !empty( $deprecated ) )
    41                 _deprecated_argument( __FUNCTION__, '2.6' );
     41                _deprecated_argument( __FUNCTION__, '2.6.0' );
    4242
    4343        wp_check_mysql_version();
    4444        wp_cache_flush();
  • wp-admin/options-general.php

     
    353353                                        </p>
    354354                                        <?php
    355355                                }
    356                                 _deprecated_argument( 'define()', '4.0', sprintf( __( 'The %s constant in your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
     356                                _deprecated_argument( 'define()', '4.0.0', sprintf( __( 'The %s constant in your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
    357357                        }
    358358                        ?>
    359359                </td>
  • wp-admin/options.php

     
    195195        if ( $options ) {
    196196                foreach ( $options as $option ) {
    197197                        if ( $unregistered ) {
    198                                 _deprecated_argument( 'options.php', '2.7',
     198                                _deprecated_argument( 'options.php', '2.7.0',
    199199                                        sprintf(
    200200                                                /* translators: %s: the option/setting */
    201201                                                __( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ),
  • 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__), '2.5.0', 'wp-admin/includes/upgrade.php' );
    1212require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
  • wp-includes/author-template.php

     
    2424        global $authordata;
    2525
    2626        if ( !empty( $deprecated ) )
    27                 _deprecated_argument( __FUNCTION__, '2.1' );
     27                _deprecated_argument( __FUNCTION__, '2.1.0' );
    2828
    2929        /**
    3030         * Filters the display name of the current post's author.
     
    5757 */
    5858function the_author( $deprecated = '', $deprecated_echo = true ) {
    5959        if ( ! empty( $deprecated ) ) {
    60                 _deprecated_argument( __FUNCTION__, '2.1' );
     60                _deprecated_argument( __FUNCTION__, '2.1.0' );
    6161        }
    6262
    6363        if ( true !== $deprecated_echo ) {
    64                 _deprecated_argument( __FUNCTION__, '1.5',
     64                _deprecated_argument( __FUNCTION__, '1.5.0',
    6565                        /* translators: %s: get_the_author() */
    6666                        sprintf( __( 'Use %s instead if you do not want the value echoed.' ),
    6767                                '<code>get_the_author()</code>'
     
    277277 */
    278278function the_author_posts_link( $deprecated = '' ) {
    279279        if ( ! empty( $deprecated ) ) {
    280                 _deprecated_argument( __FUNCTION__, '2.1' );
     280                _deprecated_argument( __FUNCTION__, '2.1.0' );
    281281        }
    282282        echo get_the_author_posts_link();
    283283}
  • wp-includes/cache.php

     
    264264 * @global WP_Object_Cache $wp_object_cache Object cache global instance.
    265265 */
    266266function wp_cache_reset() {
    267         _deprecated_function( __FUNCTION__, '3.5' );
     267        _deprecated_function( __FUNCTION__, '3.5.0' );
    268268
    269269        global $wp_object_cache;
    270270
     
    631631         * @see switch_to_blog()
    632632         */
    633633        public function reset() {
    634                 _deprecated_function( __FUNCTION__, '3.5', 'switch_to_blog()' );
     634                _deprecated_function( __FUNCTION__, '3.5.0', 'switch_to_blog()' );
    635635
    636636                // Clear out non-global caches since the blog ID has changed.
    637637                foreach ( array_keys( $this->cache ) as $group ) {
  • wp-includes/category-template.php

     
    387387        // Back compat.
    388388        if ( isset( $args['type'] ) && 'link' == $args['type'] ) {
    389389                /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */
    390                 _deprecated_argument( __FUNCTION__, '3.0',
     390                _deprecated_argument( __FUNCTION__, '3.0.0',
    391391                        sprintf( __( '%1$s is deprecated. Use %2$s instead.' ),
    392392                                '<code>type => link</code>',
    393393                                '<code>taxonomy => link_category</code>'
  • wp-includes/category.php

     
    4242        // Back compat
    4343        if ( isset($args['type']) && 'link' == $args['type'] ) {
    4444                /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */
    45                 _deprecated_argument( __FUNCTION__, '3.0',
     45                _deprecated_argument( __FUNCTION__, '3.0.0',
    4646                        sprintf( __( '%1$s is deprecated. Use %2$s instead.' ),
    4747                                '<code>type => link</code>',
    4848                                '<code>taxonomy => link_category</code>'
  • wp-includes/class-snoopy.php

     
    33/**
    44 * Deprecated. Use WP_HTTP (http.php) instead.
    55 */
    6 _deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' );
     6_deprecated_file( basename( __FILE__ ), '3.0.0', WPINC . '/http.php' );
    77
    88if ( ! class_exists( 'Snoopy', false ) ) :
    99/*************************************************
  • wp-includes/class-wp-admin-bar.php

     
    2727                                return is_ssl() ? 'https://' : 'http://';
    2828
    2929                        case 'menu' :
    30                                 _deprecated_argument( 'WP_Admin_Bar', '3.3', 'Modify admin bar nodes with WP_Admin_Bar::get_node(), WP_Admin_Bar::add_node(), and WP_Admin_Bar::remove_node(), not the <code>menu</code> property.' );
     30                                _deprecated_argument( 'WP_Admin_Bar', '3.3.0', 'Modify admin bar nodes with WP_Admin_Bar::get_node(), WP_Admin_Bar::add_node(), and WP_Admin_Bar::remove_node(), not the <code>menu</code> property.' );
    3131                                return array(); // Sorry, folks.
    3232                }
    3333        }
     
    127127                        if ( empty( $args['title'] ) )
    128128                                return;
    129129
    130                         _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3' );
     130                        _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3.0' );
    131131                        // Deprecated: Generate an ID from the title.
    132132                        $args['id'] = esc_attr( sanitize_title( trim( $args['title'] ) ) );
    133133                }
     
    559559         * @param object $node
    560560         */
    561561        public function recursive_render( $id, $node ) {
    562                 _deprecated_function( __METHOD__, '3.3', 'WP_Admin_bar::render(), WP_Admin_Bar::_render_item()' );
     562                _deprecated_function( __METHOD__, '3.3.0', 'WP_Admin_bar::render(), WP_Admin_Bar::_render_item()' );
    563563                $this->_render_item( $node );
    564564        }
    565565
  • wp-includes/class-wp-customize-manager.php

     
    12981298                                '<a href="' . esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ) . '"><code>customize_loaded_components</code></a>'
    12991299                        );
    13001300
    1301                         _doing_it_wrong( __METHOD__, $message, '4.5' );
     1301                        _doing_it_wrong( __METHOD__, $message, '4.5.0' );
    13021302                }
    13031303                unset( $this->panels[ $id ] );
    13041304        }
  • wp-includes/class-wp-editor.php

     
    100100                if ( self::$this_tinymce ) {
    101101                        if ( false !== strpos( $editor_id, '[' ) ) {
    102102                                self::$this_tinymce = false;
    103                                 _deprecated_argument( 'wp_editor()', '3.9', 'TinyMCE editor IDs cannot have brackets.' );
     103                                _deprecated_argument( 'wp_editor()', '3.9.0', 'TinyMCE editor IDs cannot have brackets.' );
    104104                        }
    105105                }
    106106
     
    13021302         * @global int $content_width
    13031303         */
    13041304        public static function wp_fullscreen_html() {
    1305                 _deprecated_function( __FUNCTION__, '4.3' );
     1305                _deprecated_function( __FUNCTION__, '4.3.0' );
    13061306        }
    13071307
    13081308        /**
  • wp-includes/class-wp-user.php

     
    269269         */
    270270        public function __isset( $key ) {
    271271                if ( 'id' == $key ) {
    272                         _deprecated_argument( 'WP_User->id', '2.1',
     272                        _deprecated_argument( 'WP_User->id', '2.1.0',
    273273                                sprintf(
    274274                                        /* translators: %s: WP_User->ID */
    275275                                        __( 'Use %s instead.' ),
     
    299299         */
    300300        public function __get( $key ) {
    301301                if ( 'id' == $key ) {
    302                         _deprecated_argument( 'WP_User->id', '2.1',
     302                        _deprecated_argument( 'WP_User->id', '2.1.0',
    303303                                sprintf(
    304304                                        /* translators: %s: WP_User->ID */
    305305                                        __( 'Use %s instead.' ),
     
    338338         */
    339339        public function __set( $key, $value ) {
    340340                if ( 'id' == $key ) {
    341                         _deprecated_argument( 'WP_User->id', '2.1',
     341                        _deprecated_argument( 'WP_User->id', '2.1.0',
    342342                                sprintf(
    343343                                        /* translators: %s: WP_User->ID */
    344344                                        __( 'Use %s instead.' ),
     
    362362         */
    363363        public function __unset( $key ) {
    364364                if ( 'id' == $key ) {
    365                         _deprecated_argument( 'WP_User->id', '2.1',
     365                        _deprecated_argument( 'WP_User->id', '2.1.0',
    366366                                sprintf(
    367367                                        /* translators: %s: WP_User->ID */
    368368                                        __( 'Use %s instead.' ),
     
    712712         */
    713713        public function has_cap( $cap ) {
    714714                if ( is_numeric( $cap ) ) {
    715                         _deprecated_argument( __FUNCTION__, '2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );
     715                        _deprecated_argument( __FUNCTION__, '2.0.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );
    716716                        $cap = $this->translate_level_to_cap( $cap );
    717717                }
    718718
  • wp-includes/class.wp-scripts.php

     
    197197         * @return bool|string|void Void if no data exists, extra scripts if `$echo` is true, true otherwise.
    198198         */
    199199        public function print_scripts_l10n( $handle, $echo = true ) {
    200                 _deprecated_function( __FUNCTION__, '3.3', 'print_extra_script()' );
     200                _deprecated_function( __FUNCTION__, '3.3.0', 'print_extra_script()' );
    201201                return $this->print_extra_script( $handle, $echo );
    202202        }
    203203
  • wp-includes/comment-template.php

     
    825825        if ( !empty( $deprecated ) )
    826826                _deprecated_argument( __FUNCTION__, '0.72' );
    827827        if ( !empty( $deprecated_2 ) )
    828                 _deprecated_argument( __FUNCTION__, '1.3' );
     828                _deprecated_argument( __FUNCTION__, '1.3.0' );
    829829        echo esc_url( get_comments_link() );
    830830}
    831831
     
    870870 */
    871871function comments_number( $zero = false, $one = false, $more = false, $deprecated = '' ) {
    872872        if ( ! empty( $deprecated ) ) {
    873                 _deprecated_argument( __FUNCTION__, '1.3' );
     873                _deprecated_argument( __FUNCTION__, '1.3.0' );
    874874        }
    875875        echo get_comments_number_text( $zero, $one, $more );
    876876}
     
    11111111 */
    11121112function trackback_url( $deprecated_echo = true ) {
    11131113        if ( true !== $deprecated_echo ) {
    1114                 _deprecated_argument( __FUNCTION__, '2.5',
     1114                _deprecated_argument( __FUNCTION__, '2.5.0',
    11151115                        /* translators: %s: get_trackback_url() */
    11161116                        sprintf( __( 'Use %s instead if you do not want the value echoed.' ),
    11171117                                '<code>get_trackback_url()</code>'
     
    11371137 */
    11381138function trackback_rdf( $deprecated = '' ) {
    11391139        if ( ! empty( $deprecated ) ) {
    1140                 _deprecated_argument( __FUNCTION__, '2.5' );
     1140                _deprecated_argument( __FUNCTION__, '2.5.0' );
    11411141        }
    11421142
    11431143        if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && false !== stripos( $_SERVER['HTTP_USER_AGENT'], 'W3C_Validator' ) ) {
  • wp-includes/comment.php

     
    21952195 */
    21962196function discover_pingback_server_uri( $url, $deprecated = '' ) {
    21972197        if ( !empty( $deprecated ) )
    2198                 _deprecated_argument( __FUNCTION__, '2.7' );
     2198                _deprecated_argument( __FUNCTION__, '2.7.0' );
    21992199
    22002200        $pingback_str_dquote = 'rel="pingback"';
    22012201        $pingback_str_squote = 'rel=\'pingback\'';
  • wp-includes/cron.php

     
    191191        // Backward compatibility
    192192        // Previously this function took the arguments as discrete vars rather than an array like the rest of the API
    193193        if ( !is_array($args) ) {
    194                 _deprecated_argument( __FUNCTION__, '3.0', __('This argument has changed to an array to match the behavior of the other cron functions.') );
     194                _deprecated_argument( __FUNCTION__, '3.0.0', __('This argument has changed to an array to match the behavior of the other cron functions.') );
    195195                $args = array_slice( func_get_args(), 1 );
    196196        }
    197197
  • wp-includes/deprecated.php

     
    6161function start_wp() {
    6262        global $wp_query;
    6363
    64         _deprecated_function( __FUNCTION__, '1.5', __('new WordPress Loop') );
     64        _deprecated_function( __FUNCTION__, '1.5.0', __('new WordPress Loop') );
    6565
    6666        // Since the old style loop is being used, advance the query iterator here.
    6767        $wp_query->next_post();
     
    134134 */
    135135function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
    136136
    137         _deprecated_function( __FUNCTION__, '2.0', 'previous_post_link()' );
     137        _deprecated_function( __FUNCTION__, '2.0.0', 'previous_post_link()' );
    138138
    139139        if ( empty($in_same_cat) || 'no' == $in_same_cat )
    140140                $in_same_cat = false;
     
    169169 * @param string $excluded_categories
    170170 */
    171171function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
    172         _deprecated_function( __FUNCTION__, '2.0', 'next_post_link()' );
     172        _deprecated_function( __FUNCTION__, '2.0.0', 'next_post_link()' );
    173173
    174174        if ( empty($in_same_cat) || 'no' == $in_same_cat )
    175175                $in_same_cat = false;
     
    202202 * @return bool
    203203 */
    204204function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') {
    205         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     205        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    206206
    207207        $author_data = get_userdata($user_id);
    208208        return ($author_data->user_level > 1);
     
    221221 * @return bool
    222222 */
    223223function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') {
    224         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     224        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    225225
    226226        $author_data = get_userdata($user_id);
    227227        return ($author_data->user_level >= 1);
     
    240240 * @return bool
    241241 */
    242242function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
    243         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     243        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    244244
    245245        $author_data = get_userdata($user_id);
    246246        $post = get_post($post_id);
     
    268268 * @return bool
    269269 */
    270270function user_can_delete_post($user_id, $post_id, $blog_id = 1) {
    271         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     271        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    272272
    273273        // right now if one can edit, one can delete
    274274        return user_can_edit_post($user_id, $post_id, $blog_id);
     
    287287 * @return bool
    288288 */
    289289function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') {
    290         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     290        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    291291
    292292        $author_data = get_userdata($user_id);
    293293        return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id));
     
    306306 * @return bool returns true if $user_id can edit $post_id's date
    307307 */
    308308function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) {
    309         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     309        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    310310
    311311        $author_data = get_userdata($user_id);
    312312        return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id));
     
    325325 * @return bool returns true if $user_id can edit $post_id's comments
    326326 */
    327327function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) {
    328         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     328        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    329329
    330330        // right now if one can edit a post, one can edit comments made on it
    331331        return user_can_edit_post($user_id, $post_id, $blog_id);
     
    344344 * @return bool returns true if $user_id can delete $post_id's comments
    345345 */
    346346function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) {
    347         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     347        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    348348
    349349        // right now if one can edit comments, one can delete comments
    350350        return user_can_edit_post_comments($user_id, $post_id, $blog_id);
     
    362362 * @return bool
    363363 */
    364364function user_can_edit_user($user_id, $other_user) {
    365         _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
     365        _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' );
    366366
    367367        $user  = get_userdata($user_id);
    368368        $other = get_userdata($other_user);
     
    395395function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
    396396                                                 $show_description = true, $show_rating = false,
    397397                                                 $limit = -1, $show_updated = 0) {
    398         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
     398        _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
    399399
    400400        $cat_id = -1;
    401401        $cat = get_term_by('name', $cat_name, 'link_category');
     
    417417 * @return string|null
    418418 */
    419419function wp_get_linksbyname($category, $args = '') {
    420         _deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()');
     420        _deprecated_function(__FUNCTION__, '2.1.0', 'wp_list_bookmarks()');
    421421
    422422        $defaults = array(
    423423                'after' => '<br />',
     
    455455 * @return array
    456456 */
    457457function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) {
    458         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
     458        _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
    459459
    460460        $cat_id = -1;
    461461        $cat = get_term_by('name', $cat_name, 'link_category');
     
    506506 * @return array
    507507 */
    508508function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
    509         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
     509        _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
    510510
    511511        $links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ;
    512512
     
    539539 */
    540540function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",
    541541                                                                        $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
    542         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
     542        _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
    543543
    544544        get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
    545545}
     
    566566 */
    567567function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
    568568                                                          $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
    569         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
     569        _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
    570570
    571571        get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
    572572}
     
    581581 * @return int Only returns 0.
    582582 */
    583583function get_autotoggle($id = 0) {
    584         _deprecated_function( __FUNCTION__, '2.1' );
     584        _deprecated_function( __FUNCTION__, '2.1.0' );
    585585        return 0;
    586586}
    587587
     
    615615function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
    616616                                   $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
    617617                                   $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
    618         _deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' );
     618        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );
    619619
    620620        $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
    621621                'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
     
    633633 * @return false|null|string
    634634 */
    635635function wp_list_cats($args = '') {
    636         _deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' );
     636        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );
    637637
    638638        $r = wp_parse_args( $args );
    639639
     
    677677function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',
    678678                $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false,
    679679                $selected = 0, $exclude = 0) {
    680         _deprecated_function( __FUNCTION__, '2.1', 'wp_dropdown_categories()' );
     680        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_dropdown_categories()' );
    681681
    682682        $show_option_all = '';
    683683        if ( $optionall )
     
    709709 * @return null|string
    710710 */
    711711function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
    712         _deprecated_function( __FUNCTION__, '2.1', 'wp_list_authors()' );
     712        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_authors()' );
    713713
    714714        $args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
    715715        return wp_list_authors($args);
     
    727727 * @return array
    728728 */
    729729function wp_get_post_cats($blogid = '1', $post_ID = 0) {
    730         _deprecated_function( __FUNCTION__, '2.1', 'wp_get_post_categories()' );
     730        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_post_categories()' );
    731731        return wp_get_post_categories($post_ID);
    732732}
    733733
     
    745745 * @return bool|mixed
    746746 */
    747747function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) {
    748         _deprecated_function( __FUNCTION__, '2.1', 'wp_set_post_categories()' );
     748        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_set_post_categories()' );
    749749        return wp_set_post_categories($post_ID, $post_categories);
    750750}
    751751
     
    765765 * @return string|null
    766766 */
    767767function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
    768         _deprecated_function( __FUNCTION__, '2.1', 'wp_get_archives()' );
     768        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_archives()' );
    769769        $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
    770770        return wp_get_archives($args);
    771771}
     
    783783 * @return string|null
    784784 */
    785785function get_author_link($echo, $author_id, $author_nicename = '') {
    786         _deprecated_function( __FUNCTION__, '2.1', 'get_author_posts_url()' );
     786        _deprecated_function( __FUNCTION__, '2.1.0', 'get_author_posts_url()' );
    787787
    788788        $link = get_author_posts_url($author_id, $author_nicename);
    789789
     
    810810 */
    811811function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page',
    812812                                        $pagelink='%', $more_file='') {
    813         _deprecated_function( __FUNCTION__, '2.1', 'wp_link_pages()' );
     813        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_link_pages()' );
    814814
    815815        $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file');
    816816        return wp_link_pages($args);
     
    827827 * @return string
    828828 */
    829829function get_settings($option) {
    830         _deprecated_function( __FUNCTION__, '2.1', 'get_option()' );
     830        _deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' );
    831831
    832832        return get_option($option);
    833833}
     
    840840 * @see the_permalink()
    841841 */
    842842function permalink_link() {
    843         _deprecated_function( __FUNCTION__, '1.2', 'the_permalink()' );
     843        _deprecated_function( __FUNCTION__, '1.2.0', 'the_permalink()' );
    844844        the_permalink();
    845845}
    846846
     
    854854 * @param string $deprecated
    855855 */
    856856function permalink_single_rss($deprecated = '') {
    857         _deprecated_function( __FUNCTION__, '2.3', 'the_permalink_rss()' );
     857        _deprecated_function( __FUNCTION__, '2.3.0', 'the_permalink_rss()' );
    858858        the_permalink_rss();
    859859}
    860860
     
    869869 * @return null|string
    870870 */
    871871function wp_get_links($args = '') {
    872         _deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' );
     872        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_bookmarks()' );
    873873
    874874        if ( strpos( $args, '=' ) === false ) {
    875875                $cat_id = $args;
     
    923923 */
    924924function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
    925925                        $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
    926         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
     926        _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
    927927
    928928        $order = 'ASC';
    929929        if ( substr($orderby, 0, 1) == '_' ) {
     
    10151015 * @param string $order Sort link categories by 'name' or 'id'
    10161016 */
    10171017function get_links_list($order = 'name') {
    1018         _deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' );
     1018        _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_bookmarks()' );
    10191019
    10201020        $order = strtolower($order);
    10211021
     
    10601060 * @param bool $count the number of links in the db
    10611061 */
    10621062function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
    1063         _deprecated_function( __FUNCTION__, '2.1' );
     1063        _deprecated_function( __FUNCTION__, '2.1.0' );
    10641064}
    10651065
    10661066/**
     
    10741074 * @return mixed Value of the 'link_rating' field, false otherwise.
    10751075 */
    10761076function get_linkrating( $link ) {
    1077         _deprecated_function( __FUNCTION__, '2.1', 'sanitize_bookmark_field()' );
     1077        _deprecated_function( __FUNCTION__, '2.1.0', 'sanitize_bookmark_field()' );
    10781078        return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');
    10791079}
    10801080
     
    10891089 * @return string
    10901090 */
    10911091function get_linkcatname($id = 0) {
    1092         _deprecated_function( __FUNCTION__, '2.1', 'get_category()' );
     1092        _deprecated_function( __FUNCTION__, '2.1.0', 'get_category()' );
    10931093
    10941094        $id = (int) $id;
    10951095
     
    11171117 * @param string $link_text
    11181118 */
    11191119function comments_rss_link($link_text = 'Comments RSS') {
    1120         _deprecated_function( __FUNCTION__, '2.5', 'post_comments_feed_link()' );
     1120        _deprecated_function( __FUNCTION__, '2.5.0', 'post_comments_feed_link()' );
    11211121        post_comments_feed_link($link_text);
    11221122}
    11231123
     
    11331133 * @return string
    11341134 */
    11351135function get_category_rss_link($echo = false, $cat_ID = 1) {
    1136         _deprecated_function( __FUNCTION__, '2.5', 'get_category_feed_link()' );
     1136        _deprecated_function( __FUNCTION__, '2.5.0', 'get_category_feed_link()' );
    11371137
    11381138        $link = get_category_feed_link($cat_ID, 'rss2');
    11391139
     
    11541154 * @return string
    11551155 */
    11561156function get_author_rss_link($echo = false, $author_id = 1) {
    1157         _deprecated_function( __FUNCTION__, '2.5', 'get_author_feed_link()' );
     1157        _deprecated_function( __FUNCTION__, '2.5.0', 'get_author_feed_link()' );
    11581158
    11591159        $link = get_author_feed_link($author_id);
    11601160        if ( $echo )
     
    11721172 * @return string
    11731173 */
    11741174function comments_rss() {
    1175         _deprecated_function( __FUNCTION__, '2.2', 'get_post_comments_feed_link()' );
     1175        _deprecated_function( __FUNCTION__, '2.2.0', 'get_post_comments_feed_link()' );
    11761176        return esc_url( get_post_comments_feed_link() );
    11771177}
    11781178
     
    11891189 * @return int The new user's ID.
    11901190 */
    11911191function create_user($username, $password, $email) {
    1192         _deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' );
     1192        _deprecated_function( __FUNCTION__, '2.0.0', 'wp_create_user()' );
    11931193        return wp_create_user($username, $password, $email);
    11941194}
    11951195
     
    11991199 * @deprecated 2.5.0
    12001200 */
    12011201function gzip_compression() {
    1202         _deprecated_function( __FUNCTION__, '2.5' );
     1202        _deprecated_function( __FUNCTION__, '2.5.0' );
    12031203        return false;
    12041204}
    12051205
     
    12161216 * @return array The comment data
    12171217 */
    12181218function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) {
    1219         _deprecated_function( __FUNCTION__, '2.7', 'get_comment()' );
     1219        _deprecated_function( __FUNCTION__, '2.7.0', 'get_comment()' );
    12201220        return get_comment($comment_ID, ARRAY_A);
    12211221}
    12221222
     
    12311231 * @return string category name
    12321232 */
    12331233function get_catname( $cat_ID ) {
    1234         _deprecated_function( __FUNCTION__, '2.8', 'get_cat_name()' );
     1234        _deprecated_function( __FUNCTION__, '2.8.0', 'get_cat_name()' );
    12351235        return get_cat_name( $cat_ID );
    12361236}
    12371237
     
    12491249 * @return string
    12501250 */
    12511251function get_category_children( $id, $before = '/', $after = '', $visited = array() ) {
    1252         _deprecated_function( __FUNCTION__, '2.8', 'get_term_children()' );
     1252        _deprecated_function( __FUNCTION__, '2.8.0', 'get_term_children()' );
    12531253        if ( 0 == $id )
    12541254                return '';
    12551255
     
    12841284 * @return object List of all of the category IDs.
    12851285 */
    12861286function get_all_category_ids() {
    1287         _deprecated_function( __FUNCTION__, '4.0', 'get_terms()' );
     1287        _deprecated_function( __FUNCTION__, '4.0.0', 'get_terms()' );
    12881288
    12891289        if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) {
    12901290                $cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') );
     
    13041304 * @return string The author's description.
    13051305 */
    13061306function get_the_author_description() {
    1307         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'description\')' );
     1307        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'description\')' );
    13081308        return get_the_author_meta('description');
    13091309}
    13101310
     
    13161316 * @see the_author_meta()
    13171317 */
    13181318function the_author_description() {
    1319         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'description\')' );
     1319        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'description\')' );
    13201320        the_author_meta('description');
    13211321}
    13221322
     
    13301330 * @return string The author's login name (username).
    13311331 */
    13321332function get_the_author_login() {
    1333         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'login\')' );
     1333        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'login\')' );
    13341334        return get_the_author_meta('login');
    13351335}
    13361336
     
    13421342 * @see the_author_meta()
    13431343 */
    13441344function the_author_login() {
    1345         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'login\')' );
     1345        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'login\')' );
    13461346        the_author_meta('login');
    13471347}
    13481348
     
    13561356 * @return string The author's first name.
    13571357 */
    13581358function get_the_author_firstname() {
    1359         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'first_name\')' );
     1359        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'first_name\')' );
    13601360        return get_the_author_meta('first_name');
    13611361}
    13621362
     
    13681368 * @see the_author_meta()
    13691369 */
    13701370function the_author_firstname() {
    1371         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'first_name\')' );
     1371        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'first_name\')' );
    13721372        the_author_meta('first_name');
    13731373}
    13741374
     
    13821382 * @return string The author's last name.
    13831383 */
    13841384function get_the_author_lastname() {
    1385         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'last_name\')' );
     1385        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'last_name\')' );
    13861386        return get_the_author_meta('last_name');
    13871387}
    13881388
     
    13941394 * @see the_author_meta()
    13951395 */
    13961396function the_author_lastname() {
    1397         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'last_name\')' );
     1397        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'last_name\')' );
    13981398        the_author_meta('last_name');
    13991399}
    14001400
     
    14081408 * @return string The author's nickname.
    14091409 */
    14101410function get_the_author_nickname() {
    1411         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'nickname\')' );
     1411        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'nickname\')' );
    14121412        return get_the_author_meta('nickname');
    14131413}
    14141414
     
    14201420 * @see the_author_meta()
    14211421 */
    14221422function the_author_nickname() {
    1423         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'nickname\')' );
     1423        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'nickname\')' );
    14241424        the_author_meta('nickname');
    14251425}
    14261426
     
    14341434 * @return string The author's username.
    14351435 */
    14361436function get_the_author_email() {
    1437         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'email\')' );
     1437        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'email\')' );
    14381438        return get_the_author_meta('email');
    14391439}
    14401440
     
    14461446 * @see the_author_meta()
    14471447 */
    14481448function the_author_email() {
    1449         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'email\')' );
     1449        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'email\')' );
    14501450        the_author_meta('email');
    14511451}
    14521452
     
    14601460 * @return string The author's ICQ number.
    14611461 */
    14621462function get_the_author_icq() {
    1463         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'icq\')' );
     1463        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'icq\')' );
    14641464        return get_the_author_meta('icq');
    14651465}
    14661466
     
    14721472 * @see the_author_meta()
    14731473 */
    14741474function the_author_icq() {
    1475         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'icq\')' );
     1475        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'icq\')' );
    14761476        the_author_meta('icq');
    14771477}
    14781478
     
    14861486 * @return string The author's Yahoo! IM name.
    14871487 */
    14881488function get_the_author_yim() {
    1489         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'yim\')' );
     1489        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'yim\')' );
    14901490        return get_the_author_meta('yim');
    14911491}
    14921492
     
    14981498 * @see the_author_meta()
    14991499 */
    15001500function the_author_yim() {
    1501         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'yim\')' );
     1501        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'yim\')' );
    15021502        the_author_meta('yim');
    15031503}
    15041504
     
    15121512 * @return string The author's MSN address.
    15131513 */
    15141514function get_the_author_msn() {
    1515         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'msn\')' );
     1515        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'msn\')' );
    15161516        return get_the_author_meta('msn');
    15171517}
    15181518
     
    15241524 * @see the_author_meta()
    15251525 */
    15261526function the_author_msn() {
    1527         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'msn\')' );
     1527        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'msn\')' );
    15281528        the_author_meta('msn');
    15291529}
    15301530
     
    15381538 * @return string The author's AIM address.
    15391539 */
    15401540function get_the_author_aim() {
    1541         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'aim\')' );
     1541        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'aim\')' );
    15421542        return get_the_author_meta('aim');
    15431543}
    15441544
     
    15501550 * @see the_author_meta()
    15511551 */
    15521552function the_author_aim() {
    1553         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'aim\')' );
     1553        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'aim\')' );
    15541554        the_author_meta('aim');
    15551555}
    15561556
     
    15651565 * @return string The author's display name.
    15661566 */
    15671567function get_author_name( $auth_id = false ) {
    1568         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'display_name\')' );
     1568        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'display_name\')' );
    15691569        return get_the_author_meta('display_name', $auth_id);
    15701570}
    15711571
     
    15791579 * @return string The URL to the author's page.
    15801580 */
    15811581function get_the_author_url() {
    1582         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'url\')' );
     1582        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'url\')' );
    15831583        return get_the_author_meta('url');
    15841584}
    15851585
     
    15911591 * @see the_author_meta()
    15921592 */
    15931593function the_author_url() {
    1594         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'url\')' );
     1594        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'url\')' );
    15951595        the_author_meta('url');
    15961596}
    15971597
     
    16051605 * @return string|int The author's ID.
    16061606 */
    16071607function get_the_author_ID() {
    1608         _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'ID\')' );
     1608        _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'ID\')' );
    16091609        return get_the_author_meta('ID');
    16101610}
    16111611
     
    16171617 * @see the_author_meta()
    16181618 */
    16191619function the_author_ID() {
    1620         _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'ID\')' );
     1620        _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'ID\')' );
    16211621        the_author_meta('ID');
    16221622}
    16231623
     
    16501650 * @param int $encode_html Optional. How to encode the content.
    16511651 */
    16521652function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
    1653         _deprecated_function( __FUNCTION__, '2.9', 'the_content_feed' );
     1653        _deprecated_function( __FUNCTION__, '2.9.0', 'the_content_feed' );
    16541654        $content = get_the_content($more_link_text, $stripteaser);
    16551655        $content = apply_filters('the_content_rss', $content);
    16561656        if ( $cut && !$encode_html )
     
    16961696 * @return string HTML stripped out of content with links at the bottom.
    16971697 */
    16981698function make_url_footnote( $content ) {
    1699         _deprecated_function( __FUNCTION__, '2.9', '' );
     1699        _deprecated_function( __FUNCTION__, '2.9.0', '' );
    17001700        preg_match_all( '/<a(.+?)href=\"(.+?)\"(.*?)>(.+?)<\/a>/', $content, $matches );
    17011701        $links_summary = "\n";
    17021702        for ( $i = 0, $c = count( $matches[0] ); $i < $c; $i++ ) {
     
    17351735 * @return string Translated context string without pipe
    17361736 */
    17371737function _c( $text, $domain = 'default' ) {
    1738         _deprecated_function( __FUNCTION__, '2.9', '_x()' );
     1738        _deprecated_function( __FUNCTION__, '2.9.0', '_x()' );
    17391739        return before_last_bar( translate( $text, $domain ) );
    17401740}
    17411741
     
    17521752 * @return string Translated text
    17531753 */
    17541754function translate_with_context( $text, $domain = 'default' ) {
    1755         _deprecated_function( __FUNCTION__, '2.9', '_x()' );
     1755        _deprecated_function( __FUNCTION__, '2.9.0', '_x()' );
    17561756        return before_last_bar( translate( $text, $domain ) );
    17571757}
    17581758
     
    17731773 * @return string The translated singular or plural form.
    17741774 */
    17751775function _nc( $single, $plural, $number, $domain = 'default' ) {
    1776         _deprecated_function( __FUNCTION__, '2.9', '_nx()' );
     1776        _deprecated_function( __FUNCTION__, '2.9.0', '_nx()' );
    17771777        return before_last_bar( _n( $single, $plural, $number, $domain ) );
    17781778}
    17791779
     
    17851785 * @see _n()
    17861786 */
    17871787function __ngettext() {
    1788         _deprecated_function( __FUNCTION__, '2.8', '_n()' );
     1788        _deprecated_function( __FUNCTION__, '2.8.0', '_n()' );
    17891789        $args = func_get_args();
    17901790        return call_user_func_array('_n', $args);
    17911791}
     
    17981798 * @see _n_noop()
    17991799 */
    18001800function __ngettext_noop() {
    1801         _deprecated_function( __FUNCTION__, '2.8', '_n_noop()' );
     1801        _deprecated_function( __FUNCTION__, '2.8.0', '_n_noop()' );
    18021802        $args = func_get_args();
    18031803        return call_user_func_array('_n_noop', $args);
    18041804
     
    18141814 * @return array List of all options.
    18151815 */
    18161816function get_alloptions() {
    1817         _deprecated_function( __FUNCTION__, '3.0', 'wp_load_alloptions()' );
     1817        _deprecated_function( __FUNCTION__, '3.0.0', 'wp_load_alloptions()' );
    18181818        return wp_load_alloptions();
    18191819}
    18201820
     
    18321832 * @return string
    18331833 */
    18341834function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) {
    1835         _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_link()' );
     1835        _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_link()' );
    18361836        $id = (int) $id;
    18371837        $_post = get_post($id);
    18381838
     
    18601860 * @return array Icon URL and full path to file, respectively.
    18611861 */
    18621862function get_attachment_icon_src( $id = 0, $fullsize = false ) {
    1863         _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image_src()' );
     1863        _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image_src()' );
    18641864        $id = (int) $id;
    18651865        if ( !$post = get_post($id) )
    18661866                return false;
     
    19021902 * @return false|string HTML content.
    19031903 */
    19041904function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) {
    1905         _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' );
     1905        _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' );
    19061906        $id = (int) $id;
    19071907        if ( !$post = get_post($id) )
    19081908                return false;
     
    19581958 * @return false|string
    19591959 */
    19601960function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) {
    1961         _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' );
     1961        _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' );
    19621962        $id = (int) $id;
    19631963        if ( !$post = get_post($id) )
    19641964                return false;
     
    19861986 * @return object|array Bookmark object or array, depending on the type specified by `$output`.
    19871987 */
    19881988function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) {
    1989         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmark()' );
     1989        _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmark()' );
    19901990        return get_bookmark($bookmark_id, $output, $filter);
    19911991}
    19921992
     
    20022002 * @return string The cleaned URL.
    20032003 */
    20042004function sanitize_url( $url, $protocols = null ) {
    2005         _deprecated_function( __FUNCTION__, '2.8', 'esc_url_raw()' );
     2005        _deprecated_function( __FUNCTION__, '2.8.0', 'esc_url_raw()' );
    20062006        return esc_url_raw( $url, $protocols );
    20072007}
    20082008
     
    20242024 */
    20252025function clean_url( $url, $protocols = null, $context = 'display' ) {
    20262026        if ( $context == 'db' )
    2027                 _deprecated_function( 'clean_url( $context = \'db\' )', '3.0', 'esc_url_raw()' );
     2027                _deprecated_function( 'clean_url( $context = \'db\' )', '3.0.0', 'esc_url_raw()' );
    20282028        else
    2029                 _deprecated_function( __FUNCTION__, '3.0', 'esc_url()' );
     2029                _deprecated_function( __FUNCTION__, '3.0.0', 'esc_url()' );
    20302030        return esc_url( $url, $protocols, $context );
    20312031}
    20322032
     
    20432043 * @return string Escaped text.
    20442044 */
    20452045function js_escape( $text ) {
    2046         _deprecated_function( __FUNCTION__, '2.8', 'esc_js()' );
     2046        _deprecated_function( __FUNCTION__, '2.8.0', 'esc_js()' );
    20472047        return esc_js( $text );
    20482048}
    20492049
     
    20602060 * @return string Escaped `$string`.
    20612061 */
    20622062function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {
    2063         _deprecated_function( __FUNCTION__, '2.8', 'esc_html()' );
     2063        _deprecated_function( __FUNCTION__, '2.8.0', 'esc_html()' );
    20642064        if ( func_num_args() > 1 ) { // Maintain back-compat for people passing additional arguments.
    20652065                $args = func_get_args();
    20662066                return call_user_func_array( '_wp_specialchars', $args );
     
    20802080 * @return string
    20812081 */
    20822082function attribute_escape( $text ) {
    2083         _deprecated_function( __FUNCTION__, '2.8', 'esc_attr()' );
     2083        _deprecated_function( __FUNCTION__, '2.8.0', 'esc_attr()' );
    20842084        return esc_attr( $text );
    20852085}
    20862086
     
    21042104 * @param mixed      $params ,...     Widget parameters.
    21052105 */
    21062106function register_sidebar_widget($name, $output_callback, $classname = '') {
    2107         _deprecated_function( __FUNCTION__, '2.8', 'wp_register_sidebar_widget()' );
     2107        _deprecated_function( __FUNCTION__, '2.8.0', 'wp_register_sidebar_widget()' );
    21082108        // Compat
    21092109        if ( is_array($name) ) {
    21102110                if ( count($name) == 3 )
     
    21352135 * @param int|string $id Widget ID.
    21362136 */
    21372137function unregister_sidebar_widget($id) {
    2138         _deprecated_function( __FUNCTION__, '2.8', 'wp_unregister_sidebar_widget()' );
     2138        _deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_sidebar_widget()' );
    21392139        return wp_unregister_sidebar_widget($id);
    21402140}
    21412141
     
    21592159 * @param int $height Widget height.
    21602160 */
    21612161function register_widget_control($name, $control_callback, $width = '', $height = '') {
    2162         _deprecated_function( __FUNCTION__, '2.8', 'wp_register_widget_control()' );
     2162        _deprecated_function( __FUNCTION__, '2.8.0', 'wp_register_widget_control()' );
    21632163        // Compat
    21642164        if ( is_array($name) ) {
    21652165                if ( count($name) == 3 )
     
    21922192 * @param int|string $id Widget ID.
    21932193 */
    21942194function unregister_widget_control($id) {
    2195         _deprecated_function( __FUNCTION__, '2.8', 'wp_unregister_widget_control()' );
     2195        _deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_widget_control()' );
    21962196        return wp_unregister_widget_control($id);
    21972197}
    21982198
     
    22092209 * @return bool True deletion completed and false if user_id is not a number.
    22102210 */
    22112211function delete_usermeta( $user_id, $meta_key, $meta_value = '' ) {
    2212         _deprecated_function( __FUNCTION__, '3.0', 'delete_user_meta()' );
     2212        _deprecated_function( __FUNCTION__, '3.0.0', 'delete_user_meta()' );
    22132213        global $wpdb;
    22142214        if ( !is_numeric( $user_id ) )
    22152215                return false;
     
    22552255 * @return mixed
    22562256 */
    22572257function get_usermeta( $user_id, $meta_key = '' ) {
    2258         _deprecated_function( __FUNCTION__, '3.0', 'get_user_meta()' );
     2258        _deprecated_function( __FUNCTION__, '3.0.0', 'get_user_meta()' );
    22592259        global $wpdb;
    22602260        $user_id = (int) $user_id;
    22612261
     
    23082308 * @return bool True on successful update, false on failure.
    23092309 */
    23102310function update_usermeta( $user_id, $meta_key, $meta_value ) {
    2311         _deprecated_function( __FUNCTION__, '3.0', 'update_user_meta()' );
     2311        _deprecated_function( __FUNCTION__, '3.0.0', 'update_user_meta()' );
    23122312        global $wpdb;
    23132313        if ( !is_numeric( $user_id ) )
    23142314                return false;
     
    23632363 * @return array List of users that are part of that site ID
    23642364 */
    23652365function get_users_of_blog( $id = '' ) {
    2366         _deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
     2366        _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    23672367
    23682368        global $wpdb, $blog_id;
    23692369        if ( empty($id) )
     
    23832383 * @param bool $add Optional, default is true. Add or remove links. Defaults to true.
    23842384 */
    23852385function automatic_feed_links( $add = true ) {
    2386         _deprecated_function( __FUNCTION__, '3.0', "add_theme_support( 'automatic-feed-links' )" );
     2386        _deprecated_function( __FUNCTION__, '3.0.0', "add_theme_support( 'automatic-feed-links' )" );
    23872387
    23882388        if ( $add )
    23892389                add_theme_support( 'automatic-feed-links' );
     
    24032403 * @return string The author's field from the current author's DB object.
    24042404 */
    24052405function get_profile( $field, $user = false ) {
    2406         _deprecated_function( __FUNCTION__, '3.0', 'get_the_author_meta()' );
     2406        _deprecated_function( __FUNCTION__, '3.0.0', 'get_the_author_meta()' );
    24072407        if ( $user ) {
    24082408                $user = get_user_by( 'login', $user );
    24092409                $user = $user->ID;
     
    24222422 * @return int Number of posts the given user has written.
    24232423 */
    24242424function get_usernumposts( $userid ) {
    2425         _deprecated_function( __FUNCTION__, '3.0', 'count_user_posts()' );
     2425        _deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' );
    24262426        return count_user_posts( $userid );
    24272427}
    24282428
     
    24552455 * @return string Fixed text.
    24562456 */
    24572457function funky_javascript_fix($text) {
    2458         _deprecated_function( __FUNCTION__, '3.0' );
     2458        _deprecated_function( __FUNCTION__, '3.0.0' );
    24592459        // Fixes for browsers' JavaScript bugs.
    24602460        global $is_macIE, $is_winIE;
    24612461
     
    24782478 * @return bool Whether the taxonomy exists.
    24792479 */
    24802480function is_taxonomy( $taxonomy ) {
    2481         _deprecated_function( __FUNCTION__, '3.0', 'taxonomy_exists()' );
     2481        _deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' );
    24822482        return taxonomy_exists( $taxonomy );
    24832483}
    24842484
     
    24952495 * @return mixed Get the term id or Term Object, if exists.
    24962496 */
    24972497function is_term( $term, $taxonomy = '', $parent = 0 ) {
    2498         _deprecated_function( __FUNCTION__, '3.0', 'term_exists()' );
     2498        _deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' );
    24992499        return term_exists( $term, $taxonomy, $parent );
    25002500}
    25012501
     
    25122512 * @return bool
    25132513 */
    25142514function is_plugin_page() {
    2515         _deprecated_function( __FUNCTION__, '3.1'  );
     2515        _deprecated_function( __FUNCTION__, '3.1.0'  );
    25162516
    25172517        global $plugin_page;
    25182518
     
    25352535 * @return bool Always return True
    25362536 */
    25372537function update_category_cache() {
    2538         _deprecated_function( __FUNCTION__, '3.1'  );
     2538        _deprecated_function( __FUNCTION__, '3.1.0'  );
    25392539
    25402540        return true;
    25412541}
     
    25492549 * @return bool
    25502550 */
    25512551function wp_timezone_supported() {
    2552         _deprecated_function( __FUNCTION__, '3.2' );
     2552        _deprecated_function( __FUNCTION__, '3.2.0' );
    25532553
    25542554        return true;
    25552555}
     
    25692569 * @param bool   $extended      Optional. Unused.
    25702570 */
    25712571function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {
    2572         _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
     2572        _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    25732573
    25742574        wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) );
    25752575}
     
    25842584 * @return array of arrays. The array is indexed by user_id, containing $metavalues object arrays.
    25852585 */
    25862586function get_user_metavalues($ids) {
    2587         _deprecated_function( __FUNCTION__, '3.3' );
     2587        _deprecated_function( __FUNCTION__, '3.3.0' );
    25882588
    25892589        $objects = array();
    25902590
     
    26182618 * @return object|array The now sanitized User Object or Array (will be the same type as $user)
    26192619 */
    26202620function sanitize_user_object($user, $context = 'display') {
    2621         _deprecated_function( __FUNCTION__, '3.3' );
     2621        _deprecated_function( __FUNCTION__, '3.3.0' );
    26222622
    26232623        if ( is_object($user) ) {
    26242624                if ( !isset($user->ID) )
     
    26572657 * @return string
    26582658 */
    26592659function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) {
    2660         _deprecated_function( __FUNCTION__, '3.3' );
     2660        _deprecated_function( __FUNCTION__, '3.3.0' );
    26612661
    26622662        $posts = get_boundary_post($in_same_cat, $excluded_categories, $start);
    26632663        // If there is no post stop.
     
    26952695 * @param string $excluded_categories Optional. Excluded categories IDs.
    26962696 */
    26972697function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
    2698         _deprecated_function( __FUNCTION__, '3.3' );
     2698        _deprecated_function( __FUNCTION__, '3.3.0' );
    26992699
    27002700        echo get_boundary_post_rel_link($title, $in_same_cat, $excluded_categories, true);
    27012701}
     
    27092709 * @return string
    27102710 */
    27112711function get_index_rel_link() {
    2712         _deprecated_function( __FUNCTION__, '3.3' );
     2712        _deprecated_function( __FUNCTION__, '3.3.0' );
    27132713
    27142714        $link = "<link rel='index' title='" . esc_attr( get_bloginfo( 'name', 'display' ) ) . "' href='" . esc_url( user_trailingslashit( get_bloginfo( 'url', 'display' ) ) ) . "' />\n";
    27152715        return apply_filters( "index_rel_link", $link );
     
    27222722 * @deprecated 3.3.0
    27232723 */
    27242724function index_rel_link() {
    2725         _deprecated_function( __FUNCTION__, '3.3' );
     2725        _deprecated_function( __FUNCTION__, '3.3.0' );
    27262726
    27272727        echo get_index_rel_link();
    27282728}
     
    27372737 * @return string
    27382738 */
    27392739function get_parent_post_rel_link( $title = '%title' ) {
    2740         _deprecated_function( __FUNCTION__, '3.3' );
     2740        _deprecated_function( __FUNCTION__, '3.3.0' );
    27412741
    27422742        if ( ! empty( $GLOBALS['post'] ) && ! empty( $GLOBALS['post']->post_parent ) )
    27432743                $post = get_post($GLOBALS['post']->post_parent);
     
    27672767 * @param string $title Optional. Link title format. Default '%title'.
    27682768 */
    27692769function parent_post_rel_link( $title = '%title' ) {
    2770         _deprecated_function( __FUNCTION__, '3.3' );
     2770        _deprecated_function( __FUNCTION__, '3.3.0' );
    27712771
    27722772        echo get_parent_post_rel_link($title);
    27732773}
     
    27812781 * @param WP_Admin_Bar $wp_admin_bar WP_Admin_Bar instance.
    27822782 */
    27832783function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) {
    2784         _deprecated_function( __FUNCTION__, '3.3' );
     2784        _deprecated_function( __FUNCTION__, '3.3.0' );
    27852785
    27862786        $user_id = get_current_user_id();
    27872787
     
    28062806 * @return bool True if the current users belong to $blog_id, false if not.
    28072807 */
    28082808function is_blog_user( $blog_id = 0 ) {
    2809         _deprecated_function( __FUNCTION__, '3.3', 'is_user_member_of_blog()' );
     2809        _deprecated_function( __FUNCTION__, '3.3.0', 'is_user_member_of_blog()' );
    28102810
    28112811        return is_user_member_of_blog( get_current_user_id(), $blog_id );
    28122812}
     
    28762876 * @return array Theme list with theme data.
    28772877 */
    28782878function get_themes() {
    2879         _deprecated_function( __FUNCTION__, '3.4', 'wp_get_themes()' );
     2879        _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_themes()' );
    28802880
    28812881        global $wp_themes;
    28822882        if ( isset( $wp_themes ) )
     
    29072907 * @return array|null Null, if theme name does not exist. Theme data, if exists.
    29082908 */
    29092909function get_theme( $theme ) {
    2910         _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme( $stylesheet )' );
     2910        _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme( $stylesheet )' );
    29112911
    29122912        $themes = get_themes();
    29132913        if ( is_array( $themes ) && array_key_exists( $theme, $themes ) )
     
    29252925 * @return string
    29262926 */
    29272927function get_current_theme() {
    2928         _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
     2928        _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );
    29292929
    29302930        if ( $theme = get_option( 'current_theme' ) )
    29312931                return $theme;
     
    29462946 * @return string The pre block without paragraph/line-break conversion.
    29472947 */
    29482948function clean_pre($matches) {
    2949         _deprecated_function( __FUNCTION__, '3.4' );
     2949        _deprecated_function( __FUNCTION__, '3.4.0' );
    29502950
    29512951        if ( is_array($matches) )
    29522952                $text = $matches[1] . $matches[2] . "</pre>";
     
    29732973 * @param callable $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
    29742974 */
    29752975function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) {
    2976         _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-header\', $args )' );
     2976        _deprecated_function( __FUNCTION__, '3.4.0', 'add_theme_support( \'custom-header\', $args )' );
    29772977        $args = array(
    29782978                'wp-head-callback'    => $wp_head_callback,
    29792979                'admin-head-callback' => $admin_head_callback,
     
    29932993 * @return null|bool Whether support was removed.
    29942994 */
    29952995function remove_custom_image_header() {
    2996         _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-header\' )' );
     2996        _deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( \'custom-header\' )' );
    29972997        return remove_theme_support( 'custom-header' );
    29982998}
    29992999
     
    30093009 * @param callable $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional.
    30103010 */
    30113011function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) {
    3012         _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' );
     3012        _deprecated_function( __FUNCTION__, '3.4.0', 'add_theme_support( \'custom-background\', $args )' );
    30133013        $args = array();
    30143014        if ( $wp_head_callback )
    30153015                $args['wp-head-callback'] = $wp_head_callback;
     
    30303030 * @return null|bool Whether support was removed.
    30313031 */
    30323032function remove_custom_background() {
    3033         _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-background\' )' );
     3033        _deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( \'custom-background\' )' );
    30343034        return remove_theme_support( 'custom-background' );
    30353035}
    30363036
     
    30453045 * @return array Theme data.
    30463046 */
    30473047function get_theme_data( $theme_file ) {
    3048         _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
     3048        _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );
    30493049        $theme = new WP_Theme( basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) );
    30503050
    30513051        $theme_data = array(
     
    30823082 * @param array $pages list of page objects
    30833083 */
    30843084function update_page_cache( &$pages ) {
    3085         _deprecated_function( __FUNCTION__, '3.4', 'update_post_cache()' );
     3085        _deprecated_function( __FUNCTION__, '3.4.0', 'update_post_cache()' );
    30863086
    30873087        update_post_cache( $pages );
    30883088}
     
    31003100 * @param int $id Page ID to clean
    31013101 */
    31023102function clean_page_cache( $id ) {
    3103         _deprecated_function( __FUNCTION__, '3.4', 'clean_post_cache()' );
     3103        _deprecated_function( __FUNCTION__, '3.4.0', 'clean_post_cache()' );
    31043104
    31053105        clean_post_cache( $id );
    31063106}
     
    31323132 * @param int $post_id An optional post ID.
    31333133 */
    31343134function sticky_class( $post_id = null ) {
    3135         _deprecated_function( __FUNCTION__, '3.5', 'post_class()' );
     3135        _deprecated_function( __FUNCTION__, '3.5.0', 'post_class()' );
    31363136        if ( is_sticky( $post_id ) )
    31373137                echo ' sticky';
    31383138}
     
    31503150 * @param WP_Post &$post Post object, passed by reference (unused).
    31513151 */
    31523152function _get_post_ancestors( &$post ) {
    3153         _deprecated_function( __FUNCTION__, '3.5' );
     3153        _deprecated_function( __FUNCTION__, '3.5.0' );
    31543154}
    31553155
    31563156/**
     
    31643164 * @return resource The resulting image resource on success, Error string on failure.
    31653165 */
    31663166function wp_load_image( $file ) {
    3167         _deprecated_function( __FUNCTION__, '3.5', 'wp_get_image_editor()' );
     3167        _deprecated_function( __FUNCTION__, '3.5.0', 'wp_get_image_editor()' );
    31683168
    31693169        if ( is_numeric( $file ) )
    31703170                $file = get_attached_file( $file );
     
    32143214 * @return mixed WP_Error on failure. String with new destination path.
    32153215 */
    32163216function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
    3217         _deprecated_function( __FUNCTION__, '3.5', 'wp_get_image_editor()' );
     3217        _deprecated_function( __FUNCTION__, '3.5.0', 'wp_get_image_editor()' );
    32183218
    32193219        $editor = wp_get_image_editor( $file );
    32203220        if ( is_wp_error( $editor ) )
     
    32493249 * @return WP_Post|null Post object or array holding post contents and information
    32503250 */
    32513251function wp_get_single_post( $postid = 0, $mode = OBJECT ) {
    3252         _deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
     3252        _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' );
    32533253        return get_post( $postid, $mode );
    32543254}
    32553255
     
    32653265 * @return bool False if does not authenticate, true if username and password authenticates.
    32663266 */
    32673267function user_pass_ok($user_login, $user_pass) {
    3268         _deprecated_function( __FUNCTION__, '3.5', 'wp_authenticate()' );
     3268        _deprecated_function( __FUNCTION__, '3.5.0', 'wp_authenticate()' );
    32693269        $user = wp_authenticate( $user_login, $user_pass );
    32703270        if ( is_wp_error( $user ) )
    32713271                return false;
     
    32923292 * @return bool
    32933293 */
    32943294function gd_edit_image_support($mime_type) {
    3295         _deprecated_function( __FUNCTION__, '3.5', 'wp_image_editor_supports()' );
     3295        _deprecated_function( __FUNCTION__, '3.5.0', 'wp_image_editor_supports()' );
    32963296
    32973297        if ( function_exists('imagetypes') ) {
    32983298                switch( $mime_type ) {
     
    33273327 * @return string A shorthand byte value.
    33283328 */
    33293329function wp_convert_bytes_to_hr( $bytes ) {
    3330         _deprecated_function( __FUNCTION__, '3.6', 'size_format()' );
     3330        _deprecated_function( __FUNCTION__, '3.6.0', 'size_format()' );
    33313331
    33323332        $units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB', 4 => 'TB' );
    33333333        $log   = log( $bytes, KB_IN_BYTES );
     
    33553355 * @return string Trimmed search terms.
    33563356 */
    33573357function _search_terms_tidy( $t ) {
    3358         _deprecated_function( __FUNCTION__, '3.7' );
     3358        _deprecated_function( __FUNCTION__, '3.7.0' );
    33593359        return trim( $t, "\"'\n\r " );
    33603360}
    33613361
     
    33723372 */
    33733373function rich_edit_exists() {
    33743374        global $wp_rich_edit_exists;
    3375         _deprecated_function( __FUNCTION__, '3.9' );
     3375        _deprecated_function( __FUNCTION__, '3.9.0' );
    33763376
    33773377        if ( ! isset( $wp_rich_edit_exists ) )
    33783378                $wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );
     
    34063406 * @return string The very same text.
    34073407 */
    34083408function format_to_post( $content ) {
    3409         _deprecated_function( __FUNCTION__, '3.9' );
     3409        _deprecated_function( __FUNCTION__, '3.9.0' );
    34103410        return $content;
    34113411}
    34123412
     
    34213421 * @return string text, safe for inclusion in LIKE query.
    34223422 */
    34233423function like_escape($text) {
    3424         _deprecated_function( __FUNCTION__, '4.0', 'wpdb::esc_like()' );
     3424        _deprecated_function( __FUNCTION__, '4.0.0', 'wpdb::esc_like()' );
    34253425        return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text );
    34263426}
    34273427
     
    34383438 * @return bool Whether SSL access is available.
    34393439 */
    34403440function url_is_accessable_via_ssl( $url ) {
    3441         _deprecated_function( __FUNCTION__, '4.0' );
     3441        _deprecated_function( __FUNCTION__, '4.0.0' );
    34423442
    34433443        $response = wp_remote_get( set_url_scheme( $url, 'https' ) );
    34443444
     
    34623462 * @deprecated 4.3.0
    34633463 */
    34643464function preview_theme() {
    3465         _deprecated_function( __FUNCTION__, '4.3' );
     3465        _deprecated_function( __FUNCTION__, '4.3.0' );
    34663466}
    34673467
    34683468/**
     
    34753475 * @return string
    34763476 */
    34773477function _preview_theme_template_filter() {
    3478         _deprecated_function( __FUNCTION__, '4.3' );
     3478        _deprecated_function( __FUNCTION__, '4.3.0' );
    34793479        return '';
    34803480}
    34813481
     
    34893489 * @return string
    34903490 */
    34913491function _preview_theme_stylesheet_filter() {
    3492         _deprecated_function( __FUNCTION__, '4.3' );
     3492        _deprecated_function( __FUNCTION__, '4.3.0' );
    34933493        return '';
    34943494}
    34953495
     
    35043504 * @return string
    35053505 */
    35063506function preview_theme_ob_filter( $content ) {
    3507         _deprecated_function( __FUNCTION__, '4.3' );
     3507        _deprecated_function( __FUNCTION__, '4.3.0' );
    35083508        return $content;
    35093509}
    35103510
     
    35213521 * @return string
    35223522 */
    35233523function preview_theme_ob_filter_callback( $matches ) {
    3524         _deprecated_function( __FUNCTION__, '4.3' );
     3524        _deprecated_function( __FUNCTION__, '4.3.0' );
    35253525        return '';
    35263526}
    35273527
     
    35383538 * @return string The formatted text after filter is applied.
    35393539 */
    35403540function wp_richedit_pre($text) {
    3541         _deprecated_function( __FUNCTION__, '4.3', 'format_for_editor()' );
     3541        _deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' );
    35423542
    35433543        if ( empty( $text ) ) {
    35443544                /**
     
    35813581 * @return string Formatted text after filter applied.
    35823582 */
    35833583function wp_htmledit_pre($output) {
    3584         _deprecated_function( __FUNCTION__, '4.3', 'format_for_editor()' );
     3584        _deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' );
    35853585
    35863586        if ( !empty($output) )
    35873587                $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // convert only < > &
     
    36083608 * @return string|false
    36093609 */
    36103610function post_permalink( $post_id = 0 ) {
    3611         _deprecated_function( __FUNCTION__, '4.4', 'get_permalink()' );
     3611        _deprecated_function( __FUNCTION__, '4.4.0', 'get_permalink()' );
    36123612
    36133613        return get_permalink( $post_id );
    36143614}
     
    36303630 * @return bool|string False on failure and string of headers if HEAD request.
    36313631 */
    36323632function wp_get_http( $url, $file_path = false, $red = 1 ) {
    3633         _deprecated_function( __FUNCTION__, '4.4', 'WP_Http' );
     3633        _deprecated_function( __FUNCTION__, '4.4.0', 'WP_Http' );
    36343634
    36353635        @set_time_limit( 60 );
    36363636
     
    36843684 * @return bool True if forced, false if not forced.
    36853685 */
    36863686function force_ssl_login( $force = null ) {
    3687         _deprecated_function( __FUNCTION__, '4.4', 'force_ssl_admin()' );
     3687        _deprecated_function( __FUNCTION__, '4.4.0', 'force_ssl_admin()' );
    36883688        return force_ssl_admin( $force );
    36893689}
    36903690
     
    36973697 * @return string Full path to comments popup template file.
    36983698 */
    36993699function get_comments_popup_template() {
    3700         _deprecated_function( __FUNCTION__, '4.5' );
     3700        _deprecated_function( __FUNCTION__, '4.5.0' );
    37013701
    37023702        return '';
    37033703}
     
    37113711 * @return bool
    37123712 */
    37133713function is_comments_popup() {
    3714         _deprecated_function( __FUNCTION__, '4.5' );
     3714        _deprecated_function( __FUNCTION__, '4.5.0' );
    37153715
    37163716        return false;
    37173717}
     
    37233723 * @deprecated 4.5.0
    37243724 */
    37253725function comments_popup_script() {
    3726         _deprecated_function( __FUNCTION__, '4.5' );
     3726        _deprecated_function( __FUNCTION__, '4.5.0' );
    37273727}
    37283728
    37293729/**
     
    37363736 * @return string Content that has filtered links.
    37373737 */
    37383738function popuplinks( $text ) {
    3739         _deprecated_function( __FUNCTION__, '4.5' );
     3739        _deprecated_function( __FUNCTION__, '4.5.0' );
    37403740        $text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);
    37413741        return $text;
    37423742}
     
    37543754 * @return string The base URL.
    37553755 */
    37563756function _wp_upload_dir_baseurl() {
    3757         _deprecated_function( __FUNCTION__, '4.5', 'wp_get_upload_dir()' );
     3757        _deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_upload_dir()' );
    37583758        $upload_dir = wp_get_upload_dir();
    37593759        return $upload_dir['baseurl'];
    37603760}
  • wp-includes/embed-template.php

     
    88 * @deprecated 4.5.0 Moved to wp-includes/theme-compat/embed.php
    99 */
    1010
    11 _deprecated_file( basename( __FILE__ ), '4.5', 'wp-includes/theme-compat/embed.php' );
     11_deprecated_file( basename( __FILE__ ), '4.5.0', 'wp-includes/theme-compat/embed.php' );
    1212
    1313include( ABSPATH . WPINC . '/theme-compat/embed.php' );
  • wp-includes/formatting.php

     
    24732473 */
    24742474function is_email( $email, $deprecated = false ) {
    24752475        if ( ! empty( $deprecated ) )
    2476                 _deprecated_argument( __FUNCTION__, '3.0' );
     2476                _deprecated_argument( __FUNCTION__, '3.0.0' );
    24772477
    24782478        // Test for the minimum length the email can be
    24792479        if ( strlen( $email ) < 3 ) {
  • wp-includes/functions.php

     
    637637 */
    638638function wp_get_http_headers( $url, $deprecated = false ) {
    639639        if ( !empty( $deprecated ) )
    640                 _deprecated_argument( __FUNCTION__, '2.7' );
     640                _deprecated_argument( __FUNCTION__, '2.7.0' );
    641641
    642642        $response = wp_safe_remote_head( $url );
    643643
     
    21062106 */
    21072107function wp_upload_bits( $name, $deprecated, $bits, $time = null ) {
    21082108        if ( !empty( $deprecated ) )
    2109                 _deprecated_argument( __FUNCTION__, '2.0' );
     2109                _deprecated_argument( __FUNCTION__, '2.0.0' );
    21102110
    21112111        if ( empty( $name ) )
    21122112                return array( 'error' => __( 'Empty filename' ) );
     
    38123812 * For example:
    38133813 *
    38143814 *     if ( ! empty( $deprecated ) ) {
    3815  *         _deprecated_argument( __FUNCTION__, '3.0' );
     3815 *         _deprecated_argument( __FUNCTION__, '3.0.0' );
    38163816 *     }
    38173817 *
    38183818 *
  • wp-includes/functions.wp-scripts.php

     
    4343                '<code>wp_enqueue_scripts</code>',
    4444                '<code>admin_enqueue_scripts</code>',
    4545                '<code>login_enqueue_scripts</code>'
    46         ), '3.3' );
     46        ), '3.3.0' );
    4747}
    4848
    4949/**
     
    112112                        __( 'Do not pass %1$s tags to %2$s.' ),
    113113                        '<code>&lt;script&gt;</code>',
    114114                        '<code>wp_add_inline_script()</code>'
    115                 ), '4.5' );
     115                ), '4.5.0' );
    116116                $data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) );
    117117        }
    118118
     
    226226                if ( in_array( $handle, $no ) ) {
    227227                        $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
    228228                                "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' );
    229                         _doing_it_wrong( __FUNCTION__, $message, '3.6' );
     229                        _doing_it_wrong( __FUNCTION__, $message, '3.6.0' );
    230230                        return;
    231231                }
    232232        }
  • wp-includes/functions.wp-styles.php

     
    8989                        __( 'Do not pass %1$s tags to %2$s.' ),
    9090                        '<code>&lt;style&gt;</code>',
    9191                        '<code>wp_add_inline_style()</code>'
    92                 ), '3.7' );
     92                ), '3.7.0' );
    9393                $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
    9494        }
    9595
  • wp-includes/general-template.php

     
    646646        switch( $show ) {
    647647                case 'home' : // DEPRECATED
    648648                case 'siteurl' : // DEPRECATED
    649                         _deprecated_argument( __FUNCTION__, '2.2', sprintf(
     649                        _deprecated_argument( __FUNCTION__, '2.2.0', sprintf(
    650650                                /* translators: 1: 'siteurl'/'home' argument, 2: bloginfo() function name, 3: 'url' argument */
    651651                                __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s option instead.' ),
    652652                                '<code>' . $show . '</code>',
     
    719719                        }
    720720                        break;
    721721                case 'text_direction':
    722                         _deprecated_argument( __FUNCTION__, '2.2', sprintf(
     722                        _deprecated_argument( __FUNCTION__, '2.2.0', sprintf(
    723723                                /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name */
    724724                                __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ),
    725725                                '<code>' . $show . '</code>',
  • wp-includes/l10n.php

     
    684684        if ( false !== $plugin_rel_path ) {
    685685                $path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/' );
    686686        } elseif ( false !== $deprecated ) {
    687                 _deprecated_argument( __FUNCTION__, '2.7' );
     687                _deprecated_argument( __FUNCTION__, '2.7.0' );
    688688                $path = ABSPATH . trim( $deprecated, '/' );
    689689        } else {
    690690                $path = WP_PLUGIN_DIR;
  • wp-includes/link-template.php

     
    13521352 */
    13531353function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) {
    13541354        if ( ! empty( $deprecated ) )
    1355                 _deprecated_argument( __FUNCTION__, '3.0' );
     1355                _deprecated_argument( __FUNCTION__, '3.0.0' );
    13561356
    13571357        if ( !$post = get_post( $id ) )
    13581358                return;
     
    15991599                if ( ! empty( $excluded_terms ) && ! is_array( $excluded_terms ) ) {
    16001600                        // back-compat, $excluded_terms used to be $excluded_terms with IDs separated by " and "
    16011601                        if ( false !== strpos( $excluded_terms, ' and ' ) ) {
    1602                                 _deprecated_argument( __FUNCTION__, '3.3', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) );
     1602                                _deprecated_argument( __FUNCTION__, '3.3.0', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) );
    16031603                                $excluded_terms = explode( ' and ', $excluded_terms );
    16041604                        } else {
    16051605                                $excluded_terms = explode( ',', $excluded_terms );
  • wp-includes/load.php

     
    589589
    590590        // Check for hacks file if the option is enabled
    591591        if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) {
    592                 _deprecated_file( 'my-hacks.php', '1.5' );
     592                _deprecated_file( 'my-hacks.php', '1.5.0' );
    593593                array_unshift( $plugins, ABSPATH . 'my-hacks.php' );
    594594        }
    595595
  • wp-includes/ms-blogs.php

     
    737737        $id = (int) $id;
    738738
    739739        if ( null !== $deprecated  )
    740                 _deprecated_argument( __FUNCTION__, '3.1' );
     740                _deprecated_argument( __FUNCTION__, '3.1.0' );
    741741
    742742        if ( get_current_blog_id() == $id )
    743743                return update_option( $option, $value );
     
    971971        global $wpdb;
    972972
    973973        if ( null !== $deprecated  )
    974                 _deprecated_argument( __FUNCTION__, '3.1' );
     974                _deprecated_argument( __FUNCTION__, '3.1.0' );
    975975
    976976        if ( ! in_array( $pref, array( 'site_id', 'domain', 'path', 'registered', 'last_updated', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id') ) )
    977977                return $value;
  • wp-includes/ms-default-constants.php

     
    140140                if ( $subdomain_error_warn ) {
    141141                        trigger_error( __( '<strong>Conflicting values for the constants VHOST and SUBDOMAIN_INSTALL.</strong> The value of SUBDOMAIN_INSTALL will be assumed to be your subdomain configuration setting.' ) . ' ' . $vhost_deprecated, E_USER_WARNING );
    142142                } else {
    143                         _deprecated_argument( 'define()', '3.0', $vhost_deprecated );
     143                        _deprecated_argument( 'define()', '3.0.0', $vhost_deprecated );
    144144                }
    145145                return;
    146146        }
  • wp-includes/ms-deprecated.php

     
    2424 * @return int Current site ID.
    2525 */
    2626function get_dashboard_blog() {
    27     _deprecated_function( __FUNCTION__, '3.1' );
     27    _deprecated_function( __FUNCTION__, '3.1.0' );
    2828    if ( $blog = get_site_option( 'dashboard_blog' ) )
    2929        return get_blog_details( $blog );
    3030
     
    4141 * @param int $len Optional. The length of password to generate. Default 8.
    4242 */
    4343function generate_random_password( $len = 8 ) {
    44         _deprecated_function( __FUNCTION__, '3.0', 'wp_generate_password()' );
     44        _deprecated_function( __FUNCTION__, '3.0.0', 'wp_generate_password()' );
    4545        return wp_generate_password( $len );
    4646}
    4747
     
    6161 * @param string $user_login Optional. Username for the user to check. Default empty.
    6262 */
    6363function is_site_admin( $user_login = '' ) {
    64         _deprecated_function( __FUNCTION__, '3.0', 'is_super_admin()' );
     64        _deprecated_function( __FUNCTION__, '3.0.0', 'is_super_admin()' );
    6565
    6666        if ( empty( $user_login ) ) {
    6767                $user_id = get_current_user_id();
     
    8686 * @see wp_die()
    8787 */
    8888function graceful_fail( $message ) {
    89         _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
     89        _deprecated_function( __FUNCTION__, '3.0.0', 'wp_die()' );
    9090        $message = apply_filters( 'graceful_fail', $message );
    9191        $message_template = apply_filters( 'graceful_fail_template',
    9292'<!DOCTYPE html>
     
    126126 * @param string $username Username.
    127127 */
    128128function get_user_details( $username ) {
    129         _deprecated_function( __FUNCTION__, '3.0', 'get_user_by()' );
     129        _deprecated_function( __FUNCTION__, '3.0.0', 'get_user_by()' );
    130130        return get_user_by('login', $username);
    131131}
    132132
     
    140140 * @param int $post_id Post ID.
    141141 */
    142142function clear_global_post_cache( $post_id ) {
    143         _deprecated_function( __FUNCTION__, '3.0', 'clean_post_cache()' );
     143        _deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' );
    144144}
    145145
    146146/**
     
    151151 * @see is_main_site()
    152152 */
    153153function is_main_blog() {
    154         _deprecated_function( __FUNCTION__, '3.0', 'is_main_site()' );
     154        _deprecated_function( __FUNCTION__, '3.0.0', 'is_main_site()' );
    155155        return is_main_site();
    156156}
    157157
     
    167167 * @return string|bool Either false or the valid email address.
    168168 */
    169169function validate_email( $email, $check_domain = true) {
    170         _deprecated_function( __FUNCTION__, '3.0', 'is_email()' );
     170        _deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' );
    171171        return is_email( $email, $check_domain );
    172172}
    173173
     
    183183 * @param string $deprecated Unused.
    184184 */
    185185function get_blog_list( $start = 0, $num = 10, $deprecated = '' ) {
    186         _deprecated_function( __FUNCTION__, '3.0', 'wp_get_sites()' );
     186        _deprecated_function( __FUNCTION__, '3.0.0', 'wp_get_sites()' );
    187187
    188188        global $wpdb;
    189189        $blogs = $wpdb->get_results( $wpdb->prepare("SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' ORDER BY registered DESC", $wpdb->siteid), ARRAY_A );
     
    216216 * @return array List of "most active" sites.
    217217 */
    218218function get_most_active_blogs( $num = 10, $display = true ) {
    219         _deprecated_function( __FUNCTION__, '3.0' );
     219        _deprecated_function( __FUNCTION__, '3.0.0' );
    220220
    221221        $blogs = get_blog_list( 0, 'all', false ); // $blog_id -> $details
    222222        if ( is_array( $blogs ) ) {
     
    267267 * @param string $url Optional. Redirect URL. Default empty.
    268268 */
    269269function wpmu_admin_do_redirect( $url = '' ) {
    270         _deprecated_function( __FUNCTION__, '3.3' );
     270        _deprecated_function( __FUNCTION__, '3.3.0' );
    271271
    272272        $ref = '';
    273273        if ( isset( $_GET['ref'] ) )
     
    307307 * @return string
    308308 */
    309309function wpmu_admin_redirect_add_updated_param( $url = '' ) {
    310         _deprecated_function( __FUNCTION__, '3.3' );
     310        _deprecated_function( __FUNCTION__, '3.3.0' );
    311311
    312312        if ( strpos( $url, 'updated=true' ) === false ) {
    313313                if ( strpos( $url, '?' ) === false )
     
    332332 * @return int
    333333 */
    334334function get_user_id_from_string( $string ) {
    335         _deprecated_function( __FUNCTION__, '3.6', 'get_user_by()' );
     335        _deprecated_function( __FUNCTION__, '3.6.0', 'get_user_by()' );
    336336
    337337        if ( is_email( $string ) )
    338338                $user = get_user_by( 'email', $string );
     
    357357 * @return string
    358358 */
    359359function get_blogaddress_by_domain( $domain, $path ) {
    360         _deprecated_function( __FUNCTION__, '3.7' );
     360        _deprecated_function( __FUNCTION__, '3.7.0' );
    361361
    362362        if ( is_subdomain_install() ) {
    363363                $url = "http://" . $domain.$path;
     
    388388 * @return string|int The ID of the newly created blog
    389389 */
    390390function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) {
    391         _deprecated_function( __FUNCTION__, '4.4' );
     391        _deprecated_function( __FUNCTION__, '4.4.0' );
    392392
    393393        if ( empty($path) )
    394394                $path = '/';
     
    424424 * @return array|false The network admins
    425425 */
    426426function get_admin_users_for_domain( $sitedomain = '', $path = '' ) {
    427         _deprecated_function( __FUNCTION__, '4.4' );
     427        _deprecated_function( __FUNCTION__, '4.4.0' );
    428428
    429429        global $wpdb;
    430430
  • wp-includes/ms-functions.php

     
    115115 */
    116116function get_blog_count( $network_id = 0 ) {
    117117        if ( func_num_args() )
    118                 _deprecated_argument( __FUNCTION__, '3.1' );
     118                _deprecated_argument( __FUNCTION__, '3.1.0' );
    119119
    120120        return get_site_option( 'blog_count' );
    121121}
  • wp-includes/ms-load.php

     
    520520 * @return object
    521521 */
    522522function get_current_site_name( $current_site ) {
    523         _deprecated_function( __FUNCTION__, '3.9', 'get_current_site()' );
     523        _deprecated_function( __FUNCTION__, '3.9.0', 'get_current_site()' );
    524524        return $current_site;
    525525}
    526526
     
    540540 */
    541541function wpmu_current_site() {
    542542        global $current_site;
    543         _deprecated_function( __FUNCTION__, '3.9' );
     543        _deprecated_function( __FUNCTION__, '3.9.0' );
    544544        return $current_site;
    545545}
  • wp-includes/option.php

     
    399399        global $wpdb;
    400400
    401401        if ( !empty( $deprecated ) )
    402                 _deprecated_argument( __FUNCTION__, '2.3' );
     402                _deprecated_argument( __FUNCTION__, '2.3.0' );
    403403
    404404        $option = trim($option);
    405405        if ( empty($option) )
  • wp-includes/pluggable-deprecated.php

     
    3030 * @return WP_User returns wp_set_current_user()
    3131 */
    3232function set_current_user($id, $name = '') {
    33         _deprecated_function( __FUNCTION__, '3.0', 'wp_set_current_user()' );
     33        _deprecated_function( __FUNCTION__, '3.0.0', 'wp_set_current_user()' );
    3434        return wp_set_current_user($id, $name);
    3535}
    3636endif;
     
    4646 * @return bool|WP_User False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.
    4747 */
    4848function get_currentuserinfo() {
    49         _deprecated_function( __FUNCTION__, '4.5', 'wp_get_current_user()' );
     49        _deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_current_user()' );
    5050
    5151        return _wp_get_current_user();
    5252}
     
    6464 * @return bool|object False on failure, User DB row object
    6565 */
    6666function get_userdatabylogin($user_login) {
    67         _deprecated_function( __FUNCTION__, '3.3', "get_user_by('login')" );
     67        _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('login')" );
    6868        return get_user_by('login', $user_login);
    6969}
    7070endif;
     
    8181 * @return bool|object False on failure, User DB row object
    8282 */
    8383function get_user_by_email($email) {
    84         _deprecated_function( __FUNCTION__, '3.3', "get_user_by('email')" );
     84        _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('email')" );
    8585        return get_user_by('email', $email);
    8686}
    8787endif;
     
    102102 * @param bool $remember Optional. Remember that the user is logged in
    103103 */
    104104function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) {
    105         _deprecated_function( __FUNCTION__, '2.5', 'wp_set_auth_cookie()' );
     105        _deprecated_function( __FUNCTION__, '2.5.0', 'wp_set_auth_cookie()' );
    106106        $user = get_user_by('login', $username);
    107107        wp_set_auth_cookie($user->ID, $remember);
    108108}
    109109else :
    110         _deprecated_function( 'wp_setcookie', '2.5', 'wp_set_auth_cookie()' );
     110        _deprecated_function( 'wp_setcookie', '2.5.0', 'wp_set_auth_cookie()' );
    111111endif;
    112112
    113113if ( !function_exists('wp_clearcookie') ) :
     
    119119 * @see wp_clear_auth_cookie()
    120120 */
    121121function wp_clearcookie() {
    122         _deprecated_function( __FUNCTION__, '2.5', 'wp_clear_auth_cookie()' );
     122        _deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' );
    123123        wp_clear_auth_cookie();
    124124}
    125125else :
    126         _deprecated_function( 'wp_clearcookie', '2.5', 'wp_clear_auth_cookie()' );
     126        _deprecated_function( 'wp_clearcookie', '2.5.0', 'wp_clear_auth_cookie()' );
    127127endif;
    128128
    129129if ( !function_exists('wp_get_cookie_login') ):
     
    139139 * @return bool Always returns false
    140140 */
    141141function wp_get_cookie_login() {
    142         _deprecated_function( __FUNCTION__, '2.5' );
     142        _deprecated_function( __FUNCTION__, '2.5.0' );
    143143        return false;
    144144}
    145145else :
    146         _deprecated_function( 'wp_get_cookie_login', '2.5' );
     146        _deprecated_function( 'wp_get_cookie_login', '2.5.0' );
    147147endif;
    148148
    149149if ( !function_exists('wp_login') ) :
     
    169169 * @return bool False on login failure, true on successful check
    170170 */
    171171function wp_login($username, $password, $deprecated = '') {
    172         _deprecated_function( __FUNCTION__, '2.5', 'wp_signon()' );
     172        _deprecated_function( __FUNCTION__, '2.5.0', 'wp_signon()' );
    173173        global $error;
    174174
    175175        $user = wp_authenticate($username, $password);
     
    181181        return false;
    182182}
    183183else :
    184         _deprecated_function( 'wp_login', '2.5', 'wp_signon()' );
     184        _deprecated_function( 'wp_login', '2.5.0', 'wp_signon()' );
    185185endif;
    186186
    187187/**
     
    198198if ( ! class_exists( 'wp_atom_server', false ) ) {
    199199        class wp_atom_server {
    200200                public function __call( $name, $arguments ) {
    201                         _deprecated_function( __CLASS__ . '::' . $name, '3.5', 'the Atom Publishing Protocol plugin' );
     201                        _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' );
    202202                }
    203203
    204204                public static function __callStatic( $name, $arguments ) {
    205                         _deprecated_function( __CLASS__ . '::' . $name, '3.5', 'the Atom Publishing Protocol plugin' );
     205                        _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' );
    206206                }
    207207        }
    208208}
  • wp-includes/pluggable.php

     
    10511051 */
    10521052function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) {
    10531053        if ( -1 == $action )
    1054                 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2' );
     1054                _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' );
    10551055
    10561056        $adminurl = strtolower(admin_url());
    10571057        $referer = strtolower(wp_get_referer());
     
    13391339 */
    13401340function wp_notify_postauthor( $comment_id, $deprecated = null ) {
    13411341        if ( null !== $deprecated ) {
    1342                 _deprecated_argument( __FUNCTION__, '3.8' );
     1342                _deprecated_argument( __FUNCTION__, '3.8.0' );
    13431343        }
    13441344
    13451345        $comment = get_comment( $comment_id );
  • wp-includes/plugin.php

     
    830830 */
    831831function register_uninstall_hook( $file, $callback ) {
    832832        if ( is_array( $callback ) && is_object( $callback[0] ) ) {
    833                 _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1' );
     833                _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1.0' );
    834834                return;
    835835        }
    836836
  • wp-includes/post-template.php

     
    364364 */
    365365function get_the_excerpt( $post = null ) {
    366366        if ( is_bool( $post ) ) {
    367                 _deprecated_argument( __FUNCTION__, '2.3' );
     367                _deprecated_argument( __FUNCTION__, '2.3.0' );
    368368        }
    369369
    370370        $post = get_post( $post );
     
    14081408 */
    14091409function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
    14101410        if ( !empty( $deprecated ) )
    1411                 _deprecated_argument( __FUNCTION__, '2.5' );
     1411                _deprecated_argument( __FUNCTION__, '2.5.0' );
    14121412
    14131413        if ( $fullsize )
    14141414                echo wp_get_attachment_link($id, 'full', $permalink);
     
    17151715        // $args array with (parent, format, right, left, type) deprecated since 3.6
    17161716        if ( is_array( $type ) ) {
    17171717                $type = ! empty( $type['type'] ) ? $type['type']  : $type;
    1718                 _deprecated_argument( __FUNCTION__, '3.6' );
     1718                _deprecated_argument( __FUNCTION__, '3.6.0' );
    17191719        }
    17201720
    17211721        if ( ! $revisions = wp_get_post_revisions( $post->ID ) )
  • wp-includes/post.php

     
    10531053        $args->name = $post_type;
    10541054
    10551055        if ( empty( $post_type ) || strlen( $post_type ) > 20 ) {
    1056                 _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2' );
     1056                _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2.0' );
    10571057                return new WP_Error( 'post_type_length_invalid', __( 'Post type names must be between 1 and 20 characters in length.' ) );
    10581058        }
    10591059
     
    29252925function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) {
    29262926
    29272927        if ( is_numeric( $args ) ) {
    2928                 _deprecated_argument( __FUNCTION__, '3.1', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) );
     2928                _deprecated_argument( __FUNCTION__, '3.1.0', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) );
    29292929                $args = array( 'numberposts' => absint( $args ) );
    29302930        }
    29312931
  • wp-includes/query.php

     
    146146        global $wp_query;
    147147
    148148        if ( ! isset( $wp_query ) ) {
    149                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     149                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    150150                return false;
    151151        }
    152152
     
    167167        global $wp_query;
    168168
    169169        if ( ! isset( $wp_query ) ) {
    170                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     170                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    171171                return false;
    172172        }
    173173
     
    188188        global $wp_query;
    189189
    190190        if ( ! isset( $wp_query ) ) {
    191                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     191                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    192192                return false;
    193193        }
    194194
     
    212212        global $wp_query;
    213213
    214214        if ( ! isset( $wp_query ) ) {
    215                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     215                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    216216                return false;
    217217        }
    218218
     
    236236        global $wp_query;
    237237
    238238        if ( ! isset( $wp_query ) ) {
    239                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     239                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    240240                return false;
    241241        }
    242242
     
    260260        global $wp_query;
    261261
    262262        if ( ! isset( $wp_query ) ) {
    263                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     263                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    264264                return false;
    265265        }
    266266
     
    289289        global $wp_query;
    290290
    291291        if ( ! isset( $wp_query ) ) {
    292                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     292                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    293293                return false;
    294294        }
    295295
     
    309309        global $wp_query;
    310310
    311311        if ( ! isset( $wp_query ) ) {
    312                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     312                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    313313                return false;
    314314        }
    315315
     
    329329        global $wp_query;
    330330
    331331        if ( ! isset( $wp_query ) ) {
    332                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     332                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    333333                return false;
    334334        }
    335335
     
    350350        global $wp_query;
    351351
    352352        if ( ! isset( $wp_query ) ) {
    353                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     353                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    354354                return false;
    355355        }
    356356
     
    370370        global $wp_query;
    371371
    372372        if ( ! isset( $wp_query ) ) {
    373                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     373                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    374374                return false;
    375375        }
    376376
     
    399399        global $wp_query;
    400400
    401401        if ( ! isset( $wp_query ) ) {
    402                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     402                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    403403                return false;
    404404        }
    405405
     
    428428        global $wp_query;
    429429
    430430        if ( ! isset( $wp_query ) ) {
    431                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     431                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    432432                return false;
    433433        }
    434434
     
    448448        global $wp_query;
    449449
    450450        if ( ! isset( $wp_query ) ) {
    451                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     451                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    452452                return false;
    453453        }
    454454
     
    475475        global $wp_query;
    476476
    477477        if ( ! isset( $wp_query ) ) {
    478                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     478                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    479479                return false;
    480480        }
    481481
     
    495495        global $wp_query;
    496496
    497497        if ( ! isset( $wp_query ) ) {
    498                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     498                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    499499                return false;
    500500        }
    501501
     
    515515        global $wp_query;
    516516
    517517        if ( ! isset( $wp_query ) ) {
    518                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     518                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    519519                return false;
    520520        }
    521521
     
    535535        global $wp_query;
    536536
    537537        if ( ! isset( $wp_query ) ) {
    538                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     538                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    539539                return false;
    540540        }
    541541
     
    555555        global $wp_query;
    556556
    557557        if ( ! isset( $wp_query ) ) {
    558                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     558                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    559559                return false;
    560560        }
    561561
     
    584584        global $wp_query;
    585585
    586586        if ( ! isset( $wp_query ) ) {
    587                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     587                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    588588                return false;
    589589        }
    590590
     
    611611        global $wp_query;
    612612
    613613        if ( ! isset( $wp_query ) ) {
    614                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     614                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    615615                return false;
    616616        }
    617617
     
    631631        global $wp_query;
    632632
    633633        if ( ! isset( $wp_query ) ) {
    634                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     634                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    635635                return false;
    636636        }
    637637
     
    651651        global $wp_query;
    652652
    653653        if ( ! isset( $wp_query ) ) {
    654                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     654                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    655655                return false;
    656656        }
    657657
     
    671671        global $wp_query;
    672672
    673673        if ( ! isset( $wp_query ) ) {
    674                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     674                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    675675                return false;
    676676        }
    677677
     
    691691        global $wp_query;
    692692
    693693        if ( ! isset( $wp_query ) ) {
    694                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     694                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    695695                return false;
    696696        }
    697697
     
    711711        global $wp_query;
    712712
    713713        if ( ! isset( $wp_query ) ) {
    714                 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
     714                _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
    715715                return false;
    716716        }
    717717
     
    737737                        '<code>is_main_query()</code>',
    738738                        __( 'https://codex.wordpress.org/Function_Reference/is_main_query' )
    739739                );
    740                 _doing_it_wrong( __FUNCTION__, $message, '3.7' );
     740                _doing_it_wrong( __FUNCTION__, $message, '3.7.0' );
    741741        }
    742742
    743743        global $wp_query;
     
    25282528                $page = 1;
    25292529
    25302530                if ( isset( $q['caller_get_posts'] ) ) {
    2531                         _deprecated_argument( 'WP_Query', '3.1', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) );
     2531                        _deprecated_argument( 'WP_Query', '3.1.0', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) );
    25322532                        if ( !isset( $q['ignore_sticky_posts'] ) )
    25332533                                $q['ignore_sticky_posts'] = $q['caller_get_posts'];
    25342534                }
     
    43924392         * @return bool
    43934393         */
    43944394        public function is_comments_popup() {
    4395                 _deprecated_function( __FUNCTION__, '4.5' );
     4395                _deprecated_function( __FUNCTION__, '4.5.0' );
    43964396
    43974397                return false;
    43984398        }
  • wp-includes/registration-functions.php

     
    44 *
    55 * @package WordPress
    66 */
    7 _deprecated_file( basename(__FILE__), '2.1', null, __( 'This file no longer needs to be included.' ) );
     7_deprecated_file( basename(__FILE__), '2.1.0', null, __( 'This file no longer needs to be included.' ) );
  • wp-includes/registration.php

     
    44 *
    55 * @package WordPress
    66 */
    7 _deprecated_file( basename(__FILE__), '3.1', null, __( 'This file no longer needs to be included.' ) );
     7_deprecated_file( basename(__FILE__), '3.1.0', null, __( 'This file no longer needs to be included.' ) );
  • 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__), '2.1.0', WPINC . '/rss.php' );
    99require_once( ABSPATH . WPINC . '/rss.php' );
  • wp-includes/rss.php

     
    1616/**
    1717 * Deprecated. Use SimplePie (class-simplepie.php) instead.
    1818 */
    19 _deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/class-simplepie.php' );
     19_deprecated_file( basename( __FILE__ ), '3.0.0', WPINC . '/class-simplepie.php' );
    2020
    2121/**
    2222 * Fires before MagpieRSS is loaded, to optionally replace it.
  • wp-includes/taxonomy.php

     
    389389        $args = array_merge( $defaults, $args );
    390390
    391391        if ( empty( $taxonomy ) || strlen( $taxonomy ) > 32 ) {
    392                 _doing_it_wrong( __FUNCTION__, __( 'Taxonomy names must be between 1 and 32 characters in length.' ), '4.2' );
     392                _doing_it_wrong( __FUNCTION__, __( 'Taxonomy names must be between 1 and 32 characters in length.' ), '4.2.0' );
    393393                return new WP_Error( 'taxonomy_length_invalid', __( 'Taxonomy names must be between 1 and 32 characters in length.' ) );
    394394        }
    395395
  • wp-includes/theme-compat/comments.php

     
    22/**
    33 * @package WordPress
    44 * @subpackage Theme_Compat
    5  * @deprecated 3.0
     5 * @deprecated 3.0.0
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 *
     
    1010_deprecated_file(
    1111        /* translators: %s: template name */
    1212        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
    13         '3.0',
     13        '3.0.0',
    1414        null,
    1515        /* translators: %s: template name */
    1616        sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
  • wp-includes/theme-compat/footer.php

     
    22/**
    33 * @package WordPress
    44 * @subpackage Theme_Compat
    5  * @deprecated 3.0
     5 * @deprecated 3.0.0
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 */
     
    99_deprecated_file(
    1010        /* translators: %s: template name */
    1111        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
    12         '3.0',
     12        '3.0.0',
    1313        null,
    1414        /* translators: %s: template name */
    1515        sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
  • wp-includes/theme-compat/header.php

     
    22/**
    33 * @package WordPress
    44 * @subpackage Theme_Compat
    5  * @deprecated 3.0
     5 * @deprecated 3.0.0
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version.
    88 */
     
    99_deprecated_file(
    1010        /* translators: %s: template name */
    1111        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
    12         '3.0',
     12        '3.0.0',
    1313        null,
    1414        /* translators: %s: template name */
    1515        sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
  • wp-includes/theme-compat/sidebar.php

     
    22/**
    33 * @package WordPress
    44 * @subpackage Theme_Compat
    5  * @deprecated 3.0
     5 * @deprecated 3.0.0
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version.
    88 */
     
    99_deprecated_file(
    1010        /* translators: %s: template name */
    1111        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
    12         '3.0',
     12        '3.0.0',
    1313        null,
    1414        /* translators: %s: template name */
    1515        sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
  • wp-includes/theme.php

     
    17191719                        if ( did_action( 'wp_loaded' ) ) {
    17201720                                /* translators: 1: Theme support 2: hook name */
    17211721                                _doing_it_wrong( "add_theme_support( 'title-tag' )", sprintf( __( 'Theme support for %1$s should be registered before the %2$s hook.' ),
    1722                                         '<code>title-tag</code>', '<code>wp_loaded</code>' ), '4.1' );
     1722                                        '<code>title-tag</code>', '<code>wp_loaded</code>' ), '4.1.0' );
    17231723
    17241724                                return false;
    17251725                        }
  • wp-includes/user.php

     
    450450        global $wpdb;
    451451
    452452        if ( !empty( $deprecated ) )
    453                 _deprecated_argument( __FUNCTION__, '3.0' );
     453                _deprecated_argument( __FUNCTION__, '3.0.0' );
    454454
    455455        if ( empty( $user ) )
    456456                $user = get_current_user_id();
  • wp-includes/widgets/class-wp-widget-recent-comments.php

     
    173173         * @deprecated 4.4.0 Fragment caching was removed in favor of split queries.
    174174         */
    175175        public function flush_widget_cache() {
    176                 _deprecated_function( __METHOD__, '4.4' );
     176                _deprecated_function( __METHOD__, '4.4.0' );
    177177        }
    178178}
  • wp-includes/wp-db.php

     
    11351135         */
    11361136        function _weak_escape( $string ) {
    11371137                if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) )
    1138                         _deprecated_function( __METHOD__, '3.6', 'wpdb::prepare() or esc_sql()' );
     1138                        _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' );
    11391139                return addslashes( $string );
    11401140        }
    11411141
     
    12091209         */
    12101210        public function escape( $data ) {
    12111211                if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) )
    1212                         _deprecated_function( __METHOD__, '3.6', 'wpdb::prepare() or esc_sql()' );
     1212                        _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' );
    12131213                if ( is_array( $data ) ) {
    12141214                        foreach ( $data as $k => $v ) {
    12151215                                if ( is_array( $v ) )
     
    12781278
    12791279                // This is not meant to be foolproof -- but it will catch obviously incorrect usage.
    12801280                if ( strpos( $query, '%' ) === false ) {
    1281                         _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9' );
     1281                        _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' );
    12821282                }
    12831283
    12841284                $args = func_get_args();
     
    32103210         * @return bool True if collation is supported, false if version does not
    32113211         */
    32123212        public function supports_collation() {
    3213                 _deprecated_function( __FUNCTION__, '3.5', 'wpdb::has_cap( \'collation\' )' );
     3213                _deprecated_function( __FUNCTION__, '3.5.0', 'wpdb::has_cap( \'collation\' )' );
    32143214                return $this->has_cap( 'collation' );
    32153215        }
    32163216
  • xmlrpc.php

     
    9595 * @param string $msg Information describing logging reason.
    9696 */
    9797function logIO( $io, $msg ) {
    98         _deprecated_function( __FUNCTION__, '3.4', 'error_log()' );
     98        _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
    9999        if ( ! empty( $GLOBALS['xmlrpc_logging'] ) )
    100100                error_log( $io . ' - ' . $msg );
    101101}
     102 No newline at end of file