diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 11bd30cd19..abbb07998e 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -9,7 +9,7 @@ * @subpackage Administration */ -_deprecated_file( basename(__FILE__), '2.5', 'wp-admin/includes/admin.php' ); +_deprecated_file( basename(__FILE__), '2.5.0', 'wp-admin/includes/admin.php' ); /** WordPress Administration API: Includes all Administration functions. */ require_once(ABSPATH . 'wp-admin/includes/admin.php'); diff --git a/wp-admin/includes/class-wp-filesystem-base.php b/wp-admin/includes/class-wp-filesystem-base.php index 12b52d8f27..87cf3f559b 100644 --- a/wp-admin/includes/class-wp-filesystem-base.php +++ b/wp-admin/includes/class-wp-filesystem-base.php @@ -139,7 +139,7 @@ class WP_Filesystem_Base { * @return string The location of the remote path. */ public function find_base_dir( $base = '.', $echo = false ) { - _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); + _deprecated_function(__FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); $this->verbose = $echo; return $this->abspath(); } @@ -161,7 +161,7 @@ class WP_Filesystem_Base { * @return string The location of the remote path. */ public function get_base_dir( $base = '.', $echo = false ) { - _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); + _deprecated_function(__FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); $this->verbose = $echo; return $this->abspath(); } diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index 94f541b181..7753004a60 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -18,7 +18,7 @@ * @see wp_editor() */ function tinymce_include() { - _deprecated_function( __FUNCTION__, '2.1', 'wp_editor()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_editor()' ); wp_tiny_mce(); } @@ -31,7 +31,7 @@ function tinymce_include() { * */ function documentation_link() { - _deprecated_function( __FUNCTION__, '2.5' ); + _deprecated_function( __FUNCTION__, '2.5.0' ); } /** @@ -48,7 +48,7 @@ function documentation_link() { * @return array Shrunk dimensions (width, height). */ function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) { - _deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'wp_constrain_dimensions()' ); return wp_constrain_dimensions( $width, $height, $wmax, $hmax ); } @@ -64,7 +64,7 @@ function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) { * @return array Shrunk dimensions (width, height). */ function get_udims( $width, $height ) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_constrain_dimensions()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' ); return wp_constrain_dimensions( $width, $height, 128, 96 ); } @@ -80,7 +80,7 @@ function get_udims( $width, $height ) { * @param array $popular_ids Unused. */ function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { - _deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' ); + _deprecated_function( __FUNCTION__, '2.6.0', 'wp_category_checklist()' ); global $post_ID; wp_category_checklist( $post_ID ); } @@ -95,7 +95,7 @@ function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() * @param int $default Unused. */ function dropdown_link_categories( $default = 0 ) { - _deprecated_function( __FUNCTION__, '2.6', 'wp_link_category_checklist()' ); + _deprecated_function( __FUNCTION__, '2.6.0', 'wp_link_category_checklist()' ); global $link_id; wp_link_category_checklist( $link_id ); } @@ -111,7 +111,7 @@ function dropdown_link_categories( $default = 0 ) { * @return string Full filesystem path to edit. */ function get_real_file_to_edit( $file ) { - _deprecated_function( __FUNCTION__, '2.9' ); + _deprecated_function( __FUNCTION__, '2.9.0' ); return WP_CONTENT_DIR . $file; } @@ -131,7 +131,7 @@ function get_real_file_to_edit( $file ) { * @return bool|null False if no categories were found. */ function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { - _deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' ); if (!$categories ) $categories = get_categories( array('hide_empty' => 0) ); @@ -165,7 +165,7 @@ function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $le * @param callable $sanitize_callback A callback function that sanitizes the option's value. */ function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'register_setting()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'register_setting()' ); register_setting( $option_group, $option_name, $sanitize_callback ); } @@ -181,7 +181,7 @@ function add_option_update_handler( $option_group, $option_name, $sanitize_callb * @param callable $sanitize_callback */ function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' ); unregister_setting( $option_group, $option_name, $sanitize_callback ); } @@ -194,7 +194,7 @@ function remove_option_update_handler( $option_group, $option_name, $sanitize_ca * @param string $filename **/ function codepress_get_lang( $filename ) { - _deprecated_function( __FUNCTION__, '3.0' ); + _deprecated_function( __FUNCTION__, '3.0.0' ); } /** @@ -204,7 +204,7 @@ function codepress_get_lang( $filename ) { * @deprecated 3.0.0 **/ function codepress_footer_js() { - _deprecated_function( __FUNCTION__, '3.0' ); + _deprecated_function( __FUNCTION__, '3.0.0' ); } /** @@ -214,7 +214,7 @@ function codepress_footer_js() { * @deprecated 3.0.0 **/ function use_codepress() { - _deprecated_function( __FUNCTION__, '3.0' ); + _deprecated_function( __FUNCTION__, '3.0.0' ); } /** @@ -225,7 +225,7 @@ function use_codepress() { * @return array List of user IDs. */ function get_author_user_ids() { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); + _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; if ( !is_multisite() ) @@ -245,7 +245,7 @@ function get_author_user_ids() { * @return array|bool List of editable authors. False if no editable users. */ function get_editable_authors( $user_id ) { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); + _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; @@ -271,7 +271,7 @@ function get_editable_authors( $user_id ) { * @return array Array of editable user IDs, empty array otherwise. */ function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); + _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; @@ -304,7 +304,7 @@ function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'p * @deprecated 3.1.0 Use get_users() */ function get_nonauthor_user_ids() { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); + _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; @@ -480,7 +480,7 @@ class WP_User_Search { * @return WP_User_Search */ function __construct( $search_term = '', $page = '', $role = '' ) { - _deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' ); + _deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' ); $this->search_term = wp_unslash( $search_term ); $this->raw_page = ( '' == $page ) ? false : (int) $page; @@ -670,7 +670,7 @@ endif; * @return array List of posts from others. */ function get_others_unpublished_posts( $user_id, $type = 'any' ) { - _deprecated_function( __FUNCTION__, '3.1' ); + _deprecated_function( __FUNCTION__, '3.1.0' ); global $wpdb; @@ -703,7 +703,7 @@ function get_others_unpublished_posts( $user_id, $type = 'any' ) { * @return array List of drafts from other users. */ function get_others_drafts($user_id) { - _deprecated_function( __FUNCTION__, '3.1' ); + _deprecated_function( __FUNCTION__, '3.1.0' ); return get_others_unpublished_posts($user_id, 'draft'); } @@ -718,7 +718,7 @@ function get_others_drafts($user_id) { * @return array List of posts with pending review post type from other users. */ function get_others_pending($user_id) { - _deprecated_function( __FUNCTION__, '3.1' ); + _deprecated_function( __FUNCTION__, '3.1.0' ); return get_others_unpublished_posts($user_id, 'pending'); } @@ -731,7 +731,7 @@ function get_others_pending($user_id) { * @see wp_dashboard_quick_press() */ function wp_dashboard_quick_press_output() { - _deprecated_function( __FUNCTION__, '3.2', 'wp_dashboard_quick_press()' ); + _deprecated_function( __FUNCTION__, '3.2.0', 'wp_dashboard_quick_press()' ); wp_dashboard_quick_press(); } @@ -745,7 +745,7 @@ function wp_dashboard_quick_press_output() { * @staticvar int $num */ function wp_tiny_mce( $teeny = false, $settings = false ) { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); static $num = 1; @@ -771,7 +771,7 @@ function wp_tiny_mce( $teeny = false, $settings = false ) { * @see wp_editor() */ function wp_preload_dialogs() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); } /** @@ -781,7 +781,7 @@ function wp_preload_dialogs() { * @see wp_editor() */ function wp_print_editor_js() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); } /** @@ -791,7 +791,7 @@ function wp_print_editor_js() { * @see wp_editor() */ function wp_quicktags() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); } /** @@ -802,7 +802,7 @@ function wp_quicktags() { * @see WP_Screen::render_screen_layout() */ function screen_layout( $screen ) { - _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_screen_layout()' ); + _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_screen_layout()' ); $current_screen = get_current_screen(); @@ -822,7 +822,7 @@ function screen_layout( $screen ) { * @see WP_Screen::render_per_page_options() */ function screen_options( $screen ) { - _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_per_page_options()' ); + _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_per_page_options()' ); $current_screen = get_current_screen(); @@ -854,7 +854,7 @@ function screen_meta( $screen ) { * @see WP_Admin_Bar */ function favorite_actions() { - _deprecated_function( __FUNCTION__, '3.2', 'WP_Admin_Bar' ); + _deprecated_function( __FUNCTION__, '3.2.0', 'WP_Admin_Bar' ); } /** @@ -866,7 +866,7 @@ function favorite_actions() { * @return null|string */ function media_upload_image() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); } @@ -879,7 +879,7 @@ function media_upload_image() { * @return null|string */ function media_upload_audio() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); } @@ -892,7 +892,7 @@ function media_upload_audio() { * @return null|string */ function media_upload_video() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); } @@ -905,7 +905,7 @@ function media_upload_video() { * @return null|string */ function media_upload_file() { - _deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); } @@ -918,7 +918,7 @@ function media_upload_file() { * @return string */ function type_url_form_image() { - _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" ); + _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('image')" ); return wp_media_insert_url_form( 'image' ); } @@ -931,7 +931,7 @@ function type_url_form_image() { * @return string */ function type_url_form_audio() { - _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" ); + _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('audio')" ); return wp_media_insert_url_form( 'audio' ); } @@ -944,7 +944,7 @@ function type_url_form_audio() { * @return string */ function type_url_form_video() { - _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" ); + _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('video')" ); return wp_media_insert_url_form( 'video' ); } @@ -957,7 +957,7 @@ function type_url_form_video() { * @return string */ function type_url_form_file() { - _deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" ); + _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" ); return wp_media_insert_url_form( 'file' ); } @@ -974,7 +974,7 @@ function type_url_form_file() { * @param string $help The content of an 'Overview' help tab. */ function add_contextual_help( $screen, $help ) { - _deprecated_function( __FUNCTION__, '3.3', 'get_current_screen()->add_help_tab()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' ); if ( is_string( $screen ) ) $screen = convert_to_screen( $screen ); @@ -992,7 +992,7 @@ function add_contextual_help( $screen, $help ) { * @return array $themes Array of allowed themes. */ function get_allowed_themes() { - _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'allowed' => true ) )" ); + _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'allowed' => true ) )" ); $themes = wp_get_themes( array( 'allowed' => true ) ); @@ -1014,7 +1014,7 @@ function get_allowed_themes() { * @return array */ function get_broken_themes() { - _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'errors' => true )" ); + _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" ); $themes = wp_get_themes( array( 'errors' => true ) ); $broken = array(); @@ -1039,7 +1039,7 @@ function get_broken_themes() { * @return WP_Theme */ function current_theme_info() { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); return wp_get_theme(); } @@ -1052,7 +1052,7 @@ function current_theme_info() { * @deprecated 3.5.0 */ function _insert_into_post_button( $type ) { - _deprecated_function( __FUNCTION__, '3.5' ); + _deprecated_function( __FUNCTION__, '3.5.0' ); } /** @@ -1063,7 +1063,7 @@ function _insert_into_post_button( $type ) { * @deprecated 3.5.0 */ function _media_button($title, $icon, $type, $id) { - _deprecated_function( __FUNCTION__, '3.5' ); + _deprecated_function( __FUNCTION__, '3.5.0' ); } /** @@ -1077,7 +1077,7 @@ function _media_button($title, $icon, $type, $id) { * @return object */ function get_post_to_edit( $id ) { - _deprecated_function( __FUNCTION__, '3.5', 'get_post()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' ); return get_post( $id, OBJECT, 'edit' ); } @@ -1092,7 +1092,7 @@ function get_post_to_edit( $id ) { * @return WP_Post Post object containing all the default post data as attributes */ function get_default_page_to_edit() { - _deprecated_function( __FUNCTION__, '3.5', "get_default_post_to_edit( 'page' )" ); + _deprecated_function( __FUNCTION__, '3.5.0', "get_default_post_to_edit( 'page' )" ); $page = get_default_post_to_edit(); $page->post_type = 'page'; @@ -1112,7 +1112,7 @@ function get_default_page_to_edit() { * @return string Thumbnail path on success, Error string on failure. */ function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { - _deprecated_function( __FUNCTION__, '3.5', 'image_resize()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'image_resize()' ); return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) ); } @@ -1125,7 +1125,7 @@ function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { * @deprecated 3.6.0 */ function wp_nav_menu_locations_meta_box() { - _deprecated_function( __FUNCTION__, '3.6' ); + _deprecated_function( __FUNCTION__, '3.6.0' ); } /** @@ -1139,7 +1139,7 @@ function wp_nav_menu_locations_meta_box() { * @see Core_Upgrader */ function wp_update_core($current, $feedback = '') { - _deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' ); + _deprecated_function( __FUNCTION__, '3.7.0', 'new Core_Upgrader();' ); if ( !empty($feedback) ) add_filter('update_feedback', $feedback); @@ -1162,7 +1162,7 @@ function wp_update_core($current, $feedback = '') { * @see Plugin_Upgrader */ function wp_update_plugin($plugin, $feedback = '') { - _deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' ); + _deprecated_function( __FUNCTION__, '3.7.0', 'new Plugin_Upgrader();' ); if ( !empty($feedback) ) add_filter('update_feedback', $feedback); @@ -1184,7 +1184,7 @@ function wp_update_plugin($plugin, $feedback = '') { * @see Theme_Upgrader */ function wp_update_theme($theme, $feedback = '') { - _deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' ); + _deprecated_function( __FUNCTION__, '3.7.0', 'new Theme_Upgrader();' ); if ( !empty($feedback) ) add_filter('update_feedback', $feedback); @@ -1203,7 +1203,7 @@ function wp_update_theme($theme, $feedback = '') { * @param int|bool $id */ function the_attachment_links( $id = false ) { - _deprecated_function( __FUNCTION__, '3.7' ); + _deprecated_function( __FUNCTION__, '3.7.0' ); } /** @@ -1305,7 +1305,7 @@ function wp_dashboard_secondary_control() {} * @param int $new_ID */ function _relocate_children( $old_ID, $new_ID ) { - _deprecated_function( __FUNCTION__, '3.9' ); + _deprecated_function( __FUNCTION__, '3.9.0' ); } /** @@ -1332,7 +1332,7 @@ function _relocate_children( $old_ID, $new_ID ) { * @return string The resulting page's hook_suffix. */ function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') { - _deprecated_function( __FUNCTION__, '4.5', 'add_menu_page()' ); + _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' ); global $_wp_last_object_menu; @@ -1365,7 +1365,7 @@ function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $fu * @return string The resulting page's hook_suffix. */ function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') { - _deprecated_function( __FUNCTION__, '4.5', 'add_menu_page()' ); + _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' ); global $_wp_last_utility_menu; @@ -1390,7 +1390,7 @@ function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $f function post_form_autocomplete_off() { global $is_safari, $is_chrome; - _deprecated_function( __FUNCTION__, '4.6' ); + _deprecated_function( __FUNCTION__, '4.6.0' ); if ( $is_safari || $is_chrome ) { echo ' autocomplete="off"'; diff --git a/wp-admin/includes/image-edit.php b/wp-admin/includes/image-edit.php index 5f5dc878ec..b34d2ac702 100644 --- a/wp-admin/includes/image-edit.php +++ b/wp-admin/includes/image-edit.php @@ -256,7 +256,7 @@ function wp_stream_image( $image, $mime_type, $post_id ) { return true; } else { - _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) ); + _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); /** * Filters the GD image resource to be streamed to the browser. @@ -321,7 +321,7 @@ function wp_save_image_file( $filename, $image, $mime_type, $post_id ) { return $image->save( $filename, $mime_type ); } else { - _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) ); + _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); /** This filter is documented in wp-admin/includes/image-edit.php */ $image = apply_filters( 'image_save_pre', $image, $post_id ); @@ -387,7 +387,7 @@ function _image_get_preview_ratio($w, $h) { * @return resource|false GD image resource, false otherwise. */ function _rotate_image_resource($img, $angle) { - _deprecated_function( __FUNCTION__, '3.5', __( 'Use WP_Image_Editor::rotate' ) ); + _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::rotate' ) ); if ( function_exists('imagerotate') ) { $rotated = imagerotate($img, $angle, 0); if ( is_resource($rotated) ) { @@ -410,7 +410,7 @@ function _rotate_image_resource($img, $angle) { * @return resource (maybe) flipped image resource. */ function _flip_image_resource($img, $horz, $vert) { - _deprecated_function( __FUNCTION__, '3.5', __( 'Use WP_Image_Editor::flip' ) ); + _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::flip' ) ); $w = imagesx($img); $h = imagesy($img); $dst = wp_imagecreatetruecolor($w, $h); @@ -463,7 +463,7 @@ function _crop_image_resource($img, $x, $y, $w, $h) { */ function image_edit_apply_changes( $image, $changes ) { if ( is_resource( $image ) ) - _deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) ); + _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); if ( !is_array($changes) ) return $image; diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 1fea5f637d..753fb056d2 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -1013,7 +1013,7 @@ function xfn_check( $class, $value = '', $deprecated = '' ) { global $link; if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '0.0' ); // Never implemented + _deprecated_argument( __FUNCTION__, '0.0.0' ); // Never implemented $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: ''; $rels = preg_split('/\s+/', $link_rel); diff --git a/wp-admin/includes/ms-deprecated.php b/wp-admin/includes/ms-deprecated.php index 84dcefc96a..81546bd147 100644 --- a/wp-admin/includes/ms-deprecated.php +++ b/wp-admin/includes/ms-deprecated.php @@ -16,7 +16,7 @@ * @deprecated 3.0.0 */ function wpmu_menu() { - _deprecated_function(__FUNCTION__, '3.0' ); + _deprecated_function(__FUNCTION__, '3.0.0' ); // Deprecated. See #11763. } @@ -27,7 +27,7 @@ function wpmu_menu() { * @see is_upload_space_available() */ function wpmu_checkAvailableSpace() { - _deprecated_function(__FUNCTION__, '3.0', 'is_upload_space_available()' ); + _deprecated_function(__FUNCTION__, '3.0.0', 'is_upload_space_available()' ); if ( !is_upload_space_available() ) wp_die( __('Sorry, you must delete files before you can upload any more.') ); @@ -39,7 +39,7 @@ function wpmu_checkAvailableSpace() { * @deprecated 3.0.0 */ function mu_options( $options ) { - _deprecated_function(__FUNCTION__, '3.0' ); + _deprecated_function(__FUNCTION__, '3.0.0' ); return $options; } @@ -50,7 +50,7 @@ function mu_options( $options ) { * @see activate_plugin() */ function activate_sitewide_plugin() { - _deprecated_function(__FUNCTION__, '3.0', 'activate_plugin()' ); + _deprecated_function(__FUNCTION__, '3.0.0', 'activate_plugin()' ); return false; } @@ -61,7 +61,7 @@ function activate_sitewide_plugin() { * @see deactivate_sitewide_plugin() */ function deactivate_sitewide_plugin( $plugin = false ) { - _deprecated_function(__FUNCTION__, '3.0', 'deactivate_plugin()' ); + _deprecated_function(__FUNCTION__, '3.0.0', 'deactivate_plugin()' ); } /** @@ -71,7 +71,7 @@ function deactivate_sitewide_plugin( $plugin = false ) { * @see is_network_only_plugin() */ function is_wpmu_sitewide_plugin( $file ) { - _deprecated_function(__FUNCTION__, '3.0', 'is_network_only_plugin()' ); + _deprecated_function(__FUNCTION__, '3.0.0', 'is_network_only_plugin()' ); return is_network_only_plugin( $file ); } @@ -82,7 +82,7 @@ function is_wpmu_sitewide_plugin( $file ) { * @see WP_Theme::get_allowed_on_network() */ function get_site_allowed_themes() { - _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_network()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' ); return array_map( 'intval', WP_Theme::get_allowed_on_network() ); } @@ -93,7 +93,7 @@ function get_site_allowed_themes() { * @see WP_Theme::get_allowed_on_site() */ function wpmu_get_blog_allowedthemes( $blog_id = 0 ) { - _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_site()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' ); return array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) ); } diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 02bc8bef5d..03a07634e6 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -528,7 +528,7 @@ function update_user_status( $id, $pref, $value, $deprecated = null ) { global $wpdb; if ( null !== $deprecated ) - _deprecated_argument( __FUNCTION__, '3.1' ); + _deprecated_argument( __FUNCTION__, '3.0.2' ); $wpdb->update( $wpdb->users, array( sanitize_key( $pref ) => $value ), array( 'ID' => $id ) ); diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index b0341dcf6a..d881d2918c 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -86,7 +86,7 @@ function get_plugin_data( $plugin_file, $markup = true, $translate = true ) { // Site Wide Only is the old header for Network if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) { /* translators: 1: Site Wide Only: true, 2: Network: true */ - _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), 'Site Wide Only: true', 'Network: true' ) ); + _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), 'Site Wide Only: true', 'Network: true' ) ); $plugin_data['Network'] = $plugin_data['_sitewide']; } $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) ); @@ -1777,12 +1777,12 @@ function register_setting( $option_group, $option_name, $sanitize_callback = '' global $new_whitelist_options; if ( 'misc' == $option_group ) { - _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); + _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); $option_group = 'general'; } if ( 'privacy' == $option_group ) { - _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); + _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); $option_group = 'reading'; } @@ -1806,12 +1806,12 @@ function unregister_setting( $option_group, $option_name, $sanitize_callback = ' global $new_whitelist_options; if ( 'misc' == $option_group ) { - _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); + _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); $option_group = 'general'; } if ( 'privacy' == $option_group ) { - _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); + _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); $option_group = 'reading'; } diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index ef7621a02d..7cd466144d 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1204,12 +1204,12 @@ function add_settings_section($id, $title, $callback, $page) { global $wp_settings_sections; if ( 'misc' == $page ) { - _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); + _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); $page = 'general'; } if ( 'privacy' == $page ) { - _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); + _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); $page = 'reading'; } @@ -1255,12 +1255,12 @@ function add_settings_field($id, $title, $callback, $page, $section = 'default', global $wp_settings_fields; if ( 'misc' == $page ) { - _deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); + _deprecated_argument( __FUNCTION__, '3.0.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) ); $page = 'general'; } if ( 'privacy' == $page ) { - _deprecated_argument( __FUNCTION__, '3.5', __( 'The privacy options group has been removed. Use another settings group.' ) ); + _deprecated_argument( __FUNCTION__, '3.5.0', __( 'The privacy options group has been removed. Use another settings group.' ) ); $page = 'reading'; } @@ -1996,7 +1996,7 @@ function _wp_admin_html_begin() { */ function convert_to_screen( $hook_name ) { if ( ! class_exists( 'WP_Screen', false ) ) { - _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' ); + _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' ); return (object) array( 'id' => '_invalid', 'base' => '_are_belong_to_us' ); } diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index 27538b7489..9333beac9b 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -29,7 +29,7 @@ $theme_field_defaults = array( 'description' => true, 'sections' => false, 'test * @return array */ function install_themes_feature_list() { - _deprecated_function( __FUNCTION__, '3.1', 'get_theme_feature_list()' ); + _deprecated_function( __FUNCTION__, '3.1.0', 'get_theme_feature_list()' ); if ( !$cache = get_transient( 'wporg_theme_feature_list' ) ) set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS ); @@ -160,7 +160,7 @@ function install_themes_upload() { * @param object $theme */ function display_theme( $theme ) { - _deprecated_function( __FUNCTION__, '3.4' ); + _deprecated_function( __FUNCTION__, '3.4.0' ); global $wp_list_table; if ( ! isset( $wp_list_table ) ) { $wp_list_table = _get_list_table('WP_Theme_Install_List_Table'); diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index bc0c45d9fe..e99d2642fb 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -38,7 +38,7 @@ if ( !function_exists('wp_install') ) : */ function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '' ) { if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '2.6' ); + _deprecated_argument( __FUNCTION__, '2.6.0' ); wp_check_mysql_version(); wp_cache_flush(); diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 7f728dc013..83aa0d1580 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -353,7 +353,7 @@ if ( ! empty( $languages ) || ! empty( $translations ) ) {

diff --git a/wp-admin/options.php b/wp-admin/options.php index df5d3cfd4e..45558dfbd9 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -195,7 +195,7 @@ if ( 'update' == $action ) { if ( $options ) { foreach ( $options as $option ) { if ( $unregistered ) { - _deprecated_argument( 'options.php', '2.7', + _deprecated_argument( 'options.php', '2.7.0', sprintf( /* translators: %s: the option/setting */ __( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ), diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index 7be637c8fd..139759b995 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -8,5 +8,5 @@ * @subpackage Administration */ -_deprecated_file( basename(__FILE__), '2.5', 'wp-admin/includes/upgrade.php' ); +_deprecated_file( basename(__FILE__), '2.5.0', 'wp-admin/includes/upgrade.php' ); require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index d5ecfe3caa..915805fcb9 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -24,7 +24,7 @@ function get_the_author($deprecated = '') { global $authordata; if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '2.1' ); + _deprecated_argument( __FUNCTION__, '2.1.0' ); /** * Filters the display name of the current post's author. @@ -57,11 +57,11 @@ function get_the_author($deprecated = '') { */ function the_author( $deprecated = '', $deprecated_echo = true ) { if ( ! empty( $deprecated ) ) { - _deprecated_argument( __FUNCTION__, '2.1' ); + _deprecated_argument( __FUNCTION__, '2.1.0' ); } if ( true !== $deprecated_echo ) { - _deprecated_argument( __FUNCTION__, '1.5', + _deprecated_argument( __FUNCTION__, '1.5.0', /* translators: %s: get_the_author() */ sprintf( __( 'Use %s instead if you do not want the value echoed.' ), 'get_the_author()' @@ -277,7 +277,7 @@ function get_the_author_posts_link() { */ function the_author_posts_link( $deprecated = '' ) { if ( ! empty( $deprecated ) ) { - _deprecated_argument( __FUNCTION__, '2.1' ); + _deprecated_argument( __FUNCTION__, '2.1.0' ); } echo get_the_author_posts_link(); } diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 9da8d02e2e..6c53eabb78 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -264,7 +264,7 @@ function wp_cache_add_non_persistent_groups( $groups ) { * @global WP_Object_Cache $wp_object_cache Object cache global instance. */ function wp_cache_reset() { - _deprecated_function( __FUNCTION__, '3.5' ); + _deprecated_function( __FUNCTION__, '3.5.0' ); global $wp_object_cache; @@ -631,7 +631,7 @@ class WP_Object_Cache { * @see switch_to_blog() */ public function reset() { - _deprecated_function( __FUNCTION__, '3.5', 'switch_to_blog()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'switch_to_blog()' ); // Clear out non-global caches since the blog ID has changed. foreach ( array_keys( $this->cache ) as $group ) { diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 8bba6b4678..5a7d017990 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -387,7 +387,7 @@ function wp_dropdown_categories( $args = '' ) { // Back compat. if ( isset( $args['type'] ) && 'link' == $args['type'] ) { /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */ - _deprecated_argument( __FUNCTION__, '3.0', + _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( '%1$s is deprecated. Use %2$s instead.' ), 'type => link', 'taxonomy => link_category' diff --git a/wp-includes/category.php b/wp-includes/category.php index 16ac5e7906..08d18c0a65 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -42,7 +42,7 @@ function get_categories( $args = '' ) { // Back compat if ( isset($args['type']) && 'link' == $args['type'] ) { /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */ - _deprecated_argument( __FUNCTION__, '3.0', + _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( '%1$s is deprecated. Use %2$s instead.' ), 'type => link', 'taxonomy => link_category' diff --git a/wp-includes/class-snoopy.php b/wp-includes/class-snoopy.php index 7b3940669f..f26eb0e25a 100644 --- a/wp-includes/class-snoopy.php +++ b/wp-includes/class-snoopy.php @@ -3,7 +3,7 @@ /** * Deprecated. Use WP_HTTP (http.php) instead. */ -_deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' ); +_deprecated_file( basename( __FILE__ ), '3.0.0', WPINC . '/http.php' ); if ( ! class_exists( 'Snoopy', false ) ) : /************************************************* diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index b89c6542dd..75ed317a63 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -27,7 +27,7 @@ class WP_Admin_Bar { return is_ssl() ? 'https://' : 'http://'; case 'menu' : - _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 menu property.' ); + _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 menu property.' ); return array(); // Sorry, folks. } } @@ -127,7 +127,7 @@ class WP_Admin_Bar { if ( empty( $args['title'] ) ) return; - _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3' ); + _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3.0' ); // Deprecated: Generate an ID from the title. $args['id'] = esc_attr( sanitize_title( trim( $args['title'] ) ) ); } @@ -559,7 +559,7 @@ class WP_Admin_Bar { * @param object $node */ public function recursive_render( $id, $node ) { - _deprecated_function( __METHOD__, '3.3', 'WP_Admin_bar::render(), WP_Admin_Bar::_render_item()' ); + _deprecated_function( __METHOD__, '3.3.0', 'WP_Admin_bar::render(), WP_Admin_Bar::_render_item()' ); $this->_render_item( $node ); } diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 761e3216ee..2c808bb666 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -1342,7 +1342,7 @@ final class WP_Customize_Manager { 'customize_loaded_components' ); - _doing_it_wrong( __METHOD__, $message, '4.5' ); + _doing_it_wrong( __METHOD__, $message, '4.5.0' ); } unset( $this->panels[ $id ] ); } diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index af541f2cf9..c0915b87ec 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -100,7 +100,7 @@ final class _WP_Editors { if ( self::$this_tinymce ) { if ( false !== strpos( $editor_id, '[' ) ) { self::$this_tinymce = false; - _deprecated_argument( 'wp_editor()', '3.9', 'TinyMCE editor IDs cannot have brackets.' ); + _deprecated_argument( 'wp_editor()', '3.9.0', 'TinyMCE editor IDs cannot have brackets.' ); } } @@ -1310,7 +1310,7 @@ final class _WP_Editors { * @global int $content_width */ public static function wp_fullscreen_html() { - _deprecated_function( __FUNCTION__, '4.3' ); + _deprecated_function( __FUNCTION__, '4.3.0' ); } /** diff --git a/wp-includes/class-wp-user.php b/wp-includes/class-wp-user.php index c0c42166af..0f5ee10546 100644 --- a/wp-includes/class-wp-user.php +++ b/wp-includes/class-wp-user.php @@ -269,7 +269,7 @@ class WP_User { */ public function __isset( $key ) { if ( 'id' == $key ) { - _deprecated_argument( 'WP_User->id', '2.1', + _deprecated_argument( 'WP_User->id', '2.1.0', sprintf( /* translators: %s: WP_User->ID */ __( 'Use %s instead.' ), @@ -299,7 +299,7 @@ class WP_User { */ public function __get( $key ) { if ( 'id' == $key ) { - _deprecated_argument( 'WP_User->id', '2.1', + _deprecated_argument( 'WP_User->id', '2.1.0', sprintf( /* translators: %s: WP_User->ID */ __( 'Use %s instead.' ), @@ -338,7 +338,7 @@ class WP_User { */ public function __set( $key, $value ) { if ( 'id' == $key ) { - _deprecated_argument( 'WP_User->id', '2.1', + _deprecated_argument( 'WP_User->id', '2.1.0', sprintf( /* translators: %s: WP_User->ID */ __( 'Use %s instead.' ), @@ -362,7 +362,7 @@ class WP_User { */ public function __unset( $key ) { if ( 'id' == $key ) { - _deprecated_argument( 'WP_User->id', '2.1', + _deprecated_argument( 'WP_User->id', '2.1.0', sprintf( /* translators: %s: WP_User->ID */ __( 'Use %s instead.' ), @@ -712,7 +712,7 @@ class WP_User { */ public function has_cap( $cap ) { if ( is_numeric( $cap ) ) { - _deprecated_argument( __FUNCTION__, '2.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') ); + _deprecated_argument( __FUNCTION__, '2.0.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') ); $cap = $this->translate_level_to_cap( $cap ); } diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index e5f5664ec1..81634ece41 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -197,7 +197,7 @@ class WP_Scripts extends WP_Dependencies { * @return bool|string|void Void if no data exists, extra scripts if `$echo` is true, true otherwise. */ public function print_scripts_l10n( $handle, $echo = true ) { - _deprecated_function( __FUNCTION__, '3.3', 'print_extra_script()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'print_extra_script()' ); return $this->print_extra_script( $handle, $echo ); } diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 1b5684b921..75ed045cd3 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -825,7 +825,7 @@ function comments_link( $deprecated = '', $deprecated_2 = '' ) { if ( !empty( $deprecated ) ) _deprecated_argument( __FUNCTION__, '0.72' ); if ( !empty( $deprecated_2 ) ) - _deprecated_argument( __FUNCTION__, '1.3' ); + _deprecated_argument( __FUNCTION__, '1.3.0' ); echo esc_url( get_comments_link() ); } @@ -870,7 +870,7 @@ function get_comments_number( $post_id = 0 ) { */ function comments_number( $zero = false, $one = false, $more = false, $deprecated = '' ) { if ( ! empty( $deprecated ) ) { - _deprecated_argument( __FUNCTION__, '1.3' ); + _deprecated_argument( __FUNCTION__, '1.3.0' ); } echo get_comments_number_text( $zero, $one, $more ); } @@ -1111,7 +1111,7 @@ function get_trackback_url() { */ function trackback_url( $deprecated_echo = true ) { if ( true !== $deprecated_echo ) { - _deprecated_argument( __FUNCTION__, '2.5', + _deprecated_argument( __FUNCTION__, '2.5.0', /* translators: %s: get_trackback_url() */ sprintf( __( 'Use %s instead if you do not want the value echoed.' ), 'get_trackback_url()' @@ -1137,7 +1137,7 @@ function trackback_url( $deprecated_echo = true ) { */ function trackback_rdf( $deprecated = '' ) { if ( ! empty( $deprecated ) ) { - _deprecated_argument( __FUNCTION__, '2.5' ); + _deprecated_argument( __FUNCTION__, '2.5.0' ); } if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && false !== stripos( $_SERVER['HTTP_USER_AGENT'], 'W3C_Validator' ) ) { diff --git a/wp-includes/comment.php b/wp-includes/comment.php index dc5f1c15c4..c054302647 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2195,7 +2195,7 @@ function wp_update_comment_count_now($post_id) { */ function discover_pingback_server_uri( $url, $deprecated = '' ) { if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '2.7' ); + _deprecated_argument( __FUNCTION__, '2.7.0' ); $pingback_str_dquote = 'rel="pingback"'; $pingback_str_squote = 'rel=\'pingback\''; diff --git a/wp-includes/cron.php b/wp-includes/cron.php index b08b038cfd..1778fbddc2 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -191,7 +191,7 @@ function wp_clear_scheduled_hook( $hook, $args = array() ) { // Backward compatibility // Previously this function took the arguments as discrete vars rather than an array like the rest of the API if ( !is_array($args) ) { - _deprecated_argument( __FUNCTION__, '3.0', __('This argument has changed to an array to match the behavior of the other cron functions.') ); + _deprecated_argument( __FUNCTION__, '3.0.0', __('This argument has changed to an array to match the behavior of the other cron functions.') ); $args = array_slice( func_get_args(), 1 ); } diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 0949f0bfe2..c61e5d30b8 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -61,7 +61,7 @@ function get_postdata($postid) { function start_wp() { global $wp_query; - _deprecated_function( __FUNCTION__, '1.5', __('new WordPress Loop') ); + _deprecated_function( __FUNCTION__, '1.5.0', __('new WordPress Loop') ); // Since the old style loop is being used, advance the query iterator here. $wp_query->next_post(); @@ -134,7 +134,7 @@ function the_category_head( $before = '', $after = '' ) { */ function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') { - _deprecated_function( __FUNCTION__, '2.0', 'previous_post_link()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'previous_post_link()' ); if ( empty($in_same_cat) || 'no' == $in_same_cat ) $in_same_cat = false; @@ -169,7 +169,7 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $ * @param string $excluded_categories */ function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') { - _deprecated_function( __FUNCTION__, '2.0', 'next_post_link()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'next_post_link()' ); if ( empty($in_same_cat) || 'no' == $in_same_cat ) $in_same_cat = false; @@ -202,7 +202,7 @@ function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat= * @return bool */ function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); $author_data = get_userdata($user_id); return ($author_data->user_level > 1); @@ -221,7 +221,7 @@ function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') { * @return bool */ function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); $author_data = get_userdata($user_id); return ($author_data->user_level >= 1); @@ -240,7 +240,7 @@ function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') { * @return bool */ function user_can_edit_post($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); $author_data = get_userdata($user_id); $post = get_post($post_id); @@ -268,7 +268,7 @@ function user_can_edit_post($user_id, $post_id, $blog_id = 1) { * @return bool */ function user_can_delete_post($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); // right now if one can edit, one can delete return user_can_edit_post($user_id, $post_id, $blog_id); @@ -287,7 +287,7 @@ function user_can_delete_post($user_id, $post_id, $blog_id = 1) { * @return bool */ function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); $author_data = get_userdata($user_id); return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id)); @@ -306,7 +306,7 @@ function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') { * @return bool returns true if $user_id can edit $post_id's date */ function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); $author_data = get_userdata($user_id); return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id)); @@ -325,7 +325,7 @@ function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) { * @return bool returns true if $user_id can edit $post_id's comments */ function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); // right now if one can edit a post, one can edit comments made on it return user_can_edit_post($user_id, $post_id, $blog_id); @@ -344,7 +344,7 @@ function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) { * @return bool returns true if $user_id can delete $post_id's comments */ function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); // right now if one can edit comments, one can delete comments return user_can_edit_post_comments($user_id, $post_id, $blog_id); @@ -362,7 +362,7 @@ function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) { * @return bool */ function user_can_edit_user($user_id, $other_user) { - _deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'current_user_can()' ); $user = get_userdata($user_id); $other = get_userdata($other_user); @@ -395,7 +395,7 @@ function user_can_edit_user($user_id, $other_user) { function get_linksbyname($cat_name = "noname", $before = '', $after = '
', $between = " ", $show_images = true, $orderby = 'id', $show_description = true, $show_rating = false, $limit = -1, $show_updated = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); $cat_id = -1; $cat = get_term_by('name', $cat_name, 'link_category'); @@ -417,7 +417,7 @@ function get_linksbyname($cat_name = "noname", $before = '', $after = '
', * @return string|null */ function wp_get_linksbyname($category, $args = '') { - _deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()'); + _deprecated_function(__FUNCTION__, '2.1.0', 'wp_list_bookmarks()'); $defaults = array( 'after' => '
', @@ -455,7 +455,7 @@ function wp_get_linksbyname($category, $args = '') { * @return array */ function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); $cat_id = -1; $cat = get_term_by('name', $cat_name, 'link_category'); @@ -506,7 +506,7 @@ function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit * @return array */ function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); $links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ; @@ -539,7 +539,7 @@ function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) { */ function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '
', $between = " ", $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated); } @@ -566,7 +566,7 @@ function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = */ function get_links_withrating($category = -1, $before = '', $after = '
', $between = " ", $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated); } @@ -581,7 +581,7 @@ function get_links_withrating($category = -1, $before = '', $after = '
', $ * @return int Only returns 0. */ function get_autotoggle($id = 0) { - _deprecated_function( __FUNCTION__, '2.1' ); + _deprecated_function( __FUNCTION__, '2.1.0' ); return 0; } @@ -615,7 +615,7 @@ function get_autotoggle($id = 0) { function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0, $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' ); $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children', 'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical'); @@ -633,7 +633,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde * @return false|null|string */ function wp_list_cats($args = '') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' ); $r = wp_parse_args( $args ); @@ -677,7 +677,7 @@ function wp_list_cats($args = '') { function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, $selected = 0, $exclude = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_dropdown_categories()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_dropdown_categories()' ); $show_option_all = ''; if ( $optionall ) @@ -709,7 +709,7 @@ function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = ' * @return null|string */ function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_authors()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_authors()' ); $args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image'); return wp_list_authors($args); @@ -727,7 +727,7 @@ function list_authors($optioncount = false, $exclude_admin = true, $show_fullnam * @return array */ function wp_get_post_cats($blogid = '1', $post_ID = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_get_post_categories()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_post_categories()' ); return wp_get_post_categories($post_ID); } @@ -745,7 +745,7 @@ function wp_get_post_cats($blogid = '1', $post_ID = 0) { * @return bool|mixed */ function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_set_post_categories()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_set_post_categories()' ); return wp_set_post_categories($post_ID, $post_categories); } @@ -765,7 +765,7 @@ function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array( * @return string|null */ function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) { - _deprecated_function( __FUNCTION__, '2.1', 'wp_get_archives()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_archives()' ); $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count'); return wp_get_archives($args); } @@ -783,7 +783,7 @@ function get_archives($type='', $limit='', $format='html', $before = '', $after * @return string|null */ function get_author_link($echo, $author_id, $author_nicename = '') { - _deprecated_function( __FUNCTION__, '2.1', 'get_author_posts_url()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_author_posts_url()' ); $link = get_author_posts_url($author_id, $author_nicename); @@ -810,7 +810,7 @@ function get_author_link($echo, $author_id, $author_nicename = '') { */ function link_pages($before='
', $after='
', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', $pagelink='%', $more_file='') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_link_pages()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_link_pages()' ); $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file'); return wp_link_pages($args); @@ -827,7 +827,7 @@ function link_pages($before='
', $after='
', $next_or_number='number', * @return string */ function get_settings($option) { - _deprecated_function( __FUNCTION__, '2.1', 'get_option()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' ); return get_option($option); } @@ -840,7 +840,7 @@ function get_settings($option) { * @see the_permalink() */ function permalink_link() { - _deprecated_function( __FUNCTION__, '1.2', 'the_permalink()' ); + _deprecated_function( __FUNCTION__, '1.2.0', 'the_permalink()' ); the_permalink(); } @@ -854,7 +854,7 @@ function permalink_link() { * @param string $deprecated */ function permalink_single_rss($deprecated = '') { - _deprecated_function( __FUNCTION__, '2.3', 'the_permalink_rss()' ); + _deprecated_function( __FUNCTION__, '2.3.0', 'the_permalink_rss()' ); the_permalink_rss(); } @@ -869,7 +869,7 @@ function permalink_single_rss($deprecated = '') { * @return null|string */ function wp_get_links($args = '') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_bookmarks()' ); if ( strpos( $args, '=' ) === false ) { $cat_id = $args; @@ -923,7 +923,7 @@ function wp_get_links($args = '') { */ function get_links($category = -1, $before = '', $after = '
', $between = ' ', $show_images = true, $orderby = 'name', $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); $order = 'ASC'; if ( substr($orderby, 0, 1) == '_' ) { @@ -1015,7 +1015,7 @@ function get_links($category = -1, $before = '', $after = '
', $between = ' * @param string $order Sort link categories by 'name' or 'id' */ function get_links_list($order = 'name') { - _deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_bookmarks()' ); $order = strtolower($order); @@ -1060,7 +1060,7 @@ function get_links_list($order = 'name') { * @param bool $count the number of links in the db */ function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) { - _deprecated_function( __FUNCTION__, '2.1' ); + _deprecated_function( __FUNCTION__, '2.1.0' ); } /** @@ -1074,7 +1074,7 @@ function links_popup_script($text = 'Links', $width=400, $height=400, $file='lin * @return mixed Value of the 'link_rating' field, false otherwise. */ function get_linkrating( $link ) { - _deprecated_function( __FUNCTION__, '2.1', 'sanitize_bookmark_field()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'sanitize_bookmark_field()' ); return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display'); } @@ -1089,7 +1089,7 @@ function get_linkrating( $link ) { * @return string */ function get_linkcatname($id = 0) { - _deprecated_function( __FUNCTION__, '2.1', 'get_category()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_category()' ); $id = (int) $id; @@ -1117,7 +1117,7 @@ function get_linkcatname($id = 0) { * @param string $link_text */ function comments_rss_link($link_text = 'Comments RSS') { - _deprecated_function( __FUNCTION__, '2.5', 'post_comments_feed_link()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'post_comments_feed_link()' ); post_comments_feed_link($link_text); } @@ -1133,7 +1133,7 @@ function comments_rss_link($link_text = 'Comments RSS') { * @return string */ function get_category_rss_link($echo = false, $cat_ID = 1) { - _deprecated_function( __FUNCTION__, '2.5', 'get_category_feed_link()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'get_category_feed_link()' ); $link = get_category_feed_link($cat_ID, 'rss2'); @@ -1154,7 +1154,7 @@ function get_category_rss_link($echo = false, $cat_ID = 1) { * @return string */ function get_author_rss_link($echo = false, $author_id = 1) { - _deprecated_function( __FUNCTION__, '2.5', 'get_author_feed_link()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'get_author_feed_link()' ); $link = get_author_feed_link($author_id); if ( $echo ) @@ -1172,7 +1172,7 @@ function get_author_rss_link($echo = false, $author_id = 1) { * @return string */ function comments_rss() { - _deprecated_function( __FUNCTION__, '2.2', 'get_post_comments_feed_link()' ); + _deprecated_function( __FUNCTION__, '2.2.0', 'get_post_comments_feed_link()' ); return esc_url( get_post_comments_feed_link() ); } @@ -1189,7 +1189,7 @@ function comments_rss() { * @return int The new user's ID. */ function create_user($username, $password, $email) { - _deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' ); + _deprecated_function( __FUNCTION__, '2.0.0', 'wp_create_user()' ); return wp_create_user($username, $password, $email); } @@ -1199,7 +1199,7 @@ function create_user($username, $password, $email) { * @deprecated 2.5.0 */ function gzip_compression() { - _deprecated_function( __FUNCTION__, '2.5' ); + _deprecated_function( __FUNCTION__, '2.5.0' ); return false; } @@ -1216,7 +1216,7 @@ function gzip_compression() { * @return array The comment data */ function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) { - _deprecated_function( __FUNCTION__, '2.7', 'get_comment()' ); + _deprecated_function( __FUNCTION__, '2.7.0', 'get_comment()' ); return get_comment($comment_ID, ARRAY_A); } @@ -1231,7 +1231,7 @@ function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = fals * @return string category name */ function get_catname( $cat_ID ) { - _deprecated_function( __FUNCTION__, '2.8', 'get_cat_name()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_cat_name()' ); return get_cat_name( $cat_ID ); } @@ -1249,7 +1249,7 @@ function get_catname( $cat_ID ) { * @return string */ function get_category_children( $id, $before = '/', $after = '', $visited = array() ) { - _deprecated_function( __FUNCTION__, '2.8', 'get_term_children()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_term_children()' ); if ( 0 == $id ) return ''; @@ -1284,7 +1284,7 @@ function get_category_children( $id, $before = '/', $after = '', $visited = arra * @return object List of all of the category IDs. */ function get_all_category_ids() { - _deprecated_function( __FUNCTION__, '4.0', 'get_terms()' ); + _deprecated_function( __FUNCTION__, '4.0.0', 'get_terms()' ); if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) { $cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') ); @@ -1304,7 +1304,7 @@ function get_all_category_ids() { * @return string The author's description. */ function get_the_author_description() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'description\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'description\')' ); return get_the_author_meta('description'); } @@ -1316,7 +1316,7 @@ function get_the_author_description() { * @see the_author_meta() */ function the_author_description() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'description\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'description\')' ); the_author_meta('description'); } @@ -1330,7 +1330,7 @@ function the_author_description() { * @return string The author's login name (username). */ function get_the_author_login() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'login\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'login\')' ); return get_the_author_meta('login'); } @@ -1342,7 +1342,7 @@ function get_the_author_login() { * @see the_author_meta() */ function the_author_login() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'login\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'login\')' ); the_author_meta('login'); } @@ -1356,7 +1356,7 @@ function the_author_login() { * @return string The author's first name. */ function get_the_author_firstname() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'first_name\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'first_name\')' ); return get_the_author_meta('first_name'); } @@ -1368,7 +1368,7 @@ function get_the_author_firstname() { * @see the_author_meta() */ function the_author_firstname() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'first_name\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'first_name\')' ); the_author_meta('first_name'); } @@ -1382,7 +1382,7 @@ function the_author_firstname() { * @return string The author's last name. */ function get_the_author_lastname() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'last_name\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'last_name\')' ); return get_the_author_meta('last_name'); } @@ -1394,7 +1394,7 @@ function get_the_author_lastname() { * @see the_author_meta() */ function the_author_lastname() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'last_name\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'last_name\')' ); the_author_meta('last_name'); } @@ -1408,7 +1408,7 @@ function the_author_lastname() { * @return string The author's nickname. */ function get_the_author_nickname() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'nickname\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'nickname\')' ); return get_the_author_meta('nickname'); } @@ -1420,7 +1420,7 @@ function get_the_author_nickname() { * @see the_author_meta() */ function the_author_nickname() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'nickname\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'nickname\')' ); the_author_meta('nickname'); } @@ -1434,7 +1434,7 @@ function the_author_nickname() { * @return string The author's username. */ function get_the_author_email() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'email\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'email\')' ); return get_the_author_meta('email'); } @@ -1446,7 +1446,7 @@ function get_the_author_email() { * @see the_author_meta() */ function the_author_email() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'email\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'email\')' ); the_author_meta('email'); } @@ -1460,7 +1460,7 @@ function the_author_email() { * @return string The author's ICQ number. */ function get_the_author_icq() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'icq\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'icq\')' ); return get_the_author_meta('icq'); } @@ -1472,7 +1472,7 @@ function get_the_author_icq() { * @see the_author_meta() */ function the_author_icq() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'icq\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'icq\')' ); the_author_meta('icq'); } @@ -1486,7 +1486,7 @@ function the_author_icq() { * @return string The author's Yahoo! IM name. */ function get_the_author_yim() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'yim\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'yim\')' ); return get_the_author_meta('yim'); } @@ -1498,7 +1498,7 @@ function get_the_author_yim() { * @see the_author_meta() */ function the_author_yim() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'yim\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'yim\')' ); the_author_meta('yim'); } @@ -1512,7 +1512,7 @@ function the_author_yim() { * @return string The author's MSN address. */ function get_the_author_msn() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'msn\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'msn\')' ); return get_the_author_meta('msn'); } @@ -1524,7 +1524,7 @@ function get_the_author_msn() { * @see the_author_meta() */ function the_author_msn() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'msn\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'msn\')' ); the_author_meta('msn'); } @@ -1538,7 +1538,7 @@ function the_author_msn() { * @return string The author's AIM address. */ function get_the_author_aim() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'aim\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'aim\')' ); return get_the_author_meta('aim'); } @@ -1550,7 +1550,7 @@ function get_the_author_aim() { * @see the_author_meta() */ function the_author_aim() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'aim\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'aim\')' ); the_author_meta('aim'); } @@ -1565,7 +1565,7 @@ function the_author_aim() { * @return string The author's display name. */ function get_author_name( $auth_id = false ) { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'display_name\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'display_name\')' ); return get_the_author_meta('display_name', $auth_id); } @@ -1579,7 +1579,7 @@ function get_author_name( $auth_id = false ) { * @return string The URL to the author's page. */ function get_the_author_url() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'url\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'url\')' ); return get_the_author_meta('url'); } @@ -1591,7 +1591,7 @@ function get_the_author_url() { * @see the_author_meta() */ function the_author_url() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'url\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'url\')' ); the_author_meta('url'); } @@ -1605,7 +1605,7 @@ function the_author_url() { * @return string|int The author's ID. */ function get_the_author_ID() { - _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'ID\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'ID\')' ); return get_the_author_meta('ID'); } @@ -1617,7 +1617,7 @@ function get_the_author_ID() { * @see the_author_meta() */ function the_author_ID() { - _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'ID\')' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta(\'ID\')' ); the_author_meta('ID'); } @@ -1650,7 +1650,7 @@ function the_author_ID() { * @param int $encode_html Optional. How to encode the content. */ function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { - _deprecated_function( __FUNCTION__, '2.9', 'the_content_feed' ); + _deprecated_function( __FUNCTION__, '2.9.0', 'the_content_feed' ); $content = get_the_content($more_link_text, $stripteaser); $content = apply_filters('the_content_rss', $content); if ( $cut && !$encode_html ) @@ -1696,7 +1696,7 @@ function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file * @return string HTML stripped out of content with links at the bottom. */ function make_url_footnote( $content ) { - _deprecated_function( __FUNCTION__, '2.9', '' ); + _deprecated_function( __FUNCTION__, '2.9.0', '' ); preg_match_all( '/(.+?)<\/a>/', $content, $matches ); $links_summary = "\n"; for ( $i = 0, $c = count( $matches[0] ); $i < $c; $i++ ) { @@ -1735,7 +1735,7 @@ function make_url_footnote( $content ) { * @return string Translated context string without pipe */ function _c( $text, $domain = 'default' ) { - _deprecated_function( __FUNCTION__, '2.9', '_x()' ); + _deprecated_function( __FUNCTION__, '2.9.0', '_x()' ); return before_last_bar( translate( $text, $domain ) ); } @@ -1752,7 +1752,7 @@ function _c( $text, $domain = 'default' ) { * @return string Translated text */ function translate_with_context( $text, $domain = 'default' ) { - _deprecated_function( __FUNCTION__, '2.9', '_x()' ); + _deprecated_function( __FUNCTION__, '2.9.0', '_x()' ); return before_last_bar( translate( $text, $domain ) ); } @@ -1773,7 +1773,7 @@ function translate_with_context( $text, $domain = 'default' ) { * @return string The translated singular or plural form. */ function _nc( $single, $plural, $number, $domain = 'default' ) { - _deprecated_function( __FUNCTION__, '2.9', '_nx()' ); + _deprecated_function( __FUNCTION__, '2.9.0', '_nx()' ); return before_last_bar( _n( $single, $plural, $number, $domain ) ); } @@ -1785,7 +1785,7 @@ function _nc( $single, $plural, $number, $domain = 'default' ) { * @see _n() */ function __ngettext() { - _deprecated_function( __FUNCTION__, '2.8', '_n()' ); + _deprecated_function( __FUNCTION__, '2.8.0', '_n()' ); $args = func_get_args(); return call_user_func_array('_n', $args); } @@ -1798,7 +1798,7 @@ function __ngettext() { * @see _n_noop() */ function __ngettext_noop() { - _deprecated_function( __FUNCTION__, '2.8', '_n_noop()' ); + _deprecated_function( __FUNCTION__, '2.8.0', '_n_noop()' ); $args = func_get_args(); return call_user_func_array('_n_noop', $args); @@ -1814,7 +1814,7 @@ function __ngettext_noop() { * @return array List of all options. */ function get_alloptions() { - _deprecated_function( __FUNCTION__, '3.0', 'wp_load_alloptions()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'wp_load_alloptions()' ); return wp_load_alloptions(); } @@ -1832,7 +1832,7 @@ function get_alloptions() { * @return string */ function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_link()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_link()' ); $id = (int) $id; $_post = get_post($id); @@ -1860,7 +1860,7 @@ function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, * @return array Icon URL and full path to file, respectively. */ function get_attachment_icon_src( $id = 0, $fullsize = false ) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image_src()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image_src()' ); $id = (int) $id; if ( !$post = get_post($id) ) return false; @@ -1902,7 +1902,7 @@ function get_attachment_icon_src( $id = 0, $fullsize = false ) { * @return false|string HTML content. */ function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' ); $id = (int) $id; if ( !$post = get_post($id) ) return false; @@ -1958,7 +1958,7 @@ function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) { * @return false|string */ function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' ); $id = (int) $id; if ( !$post = get_post($id) ) return false; @@ -1986,7 +1986,7 @@ function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) * @return object|array Bookmark object or array, depending on the type specified by `$output`. */ function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) { - _deprecated_function( __FUNCTION__, '2.1', 'get_bookmark()' ); + _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmark()' ); return get_bookmark($bookmark_id, $output, $filter); } @@ -2002,7 +2002,7 @@ function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) { * @return string The cleaned URL. */ function sanitize_url( $url, $protocols = null ) { - _deprecated_function( __FUNCTION__, '2.8', 'esc_url_raw()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'esc_url_raw()' ); return esc_url_raw( $url, $protocols ); } @@ -2024,9 +2024,9 @@ function sanitize_url( $url, $protocols = null ) { */ function clean_url( $url, $protocols = null, $context = 'display' ) { if ( $context == 'db' ) - _deprecated_function( 'clean_url( $context = \'db\' )', '3.0', 'esc_url_raw()' ); + _deprecated_function( 'clean_url( $context = \'db\' )', '3.0.0', 'esc_url_raw()' ); else - _deprecated_function( __FUNCTION__, '3.0', 'esc_url()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'esc_url()' ); return esc_url( $url, $protocols, $context ); } @@ -2043,7 +2043,7 @@ function clean_url( $url, $protocols = null, $context = 'display' ) { * @return string Escaped text. */ function js_escape( $text ) { - _deprecated_function( __FUNCTION__, '2.8', 'esc_js()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'esc_js()' ); return esc_js( $text ); } @@ -2060,7 +2060,7 @@ function js_escape( $text ) { * @return string Escaped `$string`. */ function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { - _deprecated_function( __FUNCTION__, '2.8', 'esc_html()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'esc_html()' ); if ( func_num_args() > 1 ) { // Maintain back-compat for people passing additional arguments. $args = func_get_args(); return call_user_func_array( '_wp_specialchars', $args ); @@ -2080,7 +2080,7 @@ function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false * @return string */ function attribute_escape( $text ) { - _deprecated_function( __FUNCTION__, '2.8', 'esc_attr()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'esc_attr()' ); return esc_attr( $text ); } @@ -2104,7 +2104,7 @@ function attribute_escape( $text ) { * @param mixed $params ,... Widget parameters. */ function register_sidebar_widget($name, $output_callback, $classname = '') { - _deprecated_function( __FUNCTION__, '2.8', 'wp_register_sidebar_widget()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'wp_register_sidebar_widget()' ); // Compat if ( is_array($name) ) { if ( count($name) == 3 ) @@ -2135,7 +2135,7 @@ function register_sidebar_widget($name, $output_callback, $classname = '') { * @param int|string $id Widget ID. */ function unregister_sidebar_widget($id) { - _deprecated_function( __FUNCTION__, '2.8', 'wp_unregister_sidebar_widget()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_sidebar_widget()' ); return wp_unregister_sidebar_widget($id); } @@ -2159,7 +2159,7 @@ function unregister_sidebar_widget($id) { * @param int $height Widget height. */ function register_widget_control($name, $control_callback, $width = '', $height = '') { - _deprecated_function( __FUNCTION__, '2.8', 'wp_register_widget_control()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'wp_register_widget_control()' ); // Compat if ( is_array($name) ) { if ( count($name) == 3 ) @@ -2192,7 +2192,7 @@ function register_widget_control($name, $control_callback, $width = '', $height * @param int|string $id Widget ID. */ function unregister_widget_control($id) { - _deprecated_function( __FUNCTION__, '2.8', 'wp_unregister_widget_control()' ); + _deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_widget_control()' ); return wp_unregister_widget_control($id); } @@ -2209,7 +2209,7 @@ function unregister_widget_control($id) { * @return bool True deletion completed and false if user_id is not a number. */ function delete_usermeta( $user_id, $meta_key, $meta_value = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'delete_user_meta()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'delete_user_meta()' ); global $wpdb; if ( !is_numeric( $user_id ) ) return false; @@ -2255,7 +2255,7 @@ function delete_usermeta( $user_id, $meta_key, $meta_value = '' ) { * @return mixed */ function get_usermeta( $user_id, $meta_key = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'get_user_meta()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'get_user_meta()' ); global $wpdb; $user_id = (int) $user_id; @@ -2308,7 +2308,7 @@ function get_usermeta( $user_id, $meta_key = '' ) { * @return bool True on successful update, false on failure. */ function update_usermeta( $user_id, $meta_key, $meta_value ) { - _deprecated_function( __FUNCTION__, '3.0', 'update_user_meta()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'update_user_meta()' ); global $wpdb; if ( !is_numeric( $user_id ) ) return false; @@ -2363,7 +2363,7 @@ function update_usermeta( $user_id, $meta_key, $meta_value ) { * @return array List of users that are part of that site ID */ function get_users_of_blog( $id = '' ) { - _deprecated_function( __FUNCTION__, '3.1', 'get_users()' ); + _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb, $blog_id; if ( empty($id) ) @@ -2383,7 +2383,7 @@ function get_users_of_blog( $id = '' ) { * @param bool $add Optional, default is true. Add or remove links. Defaults to true. */ function automatic_feed_links( $add = true ) { - _deprecated_function( __FUNCTION__, '3.0', "add_theme_support( 'automatic-feed-links' )" ); + _deprecated_function( __FUNCTION__, '3.0.0', "add_theme_support( 'automatic-feed-links' )" ); if ( $add ) add_theme_support( 'automatic-feed-links' ); @@ -2403,7 +2403,7 @@ function automatic_feed_links( $add = true ) { * @return string The author's field from the current author's DB object. */ function get_profile( $field, $user = false ) { - _deprecated_function( __FUNCTION__, '3.0', 'get_the_author_meta()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'get_the_author_meta()' ); if ( $user ) { $user = get_user_by( 'login', $user ); $user = $user->ID; @@ -2422,7 +2422,7 @@ function get_profile( $field, $user = false ) { * @return int Number of posts the given user has written. */ function get_usernumposts( $userid ) { - _deprecated_function( __FUNCTION__, '3.0', 'count_user_posts()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' ); return count_user_posts( $userid ); } @@ -2455,7 +2455,7 @@ function funky_javascript_callback($matches) { * @return string Fixed text. */ function funky_javascript_fix($text) { - _deprecated_function( __FUNCTION__, '3.0' ); + _deprecated_function( __FUNCTION__, '3.0.0' ); // Fixes for browsers' JavaScript bugs. global $is_macIE, $is_winIE; @@ -2478,7 +2478,7 @@ function funky_javascript_fix($text) { * @return bool Whether the taxonomy exists. */ function is_taxonomy( $taxonomy ) { - _deprecated_function( __FUNCTION__, '3.0', 'taxonomy_exists()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' ); return taxonomy_exists( $taxonomy ); } @@ -2495,7 +2495,7 @@ function is_taxonomy( $taxonomy ) { * @return mixed Get the term id or Term Object, if exists. */ function is_term( $term, $taxonomy = '', $parent = 0 ) { - _deprecated_function( __FUNCTION__, '3.0', 'term_exists()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' ); return term_exists( $term, $taxonomy, $parent ); } @@ -2512,7 +2512,7 @@ function is_term( $term, $taxonomy = '', $parent = 0 ) { * @return bool */ function is_plugin_page() { - _deprecated_function( __FUNCTION__, '3.1' ); + _deprecated_function( __FUNCTION__, '3.1.0' ); global $plugin_page; @@ -2535,7 +2535,7 @@ function is_plugin_page() { * @return bool Always return True */ function update_category_cache() { - _deprecated_function( __FUNCTION__, '3.1' ); + _deprecated_function( __FUNCTION__, '3.1.0' ); return true; } @@ -2549,7 +2549,7 @@ function update_category_cache() { * @return bool */ function wp_timezone_supported() { - _deprecated_function( __FUNCTION__, '3.2' ); + _deprecated_function( __FUNCTION__, '3.2.0' ); return true; } @@ -2569,7 +2569,7 @@ function wp_timezone_supported() { * @param bool $extended Optional. Unused. */ function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) { - _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) ); } @@ -2584,7 +2584,7 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button * @return array of arrays. The array is indexed by user_id, containing $metavalues object arrays. */ function get_user_metavalues($ids) { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); $objects = array(); @@ -2618,7 +2618,7 @@ function get_user_metavalues($ids) { * @return object|array The now sanitized User Object or Array (will be the same type as $user) */ function sanitize_user_object($user, $context = 'display') { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); if ( is_object($user) ) { if ( !isset($user->ID) ) @@ -2657,7 +2657,7 @@ function sanitize_user_object($user, $context = 'display') { * @return string */ function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); $posts = get_boundary_post($in_same_cat, $excluded_categories, $start); // If there is no post stop. @@ -2695,7 +2695,7 @@ function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $ex * @param string $excluded_categories Optional. Excluded categories IDs. */ function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); echo get_boundary_post_rel_link($title, $in_same_cat, $excluded_categories, true); } @@ -2709,7 +2709,7 @@ function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_ * @return string */ function get_index_rel_link() { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); $link = "\n"; return apply_filters( "index_rel_link", $link ); @@ -2722,7 +2722,7 @@ function get_index_rel_link() { * @deprecated 3.3.0 */ function index_rel_link() { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); echo get_index_rel_link(); } @@ -2737,7 +2737,7 @@ function index_rel_link() { * @return string */ function get_parent_post_rel_link( $title = '%title' ) { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); if ( ! empty( $GLOBALS['post'] ) && ! empty( $GLOBALS['post']->post_parent ) ) $post = get_post($GLOBALS['post']->post_parent); @@ -2767,7 +2767,7 @@ function get_parent_post_rel_link( $title = '%title' ) { * @param string $title Optional. Link title format. Default '%title'. */ function parent_post_rel_link( $title = '%title' ) { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); echo get_parent_post_rel_link($title); } @@ -2781,7 +2781,7 @@ function parent_post_rel_link( $title = '%title' ) { * @param WP_Admin_Bar $wp_admin_bar WP_Admin_Bar instance. */ function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); $user_id = get_current_user_id(); @@ -2806,7 +2806,7 @@ function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) { * @return bool True if the current users belong to $blog_id, false if not. */ function is_blog_user( $blog_id = 0 ) { - _deprecated_function( __FUNCTION__, '3.3', 'is_user_member_of_blog()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'is_user_member_of_blog()' ); return is_user_member_of_blog( get_current_user_id(), $blog_id ); } @@ -2876,7 +2876,7 @@ function debug_fclose( $fp ) { * @return array Theme list with theme data. */ function get_themes() { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_themes()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_themes()' ); global $wp_themes; if ( isset( $wp_themes ) ) @@ -2907,7 +2907,7 @@ function get_themes() { * @return array|null Null, if theme name does not exist. Theme data, if exists. */ function get_theme( $theme ) { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme( $stylesheet )' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme( $stylesheet )' ); $themes = get_themes(); if ( is_array( $themes ) && array_key_exists( $theme, $themes ) ) @@ -2925,7 +2925,7 @@ function get_theme( $theme ) { * @return string */ function get_current_theme() { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); if ( $theme = get_option( 'current_theme' ) ) return $theme; @@ -2946,7 +2946,7 @@ function get_current_theme() { * @return string The pre block without paragraph/line-break conversion. */ function clean_pre($matches) { - _deprecated_function( __FUNCTION__, '3.4' ); + _deprecated_function( __FUNCTION__, '3.4.0' ); if ( is_array($matches) ) $text = $matches[1] . $matches[2] . ""; @@ -2973,7 +2973,7 @@ function clean_pre($matches) { * @param callable $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional. */ function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) { - _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-header\', $args )' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'add_theme_support( \'custom-header\', $args )' ); $args = array( 'wp-head-callback' => $wp_head_callback, 'admin-head-callback' => $admin_head_callback, @@ -2993,7 +2993,7 @@ function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admi * @return null|bool Whether support was removed. */ function remove_custom_image_header() { - _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-header\' )' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( \'custom-header\' )' ); return remove_theme_support( 'custom-header' ); } @@ -3009,7 +3009,7 @@ function remove_custom_image_header() { * @param callable $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional. */ function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) { - _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'add_theme_support( \'custom-background\', $args )' ); $args = array(); if ( $wp_head_callback ) $args['wp-head-callback'] = $wp_head_callback; @@ -3030,7 +3030,7 @@ function add_custom_background( $wp_head_callback = '', $admin_head_callback = ' * @return null|bool Whether support was removed. */ function remove_custom_background() { - _deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-background\' )' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( \'custom-background\' )' ); return remove_theme_support( 'custom-background' ); } @@ -3045,7 +3045,7 @@ function remove_custom_background() { * @return array Theme data. */ function get_theme_data( $theme_file ) { - _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); $theme = new WP_Theme( basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) ); $theme_data = array( @@ -3082,7 +3082,7 @@ function get_theme_data( $theme_file ) { * @param array $pages list of page objects */ function update_page_cache( &$pages ) { - _deprecated_function( __FUNCTION__, '3.4', 'update_post_cache()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'update_post_cache()' ); update_post_cache( $pages ); } @@ -3100,7 +3100,7 @@ function update_page_cache( &$pages ) { * @param int $id Page ID to clean */ function clean_page_cache( $id ) { - _deprecated_function( __FUNCTION__, '3.4', 'clean_post_cache()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'clean_post_cache()' ); clean_post_cache( $id ); } @@ -3132,7 +3132,7 @@ function wp_explain_nonce( $action ) { * @param int $post_id An optional post ID. */ function sticky_class( $post_id = null ) { - _deprecated_function( __FUNCTION__, '3.5', 'post_class()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'post_class()' ); if ( is_sticky( $post_id ) ) echo ' sticky'; } @@ -3150,7 +3150,7 @@ function sticky_class( $post_id = null ) { * @param WP_Post &$post Post object, passed by reference (unused). */ function _get_post_ancestors( &$post ) { - _deprecated_function( __FUNCTION__, '3.5' ); + _deprecated_function( __FUNCTION__, '3.5.0' ); } /** @@ -3164,7 +3164,7 @@ function _get_post_ancestors( &$post ) { * @return resource The resulting image resource on success, Error string on failure. */ function wp_load_image( $file ) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_get_image_editor()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'wp_get_image_editor()' ); if ( is_numeric( $file ) ) $file = get_attached_file( $file ); @@ -3214,7 +3214,7 @@ function wp_load_image( $file ) { * @return mixed WP_Error on failure. String with new destination path. */ function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_get_image_editor()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'wp_get_image_editor()' ); $editor = wp_get_image_editor( $file ); if ( is_wp_error( $editor ) ) @@ -3249,7 +3249,7 @@ function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $de * @return WP_Post|null Post object or array holding post contents and information */ function wp_get_single_post( $postid = 0, $mode = OBJECT ) { - _deprecated_function( __FUNCTION__, '3.5', 'get_post()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' ); return get_post( $postid, $mode ); } @@ -3265,7 +3265,7 @@ function wp_get_single_post( $postid = 0, $mode = OBJECT ) { * @return bool False if does not authenticate, true if username and password authenticates. */ function user_pass_ok($user_login, $user_pass) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_authenticate()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'wp_authenticate()' ); $user = wp_authenticate( $user_login, $user_pass ); if ( is_wp_error( $user ) ) return false; @@ -3292,7 +3292,7 @@ function _save_post_hook() {} * @return bool */ function gd_edit_image_support($mime_type) { - _deprecated_function( __FUNCTION__, '3.5', 'wp_image_editor_supports()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'wp_image_editor_supports()' ); if ( function_exists('imagetypes') ) { switch( $mime_type ) { @@ -3327,7 +3327,7 @@ function gd_edit_image_support($mime_type) { * @return string A shorthand byte value. */ function wp_convert_bytes_to_hr( $bytes ) { - _deprecated_function( __FUNCTION__, '3.6', 'size_format()' ); + _deprecated_function( __FUNCTION__, '3.6.0', 'size_format()' ); $units = array( 0 => 'B', 1 => 'KB', 2 => 'MB', 3 => 'GB', 4 => 'TB' ); $log = log( $bytes, KB_IN_BYTES ); @@ -3355,7 +3355,7 @@ function wp_convert_bytes_to_hr( $bytes ) { * @return string Trimmed search terms. */ function _search_terms_tidy( $t ) { - _deprecated_function( __FUNCTION__, '3.7' ); + _deprecated_function( __FUNCTION__, '3.7.0' ); return trim( $t, "\"'\n\r " ); } @@ -3372,7 +3372,7 @@ function _search_terms_tidy( $t ) { */ function rich_edit_exists() { global $wp_rich_edit_exists; - _deprecated_function( __FUNCTION__, '3.9' ); + _deprecated_function( __FUNCTION__, '3.9.0' ); if ( ! isset( $wp_rich_edit_exists ) ) $wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' ); @@ -3406,7 +3406,7 @@ function default_topic_count_text( $count ) { * @return string The very same text. */ function format_to_post( $content ) { - _deprecated_function( __FUNCTION__, '3.9' ); + _deprecated_function( __FUNCTION__, '3.9.0' ); return $content; } @@ -3421,7 +3421,7 @@ function format_to_post( $content ) { * @return string text, safe for inclusion in LIKE query. */ function like_escape($text) { - _deprecated_function( __FUNCTION__, '4.0', 'wpdb::esc_like()' ); + _deprecated_function( __FUNCTION__, '4.0.0', 'wpdb::esc_like()' ); return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text ); } @@ -3438,7 +3438,7 @@ function like_escape($text) { * @return bool Whether SSL access is available. */ function url_is_accessable_via_ssl( $url ) { - _deprecated_function( __FUNCTION__, '4.0' ); + _deprecated_function( __FUNCTION__, '4.0.0' ); $response = wp_remote_get( set_url_scheme( $url, 'https' ) ); @@ -3462,7 +3462,7 @@ function url_is_accessable_via_ssl( $url ) { * @deprecated 4.3.0 */ function preview_theme() { - _deprecated_function( __FUNCTION__, '4.3' ); + _deprecated_function( __FUNCTION__, '4.3.0' ); } /** @@ -3475,7 +3475,7 @@ function preview_theme() { * @return string */ function _preview_theme_template_filter() { - _deprecated_function( __FUNCTION__, '4.3' ); + _deprecated_function( __FUNCTION__, '4.3.0' ); return ''; } @@ -3489,7 +3489,7 @@ function _preview_theme_template_filter() { * @return string */ function _preview_theme_stylesheet_filter() { - _deprecated_function( __FUNCTION__, '4.3' ); + _deprecated_function( __FUNCTION__, '4.3.0' ); return ''; } @@ -3504,7 +3504,7 @@ function _preview_theme_stylesheet_filter() { * @return string */ function preview_theme_ob_filter( $content ) { - _deprecated_function( __FUNCTION__, '4.3' ); + _deprecated_function( __FUNCTION__, '4.3.0' ); return $content; } @@ -3521,7 +3521,7 @@ function preview_theme_ob_filter( $content ) { * @return string */ function preview_theme_ob_filter_callback( $matches ) { - _deprecated_function( __FUNCTION__, '4.3' ); + _deprecated_function( __FUNCTION__, '4.3.0' ); return ''; } @@ -3538,7 +3538,7 @@ function preview_theme_ob_filter_callback( $matches ) { * @return string The formatted text after filter is applied. */ function wp_richedit_pre($text) { - _deprecated_function( __FUNCTION__, '4.3', 'format_for_editor()' ); + _deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' ); if ( empty( $text ) ) { /** @@ -3581,7 +3581,7 @@ function wp_richedit_pre($text) { * @return string Formatted text after filter applied. */ function wp_htmledit_pre($output) { - _deprecated_function( __FUNCTION__, '4.3', 'format_for_editor()' ); + _deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' ); if ( !empty($output) ) $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // convert only < > & @@ -3608,7 +3608,7 @@ function wp_htmledit_pre($output) { * @return string|false */ function post_permalink( $post_id = 0 ) { - _deprecated_function( __FUNCTION__, '4.4', 'get_permalink()' ); + _deprecated_function( __FUNCTION__, '4.4.0', 'get_permalink()' ); return get_permalink( $post_id ); } @@ -3630,7 +3630,7 @@ function post_permalink( $post_id = 0 ) { * @return bool|string False on failure and string of headers if HEAD request. */ function wp_get_http( $url, $file_path = false, $red = 1 ) { - _deprecated_function( __FUNCTION__, '4.4', 'WP_Http' ); + _deprecated_function( __FUNCTION__, '4.4.0', 'WP_Http' ); @set_time_limit( 60 ); @@ -3684,7 +3684,7 @@ function wp_get_http( $url, $file_path = false, $red = 1 ) { * @return bool True if forced, false if not forced. */ function force_ssl_login( $force = null ) { - _deprecated_function( __FUNCTION__, '4.4', 'force_ssl_admin()' ); + _deprecated_function( __FUNCTION__, '4.4.0', 'force_ssl_admin()' ); return force_ssl_admin( $force ); } @@ -3697,7 +3697,7 @@ function force_ssl_login( $force = null ) { * @return string Full path to comments popup template file. */ function get_comments_popup_template() { - _deprecated_function( __FUNCTION__, '4.5' ); + _deprecated_function( __FUNCTION__, '4.5.0' ); return ''; } @@ -3711,7 +3711,7 @@ function get_comments_popup_template() { * @return bool */ function is_comments_popup() { - _deprecated_function( __FUNCTION__, '4.5' ); + _deprecated_function( __FUNCTION__, '4.5.0' ); return false; } @@ -3723,7 +3723,7 @@ function is_comments_popup() { * @deprecated 4.5.0 */ function comments_popup_script() { - _deprecated_function( __FUNCTION__, '4.5' ); + _deprecated_function( __FUNCTION__, '4.5.0' ); } /** @@ -3736,7 +3736,7 @@ function comments_popup_script() { * @return string Content that has filtered links. */ function popuplinks( $text ) { - _deprecated_function( __FUNCTION__, '4.5' ); + _deprecated_function( __FUNCTION__, '4.5.0' ); $text = preg_replace('//i', "", $text); return $text; } diff --git a/wp-includes/embed-template.php b/wp-includes/embed-template.php index 312c45c6f2..fb20991584 100644 --- a/wp-includes/embed-template.php +++ b/wp-includes/embed-template.php @@ -8,6 +8,6 @@ * @deprecated 4.5.0 Moved to wp-includes/theme-compat/embed.php */ -_deprecated_file( basename( __FILE__ ), '4.5', 'wp-includes/theme-compat/embed.php' ); +_deprecated_file( basename( __FILE__ ), '4.5.0', 'wp-includes/theme-compat/embed.php' ); include( ABSPATH . WPINC . '/theme-compat/embed.php' ); diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 8df2c25e44..0eea911b40 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2851,7 +2851,7 @@ function convert_smilies( $text ) { */ function is_email( $email, $deprecated = false ) { if ( ! empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '3.0' ); + _deprecated_argument( __FUNCTION__, '3.0.0' ); // Test for the minimum length the email can be if ( strlen( $email ) < 3 ) { diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 24a0431fea..0a0a2d4fcb 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -646,7 +646,7 @@ function do_enclose( $content, $post_ID ) { */ function wp_get_http_headers( $url, $deprecated = false ) { if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '2.7' ); + _deprecated_argument( __FUNCTION__, '2.7.0' ); $response = wp_safe_remote_head( $url ); @@ -2115,7 +2115,7 @@ function wp_unique_filename( $dir, $filename, $unique_filename_callback = null ) */ function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '2.0' ); + _deprecated_argument( __FUNCTION__, '2.0.0' ); if ( empty( $name ) ) return array( 'error' => __( 'Empty filename' ) ); @@ -3847,7 +3847,7 @@ function _deprecated_file( $file, $version, $replacement = null, $message = '' ) * For example: * * if ( ! empty( $deprecated ) ) { - * _deprecated_argument( __FUNCTION__, '3.0' ); + * _deprecated_argument( __FUNCTION__, '3.0.0' ); * } * * diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php index ac1c5726e6..767d995d67 100644 --- a/wp-includes/functions.wp-scripts.php +++ b/wp-includes/functions.wp-scripts.php @@ -43,7 +43,7 @@ function _wp_scripts_maybe_doing_it_wrong( $function ) { 'wp_enqueue_scripts', 'admin_enqueue_scripts', 'login_enqueue_scripts' - ), '3.3' ); + ), '3.3.0' ); } /** @@ -112,7 +112,7 @@ function wp_add_inline_script( $handle, $data, $position = 'after' ) { __( 'Do not pass %1$s tags to %2$s.' ), '<script>', 'wp_add_inline_script()' - ), '4.5' ); + ), '4.5.0' ); $data = trim( preg_replace( '#]*>(.*)#is', '$1', $data ) ); } @@ -226,7 +226,7 @@ function wp_deregister_script( $handle ) { if ( in_array( $handle, $no ) ) { $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), "$handle", 'wp_enqueue_scripts' ); - _doing_it_wrong( __FUNCTION__, $message, '3.6' ); + _doing_it_wrong( __FUNCTION__, $message, '3.6.0' ); return; } } diff --git a/wp-includes/functions.wp-styles.php b/wp-includes/functions.wp-styles.php index 2e8471a10e..5312f82330 100644 --- a/wp-includes/functions.wp-styles.php +++ b/wp-includes/functions.wp-styles.php @@ -89,7 +89,7 @@ function wp_add_inline_style( $handle, $data ) { __( 'Do not pass %1$s tags to %2$s.' ), '<style>', 'wp_add_inline_style()' - ), '3.7' ); + ), '3.7.0' ); $data = trim( preg_replace( '#]*>(.*)#is', '$1', $data ) ); } diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index b6fc4d0cb9..4f2be9fb3f 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -647,7 +647,7 @@ function get_bloginfo( $show = '', $filter = 'raw' ) { switch( $show ) { case 'home' : // DEPRECATED case 'siteurl' : // DEPRECATED - _deprecated_argument( __FUNCTION__, '2.2', sprintf( + _deprecated_argument( __FUNCTION__, '2.2.0', sprintf( /* translators: 1: 'siteurl'/'home' argument, 2: bloginfo() function name, 3: 'url' argument */ __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s option instead.' ), '' . $show . '', @@ -720,7 +720,7 @@ function get_bloginfo( $show = '', $filter = 'raw' ) { } break; case 'text_direction': - _deprecated_argument( __FUNCTION__, '2.2', sprintf( + _deprecated_argument( __FUNCTION__, '2.2.0', sprintf( /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name */ __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ), '' . $show . '', diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 7ce5839b1c..7976d69ed5 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -700,7 +700,7 @@ function load_plugin_textdomain( $domain, $deprecated = false, $plugin_rel_path if ( false !== $plugin_rel_path ) { $path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/' ); } elseif ( false !== $deprecated ) { - _deprecated_argument( __FUNCTION__, '2.7' ); + _deprecated_argument( __FUNCTION__, '2.7.0' ); $path = ABSPATH . trim( $deprecated, '/' ); } else { $path = WP_PLUGIN_DIR; diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 164bcd905c..907502357a 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1354,7 +1354,7 @@ function edit_post_link( $text = null, $before = '', $after = '', $id = 0, $clas */ function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) { if ( ! empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '3.0' ); + _deprecated_argument( __FUNCTION__, '3.0.0' ); if ( !$post = get_post( $id ) ) return; @@ -1601,7 +1601,7 @@ function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo if ( ! empty( $excluded_terms ) && ! is_array( $excluded_terms ) ) { // back-compat, $excluded_terms used to be $excluded_terms with IDs separated by " and " if ( false !== strpos( $excluded_terms, ' and ' ) ) { - _deprecated_argument( __FUNCTION__, '3.3', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) ); + _deprecated_argument( __FUNCTION__, '3.3.0', sprintf( __( 'Use commas instead of %s to separate excluded terms.' ), "'and'" ) ); $excluded_terms = explode( ' and ', $excluded_terms ); } else { $excluded_terms = explode( ',', $excluded_terms ); diff --git a/wp-includes/load.php b/wp-includes/load.php index 62d033a7c7..c6ff6cb4c1 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -591,7 +591,7 @@ function wp_get_active_and_valid_plugins() { // Check for hacks file if the option is enabled if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) { - _deprecated_file( 'my-hacks.php', '1.5' ); + _deprecated_file( 'my-hacks.php', '1.5.0' ); array_unshift( $plugins, ABSPATH . 'my-hacks.php' ); } diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index 5bf2678de8..025b537371 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -729,7 +729,7 @@ function update_blog_option( $id, $option, $value, $deprecated = null ) { $id = (int) $id; if ( null !== $deprecated ) - _deprecated_argument( __FUNCTION__, '3.1' ); + _deprecated_argument( __FUNCTION__, '3.1.0' ); if ( get_current_blog_id() == $id ) return update_option( $option, $value ); @@ -963,7 +963,7 @@ function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) { global $wpdb; if ( null !== $deprecated ) - _deprecated_argument( __FUNCTION__, '3.1' ); + _deprecated_argument( __FUNCTION__, '3.1.0' ); if ( ! in_array( $pref, array( 'site_id', 'domain', 'path', 'registered', 'last_updated', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id') ) ) return $value; diff --git a/wp-includes/ms-default-constants.php b/wp-includes/ms-default-constants.php index dd17201e4c..98719f8ba5 100644 --- a/wp-includes/ms-default-constants.php +++ b/wp-includes/ms-default-constants.php @@ -140,7 +140,7 @@ function ms_subdomain_constants() { if ( $subdomain_error_warn ) { trigger_error( __( 'Conflicting values for the constants VHOST and SUBDOMAIN_INSTALL. The value of SUBDOMAIN_INSTALL will be assumed to be your subdomain configuration setting.' ) . ' ' . $vhost_deprecated, E_USER_WARNING ); } else { - _deprecated_argument( 'define()', '3.0', $vhost_deprecated ); + _deprecated_argument( 'define()', '3.0.0', $vhost_deprecated ); } return; } diff --git a/wp-includes/ms-deprecated.php b/wp-includes/ms-deprecated.php index 998f04ad81..7e43fccd83 100644 --- a/wp-includes/ms-deprecated.php +++ b/wp-includes/ms-deprecated.php @@ -24,7 +24,7 @@ * @return int Current site ID. */ function get_dashboard_blog() { - _deprecated_function( __FUNCTION__, '3.1' ); + _deprecated_function( __FUNCTION__, '3.1.0' ); if ( $blog = get_site_option( 'dashboard_blog' ) ) return get_blog_details( $blog ); @@ -41,7 +41,7 @@ function get_dashboard_blog() { * @param int $len Optional. The length of password to generate. Default 8. */ function generate_random_password( $len = 8 ) { - _deprecated_function( __FUNCTION__, '3.0', 'wp_generate_password()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'wp_generate_password()' ); return wp_generate_password( $len ); } @@ -61,7 +61,7 @@ function generate_random_password( $len = 8 ) { * @param string $user_login Optional. Username for the user to check. Default empty. */ function is_site_admin( $user_login = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'is_super_admin()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'is_super_admin()' ); if ( empty( $user_login ) ) { $user_id = get_current_user_id(); @@ -86,7 +86,7 @@ if ( !function_exists( 'graceful_fail' ) ) : * @see wp_die() */ function graceful_fail( $message ) { - _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'wp_die()' ); $message = apply_filters( 'graceful_fail', $message ); $message_template = apply_filters( 'graceful_fail_template', ' @@ -126,7 +126,7 @@ endif; * @param string $username Username. */ function get_user_details( $username ) { - _deprecated_function( __FUNCTION__, '3.0', 'get_user_by()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'get_user_by()' ); return get_user_by('login', $username); } @@ -140,7 +140,7 @@ function get_user_details( $username ) { * @param int $post_id Post ID. */ function clear_global_post_cache( $post_id ) { - _deprecated_function( __FUNCTION__, '3.0', 'clean_post_cache()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'clean_post_cache()' ); } /** @@ -151,7 +151,7 @@ function clear_global_post_cache( $post_id ) { * @see is_main_site() */ function is_main_blog() { - _deprecated_function( __FUNCTION__, '3.0', 'is_main_site()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'is_main_site()' ); return is_main_site(); } @@ -167,7 +167,7 @@ function is_main_blog() { * @return string|bool Either false or the valid email address. */ function validate_email( $email, $check_domain = true) { - _deprecated_function( __FUNCTION__, '3.0', 'is_email()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' ); return is_email( $email, $check_domain ); } @@ -183,7 +183,7 @@ function validate_email( $email, $check_domain = true) { * @param string $deprecated Unused. */ function get_blog_list( $start = 0, $num = 10, $deprecated = '' ) { - _deprecated_function( __FUNCTION__, '3.0', 'wp_get_sites()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'wp_get_sites()' ); global $wpdb; $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 ); @@ -216,7 +216,7 @@ function get_blog_list( $start = 0, $num = 10, $deprecated = '' ) { * @return array List of "most active" sites. */ function get_most_active_blogs( $num = 10, $display = true ) { - _deprecated_function( __FUNCTION__, '3.0' ); + _deprecated_function( __FUNCTION__, '3.0.0' ); $blogs = get_blog_list( 0, 'all', false ); // $blog_id -> $details if ( is_array( $blogs ) ) { @@ -267,7 +267,7 @@ function get_most_active_blogs( $num = 10, $display = true ) { * @param string $url Optional. Redirect URL. Default empty. */ function wpmu_admin_do_redirect( $url = '' ) { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); $ref = ''; if ( isset( $_GET['ref'] ) ) @@ -307,7 +307,7 @@ function wpmu_admin_do_redirect( $url = '' ) { * @return string */ function wpmu_admin_redirect_add_updated_param( $url = '' ) { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3.0' ); if ( strpos( $url, 'updated=true' ) === false ) { if ( strpos( $url, '?' ) === false ) @@ -332,7 +332,7 @@ function wpmu_admin_redirect_add_updated_param( $url = '' ) { * @return int */ function get_user_id_from_string( $string ) { - _deprecated_function( __FUNCTION__, '3.6', 'get_user_by()' ); + _deprecated_function( __FUNCTION__, '3.6.0', 'get_user_by()' ); if ( is_email( $string ) ) $user = get_user_by( 'email', $string ); @@ -357,7 +357,7 @@ function get_user_id_from_string( $string ) { * @return string */ function get_blogaddress_by_domain( $domain, $path ) { - _deprecated_function( __FUNCTION__, '3.7' ); + _deprecated_function( __FUNCTION__, '3.7.0' ); if ( is_subdomain_install() ) { $url = "http://" . $domain.$path; @@ -388,7 +388,7 @@ function get_blogaddress_by_domain( $domain, $path ) { * @return string|int The ID of the newly created blog */ function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) { - _deprecated_function( __FUNCTION__, '4.4' ); + _deprecated_function( __FUNCTION__, '4.4.0' ); if ( empty($path) ) $path = '/'; @@ -424,7 +424,7 @@ function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) { * @return array|false The network admins */ function get_admin_users_for_domain( $sitedomain = '', $path = '' ) { - _deprecated_function( __FUNCTION__, '4.4' ); + _deprecated_function( __FUNCTION__, '4.4.0' ); global $wpdb; @@ -469,7 +469,7 @@ function get_admin_users_for_domain( $sitedomain = '', $path = '' ) { function wp_get_sites( $args = array() ) { global $wpdb; - _deprecated_function( __FUNCTION__, '4.6', 'get_sites()' ); + _deprecated_function( __FUNCTION__, '4.6.0', 'get_sites()' ); if ( wp_is_large_network() ) return array(); diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 814b14397c..bf34bc3e99 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -115,7 +115,7 @@ function get_user_count() { */ function get_blog_count( $network_id = 0 ) { if ( func_num_args() ) - _deprecated_argument( __FUNCTION__, '3.1' ); + _deprecated_argument( __FUNCTION__, '3.1.0' ); return get_site_option( 'blog_count' ); } diff --git a/wp-includes/ms-load.php b/wp-includes/ms-load.php index 536dfb57a5..a07b8249a9 100644 --- a/wp-includes/ms-load.php +++ b/wp-includes/ms-load.php @@ -518,7 +518,7 @@ function ms_not_installed( $domain, $path ) { * @return object */ function get_current_site_name( $current_site ) { - _deprecated_function( __FUNCTION__, '3.9', 'get_current_site()' ); + _deprecated_function( __FUNCTION__, '3.9.0', 'get_current_site()' ); return $current_site; } @@ -538,6 +538,6 @@ function get_current_site_name( $current_site ) { */ function wpmu_current_site() { global $current_site; - _deprecated_function( __FUNCTION__, '3.9' ); + _deprecated_function( __FUNCTION__, '3.9.0' ); return $current_site; } diff --git a/wp-includes/option.php b/wp-includes/option.php index 4b5508d982..2f3cdd1e75 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -399,7 +399,7 @@ function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) global $wpdb; if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '2.3' ); + _deprecated_argument( __FUNCTION__, '2.3.0' ); $option = trim($option); if ( empty($option) ) diff --git a/wp-includes/pluggable-deprecated.php b/wp-includes/pluggable-deprecated.php index 466359e987..03eeae482d 100644 --- a/wp-includes/pluggable-deprecated.php +++ b/wp-includes/pluggable-deprecated.php @@ -30,7 +30,7 @@ if ( !function_exists('set_current_user') ) : * @return WP_User returns wp_set_current_user() */ function set_current_user($id, $name = '') { - _deprecated_function( __FUNCTION__, '3.0', 'wp_set_current_user()' ); + _deprecated_function( __FUNCTION__, '3.0.0', 'wp_set_current_user()' ); return wp_set_current_user($id, $name); } endif; @@ -46,7 +46,7 @@ if ( !function_exists('get_currentuserinfo') ) : * @return bool|WP_User False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise. */ function get_currentuserinfo() { - _deprecated_function( __FUNCTION__, '4.5', 'wp_get_current_user()' ); + _deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_current_user()' ); return _wp_get_current_user(); } @@ -64,7 +64,7 @@ if ( !function_exists('get_userdatabylogin') ) : * @return bool|object False on failure, User DB row object */ function get_userdatabylogin($user_login) { - _deprecated_function( __FUNCTION__, '3.3', "get_user_by('login')" ); + _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('login')" ); return get_user_by('login', $user_login); } endif; @@ -81,7 +81,7 @@ if ( !function_exists('get_user_by_email') ) : * @return bool|object False on failure, User DB row object */ function get_user_by_email($email) { - _deprecated_function( __FUNCTION__, '3.3', "get_user_by('email')" ); + _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('email')" ); return get_user_by('email', $email); } endif; @@ -102,12 +102,12 @@ if ( !function_exists('wp_setcookie') ) : * @param bool $remember Optional. Remember that the user is logged in */ function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) { - _deprecated_function( __FUNCTION__, '2.5', 'wp_set_auth_cookie()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'wp_set_auth_cookie()' ); $user = get_user_by('login', $username); wp_set_auth_cookie($user->ID, $remember); } else : - _deprecated_function( 'wp_setcookie', '2.5', 'wp_set_auth_cookie()' ); + _deprecated_function( 'wp_setcookie', '2.5.0', 'wp_set_auth_cookie()' ); endif; if ( !function_exists('wp_clearcookie') ) : @@ -119,11 +119,11 @@ if ( !function_exists('wp_clearcookie') ) : * @see wp_clear_auth_cookie() */ function wp_clearcookie() { - _deprecated_function( __FUNCTION__, '2.5', 'wp_clear_auth_cookie()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' ); wp_clear_auth_cookie(); } else : - _deprecated_function( 'wp_clearcookie', '2.5', 'wp_clear_auth_cookie()' ); + _deprecated_function( 'wp_clearcookie', '2.5.0', 'wp_clear_auth_cookie()' ); endif; if ( !function_exists('wp_get_cookie_login') ): @@ -139,11 +139,11 @@ if ( !function_exists('wp_get_cookie_login') ): * @return bool Always returns false */ function wp_get_cookie_login() { - _deprecated_function( __FUNCTION__, '2.5' ); + _deprecated_function( __FUNCTION__, '2.5.0' ); return false; } else : - _deprecated_function( 'wp_get_cookie_login', '2.5' ); + _deprecated_function( 'wp_get_cookie_login', '2.5.0' ); endif; if ( !function_exists('wp_login') ) : @@ -169,7 +169,7 @@ if ( !function_exists('wp_login') ) : * @return bool False on login failure, true on successful check */ function wp_login($username, $password, $deprecated = '') { - _deprecated_function( __FUNCTION__, '2.5', 'wp_signon()' ); + _deprecated_function( __FUNCTION__, '2.5.0', 'wp_signon()' ); global $error; $user = wp_authenticate($username, $password); @@ -181,7 +181,7 @@ function wp_login($username, $password, $deprecated = '') { return false; } else : - _deprecated_function( 'wp_login', '2.5', 'wp_signon()' ); + _deprecated_function( 'wp_login', '2.5.0', 'wp_signon()' ); endif; /** @@ -198,11 +198,11 @@ endif; if ( ! class_exists( 'wp_atom_server', false ) ) { class wp_atom_server { public function __call( $name, $arguments ) { - _deprecated_function( __CLASS__ . '::' . $name, '3.5', 'the Atom Publishing Protocol plugin' ); + _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' ); } public static function __callStatic( $name, $arguments ) { - _deprecated_function( __CLASS__ . '::' . $name, '3.5', 'the Atom Publishing Protocol plugin' ); + _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' ); } } } diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 8b643598ac..37a749bd1f 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1047,7 +1047,7 @@ if ( !function_exists('check_admin_referer') ) : */ function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) { if ( -1 == $action ) - _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2' ); + _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); $adminurl = strtolower(admin_url()); $referer = strtolower(wp_get_referer()); @@ -1348,7 +1348,7 @@ if ( ! function_exists('wp_notify_postauthor') ) : */ function wp_notify_postauthor( $comment_id, $deprecated = null ) { if ( null !== $deprecated ) { - _deprecated_argument( __FUNCTION__, '3.8' ); + _deprecated_argument( __FUNCTION__, '3.8.0' ); } $comment = get_comment( $comment_id ); diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index 73b59fd3c1..17d98d9f7c 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -885,7 +885,7 @@ function register_deactivation_hook($file, $function) { */ function register_uninstall_hook( $file, $callback ) { if ( is_array( $callback ) && is_object( $callback[0] ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1.0' ); return; } diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index dd83095fcc..be152523f0 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -373,7 +373,7 @@ function the_excerpt() { */ function get_the_excerpt( $post = null ) { if ( is_bool( $post ) ) { - _deprecated_argument( __FUNCTION__, '2.3' ); + _deprecated_argument( __FUNCTION__, '2.3.0' ); } $post = get_post( $post ); @@ -1417,7 +1417,7 @@ function walk_page_dropdown_tree() { */ function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) { if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '2.5' ); + _deprecated_argument( __FUNCTION__, '2.5.0' ); if ( $fullsize ) echo wp_get_attachment_link($id, 'full', $permalink); @@ -1724,7 +1724,7 @@ function wp_list_post_revisions( $post_id = 0, $type = 'all' ) { // $args array with (parent, format, right, left, type) deprecated since 3.6 if ( is_array( $type ) ) { $type = ! empty( $type['type'] ) ? $type['type'] : $type; - _deprecated_argument( __FUNCTION__, '3.6' ); + _deprecated_argument( __FUNCTION__, '3.6.0' ); } if ( ! $revisions = wp_get_post_revisions( $post->ID ) ) diff --git a/wp-includes/post.php b/wp-includes/post.php index aa15f7239d..f752b4c20f 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1023,7 +1023,7 @@ function register_post_type( $post_type, $args = array() ) { $post_type = sanitize_key( $post_type ); if ( empty( $post_type ) || strlen( $post_type ) > 20 ) { - _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2' ); + _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2.0' ); return new WP_Error( 'post_type_length_invalid', __( 'Post type names must be between 1 and 20 characters in length.' ) ); } @@ -2777,7 +2777,7 @@ function wp_get_post_terms( $post_id = 0, $taxonomy = 'post_tag', $args = array( function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) { if ( is_numeric( $args ) ) { - _deprecated_argument( __FUNCTION__, '3.1', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) ); + _deprecated_argument( __FUNCTION__, '3.1.0', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) ); $args = array( 'numberposts' => absint( $args ) ); } diff --git a/wp-includes/query.php b/wp-includes/query.php index 38a6928d64..077e7ed464 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -151,7 +151,7 @@ function is_archive() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -172,7 +172,7 @@ function is_post_type_archive( $post_types = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -193,7 +193,7 @@ function is_attachment( $attachment = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -217,7 +217,7 @@ function is_author( $author = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -241,7 +241,7 @@ function is_category( $category = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -265,7 +265,7 @@ function is_tag( $tag = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -294,7 +294,7 @@ function is_tax( $taxonomy = '', $term = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -314,7 +314,7 @@ function is_date() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -334,7 +334,7 @@ function is_day() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -355,7 +355,7 @@ function is_feed( $feeds = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -375,7 +375,7 @@ function is_comment_feed() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -404,7 +404,7 @@ function is_front_page() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -433,7 +433,7 @@ function is_home() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -453,7 +453,7 @@ function is_month() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -480,7 +480,7 @@ function is_page( $page = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -500,7 +500,7 @@ function is_paged() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -520,7 +520,7 @@ function is_preview() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -540,7 +540,7 @@ function is_robots() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -560,7 +560,7 @@ function is_search() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -589,7 +589,7 @@ function is_single( $post = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -616,7 +616,7 @@ function is_singular( $post_types = '' ) { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -636,7 +636,7 @@ function is_time() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -656,7 +656,7 @@ function is_trackback() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -676,7 +676,7 @@ function is_year() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -696,7 +696,7 @@ function is_404() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -716,7 +716,7 @@ function is_embed() { global $wp_query; if ( ! isset( $wp_query ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' ); + _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); return false; } @@ -742,7 +742,7 @@ function is_main_query() { 'is_main_query()', __( 'https://codex.wordpress.org/Function_Reference/is_main_query' ) ); - _doing_it_wrong( __FUNCTION__, $message, '3.7' ); + _doing_it_wrong( __FUNCTION__, $message, '3.7.0' ); } global $wp_query; @@ -2533,7 +2533,7 @@ class WP_Query { $page = 1; if ( isset( $q['caller_get_posts'] ) ) { - _deprecated_argument( 'WP_Query', '3.1', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) ); + _deprecated_argument( 'WP_Query', '3.1.0', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) ); if ( !isset( $q['ignore_sticky_posts'] ) ) $q['ignore_sticky_posts'] = $q['caller_get_posts']; } @@ -4424,7 +4424,7 @@ class WP_Query { * @return bool */ public function is_comments_popup() { - _deprecated_function( __FUNCTION__, '4.5' ); + _deprecated_function( __FUNCTION__, '4.5.0' ); return false; } diff --git a/wp-includes/registration-functions.php b/wp-includes/registration-functions.php index 9fee68601d..2054885f1c 100644 --- a/wp-includes/registration-functions.php +++ b/wp-includes/registration-functions.php @@ -4,4 +4,4 @@ * * @package WordPress */ -_deprecated_file( basename(__FILE__), '2.1', null, __( 'This file no longer needs to be included.' ) ); +_deprecated_file( basename(__FILE__), '2.1.0', null, __( 'This file no longer needs to be included.' ) ); diff --git a/wp-includes/registration.php b/wp-includes/registration.php index a0ffabf9fc..aa05672dde 100644 --- a/wp-includes/registration.php +++ b/wp-includes/registration.php @@ -4,4 +4,4 @@ * * @package WordPress */ -_deprecated_file( basename(__FILE__), '3.1', null, __( 'This file no longer needs to be included.' ) ); +_deprecated_file( basename(__FILE__), '3.1.0', null, __( 'This file no longer needs to be included.' ) ); diff --git a/wp-includes/rss-functions.php b/wp-includes/rss-functions.php index e6fc2b18ff..034a3e5db4 100644 --- a/wp-includes/rss-functions.php +++ b/wp-includes/rss-functions.php @@ -5,5 +5,5 @@ * @package WordPress */ -_deprecated_file( basename(__FILE__), '2.1', WPINC . '/rss.php' ); +_deprecated_file( basename(__FILE__), '2.1.0', WPINC . '/rss.php' ); require_once( ABSPATH . WPINC . '/rss.php' ); diff --git a/wp-includes/rss.php b/wp-includes/rss.php index 3bc6c5bc93..4c3fb15160 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -16,7 +16,7 @@ /** * Deprecated. Use SimplePie (class-simplepie.php) instead. */ -_deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/class-simplepie.php' ); +_deprecated_file( basename( __FILE__ ), '3.0.0', WPINC . '/class-simplepie.php' ); /** * Fires before MagpieRSS is loaded, to optionally replace it. diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index a51658fe11..9999d211b7 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -389,7 +389,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { $args = array_merge( $defaults, $args ); if ( empty( $taxonomy ) || strlen( $taxonomy ) > 32 ) { - _doing_it_wrong( __FUNCTION__, __( 'Taxonomy names must be between 1 and 32 characters in length.' ), '4.2' ); + _doing_it_wrong( __FUNCTION__, __( 'Taxonomy names must be between 1 and 32 characters in length.' ), '4.2.0' ); return new WP_Error( 'taxonomy_length_invalid', __( 'Taxonomy names must be between 1 and 32 characters in length.' ) ); } diff --git a/wp-includes/theme-compat/comments.php b/wp-includes/theme-compat/comments.php index c01b4f67d2..f7e0b30f2b 100644 --- a/wp-includes/theme-compat/comments.php +++ b/wp-includes/theme-compat/comments.php @@ -2,7 +2,7 @@ /** * @package WordPress * @subpackage Theme_Compat - * @deprecated 3.0 + * @deprecated 3.0.0 * * This file is here for backward compatibility with old themes and will be removed in a future version * @@ -10,7 +10,7 @@ _deprecated_file( /* translators: %s: template name */ sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), - '3.0', + '3.0.0', null, /* translators: %s: template name */ sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) diff --git a/wp-includes/theme-compat/footer.php b/wp-includes/theme-compat/footer.php index cd6b1873a8..6d9655236b 100644 --- a/wp-includes/theme-compat/footer.php +++ b/wp-includes/theme-compat/footer.php @@ -2,14 +2,14 @@ /** * @package WordPress * @subpackage Theme_Compat - * @deprecated 3.0 + * @deprecated 3.0.0 * * This file is here for backward compatibility with old themes and will be removed in a future version */ _deprecated_file( /* translators: %s: template name */ sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), - '3.0', + '3.0.0', null, /* translators: %s: template name */ sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) diff --git a/wp-includes/theme-compat/header.php b/wp-includes/theme-compat/header.php index 8a6836892a..831144fe4c 100644 --- a/wp-includes/theme-compat/header.php +++ b/wp-includes/theme-compat/header.php @@ -2,14 +2,14 @@ /** * @package WordPress * @subpackage Theme_Compat - * @deprecated 3.0 + * @deprecated 3.0.0 * * This file is here for backward compatibility with old themes and will be removed in a future version. */ _deprecated_file( /* translators: %s: template name */ sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), - '3.0', + '3.0.0', null, /* translators: %s: template name */ sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) diff --git a/wp-includes/theme-compat/sidebar.php b/wp-includes/theme-compat/sidebar.php index 3b2f9f08ba..acf6ae794b 100644 --- a/wp-includes/theme-compat/sidebar.php +++ b/wp-includes/theme-compat/sidebar.php @@ -2,14 +2,14 @@ /** * @package WordPress * @subpackage Theme_Compat - * @deprecated 3.0 + * @deprecated 3.0.0 * * This file is here for backward compatibility with old themes and will be removed in a future version. */ _deprecated_file( /* translators: %s: template name */ sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), - '3.0', + '3.0.0', null, /* translators: %s: template name */ sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 3516c908ba..e71e417e16 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1726,7 +1726,7 @@ function add_theme_support( $feature ) { if ( did_action( 'wp_loaded' ) ) { /* translators: 1: Theme support 2: hook name */ _doing_it_wrong( "add_theme_support( 'title-tag' )", sprintf( __( 'Theme support for %1$s should be registered before the %2$s hook.' ), - 'title-tag', 'wp_loaded' ), '4.1' ); + 'title-tag', 'wp_loaded' ), '4.1.0' ); return false; } diff --git a/wp-includes/user.php b/wp-includes/user.php index 0bfc9e5fc4..e47ffd6797 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -452,7 +452,7 @@ function get_user_option( $option, $user = 0, $deprecated = '' ) { global $wpdb; if ( !empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '3.0' ); + _deprecated_argument( __FUNCTION__, '3.0.0' ); if ( empty( $user ) ) $user = get_current_user_id(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 7e9fdfc78a..1ab2b42da9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-beta1-37984'; +$wp_version = '4.6-beta1-37985'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-recent-comments.php b/wp-includes/widgets/class-wp-widget-recent-comments.php index 711b9106fd..fb78e88c79 100644 --- a/wp-includes/widgets/class-wp-widget-recent-comments.php +++ b/wp-includes/widgets/class-wp-widget-recent-comments.php @@ -173,6 +173,6 @@ class WP_Widget_Recent_Comments extends WP_Widget { * @deprecated 4.4.0 Fragment caching was removed in favor of split queries. */ public function flush_widget_cache() { - _deprecated_function( __METHOD__, '4.4' ); + _deprecated_function( __METHOD__, '4.4.0' ); } } diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 2ad4676452..bce6d19869 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1135,7 +1135,7 @@ class wpdb { */ function _weak_escape( $string ) { if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) - _deprecated_function( __METHOD__, '3.6', 'wpdb::prepare() or esc_sql()' ); + _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' ); return addslashes( $string ); } @@ -1209,7 +1209,7 @@ class wpdb { */ public function escape( $data ) { if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) - _deprecated_function( __METHOD__, '3.6', 'wpdb::prepare() or esc_sql()' ); + _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' ); if ( is_array( $data ) ) { foreach ( $data as $k => $v ) { if ( is_array( $v ) ) @@ -1278,7 +1278,7 @@ class wpdb { // This is not meant to be foolproof -- but it will catch obviously incorrect usage. if ( strpos( $query, '%' ) === false ) { - _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9' ); + _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' ); } $args = func_get_args(); @@ -3210,7 +3210,7 @@ class wpdb { * @return bool True if collation is supported, false if version does not */ public function supports_collation() { - _deprecated_function( __FUNCTION__, '3.5', 'wpdb::has_cap( \'collation\' )' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'wpdb::has_cap( \'collation\' )' ); return $this->has_cap( 'collation' ); } diff --git a/xmlrpc.php b/xmlrpc.php index b474c2fd36..e8d5223ff1 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -95,7 +95,7 @@ exit; * @param string $msg Information describing logging reason. */ function logIO( $io, $msg ) { - _deprecated_function( __FUNCTION__, '3.4', 'error_log()' ); + _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) error_log( $io . ' - ' . $msg ); } \ No newline at end of file