_deprecated_function( string $function_name, string $version, string $replacement = '' )
Marks a function as deprecated and inform when it has been used.
Description
There is a hook ‘deprecated_function_run’ that will be called that can be used to get the backtrace up to what file and function called the deprecated function.
The current behavior is to trigger a user error if WP_DEBUG
is true.
This function is to be used in every function that is deprecated.
Parameters
- $function_name
-
(Required) The function that was called.
- $version
-
(Required) The version of WordPress that deprecated the function.
- $replacement
-
(Optional) The function that should have been called.
Default value: ''
Source
File: wp-includes/functions.php
function _deprecated_function( $function, $version, $replacement = null ) {
/**
* Fires when a deprecated function is called.
*
* @since WP-2.5.0
*
* @param string $function The function that was called.
* @param string $replacement The function that should have been called.
* @param string $version The version of ClassicPress or WordPress that deprecated the function.
*/
do_action( 'deprecated_function_run', $function, $replacement, $version );
/**
* Filters whether to trigger an error for deprecated functions.
*
* @since WP-2.5.0
*
* @param bool $trigger Whether to trigger the error for deprecated functions. Default true.
*/
if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) {
if ( function_exists( '__' ) ) {
if ( ! is_null( $replacement ) ) {
/* translators: 1: PHP function name, 2: version number, 3: alternative function name */
trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) );
} else {
/* translators: 1: PHP function name, 2: version number */
trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $function, $version ) );
}
} else {
if ( ! is_null( $replacement ) ) {
trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.', $function, $version, $replacement ) );
} else {
trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.', $function, $version ) );
}
}
}
}
Related
Uses
Uses | Description |
---|---|
wp-includes/l10n.php: __() |
Retrieves the translation of $text. |
wp-includes/plugin.php: do_action() |
Calls the callback functions that have been added to an action hook. |
wp-includes/plugin.php: apply_filters() |
Calls the callback functions that have been added to a filter hook. |
wp-includes/functions.php: deprecated_function_run |
Fires when a deprecated function is called. |
wp-includes/functions.php: deprecated_function_trigger_error |
Filters whether to trigger an error for deprecated functions. |
Used By
Used By | Description |
---|---|
wp-admin/includes/deprecated.php: WP_Privacy_Data_Export_Requests_Table::__construct() | |
wp-admin/includes/deprecated.php: WP_Privacy_Data_Removal_Requests_Table::__construct() | |
wp-includes/deprecated.php: wp_render_duotone_filter_preset() |
Renders the duotone filter SVG and returns the CSS filter property to reference the rendered SVG. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::do_permissions_check() |
Performs a permissions check for the request. |
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php: WP_REST_Themes_Controller::sanitize_theme_status() |
Sanitizes and validates the list of theme status. |
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::default_additional_properties_to_false() |
Recursively add additionalProperties = false to all objects in a schema if no additionalProperties setting is specified. |
wp-includes/rest-api/search/class-wp-rest-post-search-handler.php: WP_REST_Post_Search_Handler::detect_rest_item_route() |
Attempts to detect the route to access a single item. |
wp-includes/deprecated.php: _usort_terms_by_name() |
Sort categories by name. |
wp-includes/deprecated.php: _sort_nav_menu_items() |
Sort menu items by the desired key. |
wp-includes/deprecated.php: get_shortcut_link() |
Retrieves the Press This bookmarklet link. |
wp-includes/deprecated.php: wp_ajax_press_this_save_post() |
Ajax handler for saving a post from Press This. |
wp-includes/deprecated.php: wp_ajax_press_this_add_category() |
Ajax handler for creating new category from Press This. |
wp-includes/deprecated.php: wp_get_http() |
Perform a HTTP HEAD or GET request. |
wp-includes/deprecated.php: force_ssl_login() |
Whether SSL login should be forced. |
wp-includes/deprecated.php: get_comments_popup_template() |
Retrieve path of comment popup template in current or parent template. |
wp-includes/deprecated.php: is_comments_popup() |
Determines whether the current URL is within the comments popup window. |
wp-includes/deprecated.php: comments_popup_script() |
Display the JS popup script to show a comment. |
wp-includes/deprecated.php: popuplinks() |
Adds element attributes to open links in new tabs. |
wp-includes/deprecated.php: wp_embed_handler_googlevideo() |
The Google Video embed handler callback. |
wp-includes/deprecated.php: get_paged_template() |
Retrieve path of paged template in current or parent template. |
wp-includes/deprecated.php: wp_kses_js_entities() |
Removes the HTML JavaScript entities found in early versions of Netscape 4. |
wp-includes/deprecated.php: _usort_terms_by_ID() |
Sort categories by ID. |
wp-includes/deprecated.php: _preview_theme_stylesheet_filter() |
Private function to modify the current stylesheet when previewing a theme |
wp-includes/deprecated.php: preview_theme_ob_filter() |
Callback function for ob_start() to capture all links in the theme. |
wp-includes/deprecated.php: preview_theme_ob_filter_callback() |
Manipulates preview theme links in order to control and maintain location. |
wp-includes/deprecated.php: wp_richedit_pre() |
Formats text for the rich text editor. |
wp-includes/deprecated.php: wp_htmledit_pre() |
Formats text for the HTML editor. |
wp-includes/deprecated.php: post_permalink() |
Retrieve permalink from post ID. |
wp-includes/deprecated.php: like_escape() |
Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described. |
wp-includes/deprecated.php: url_is_accessable_via_ssl() |
Determines if the URL can be accessed over SSL. |
wp-includes/deprecated.php: preview_theme() |
Start preview theme output buffer. |
wp-includes/deprecated.php: _preview_theme_template_filter() |
Private function to modify the current template when previewing a theme |
wp-includes/deprecated.php: image_resize() |
Scale down an image to fit a particular size and save a new copy of the image. |
wp-includes/deprecated.php: wp_get_single_post() |
Retrieve a single post, based on post ID. |
wp-includes/deprecated.php: user_pass_ok() |
Check that the user login name and password is correct. |
wp-includes/deprecated.php: gd_edit_image_support() |
Check if the installed version of GD supports particular image type |
wp-includes/deprecated.php: wp_convert_bytes_to_hr() |
Converts an integer byte value to a shorthand byte value. |
wp-includes/deprecated.php: _search_terms_tidy() |
Formerly used internally to tidy up the search terms. |
wp-includes/deprecated.php: rich_edit_exists() |
Determine if TinyMCE is available. |
wp-includes/deprecated.php: format_to_post() |
Formerly used to escape strings before inserting into the DB. |
wp-includes/deprecated.php: remove_custom_image_header() |
Remove image header support. |
wp-includes/deprecated.php: add_custom_background() |
Add callbacks for background image display. |
wp-includes/deprecated.php: remove_custom_background() |
Remove custom background support. |
wp-includes/deprecated.php: get_theme_data() |
Retrieve theme data from parsed theme file. |
wp-includes/deprecated.php: update_page_cache() |
Alias of update_post_cache(). |
wp-includes/deprecated.php: clean_page_cache() |
Will clean the page in the cache. |
wp-includes/deprecated.php: wp_explain_nonce() |
Retrieve nonce action “Are you sure” message. |
wp-includes/deprecated.php: sticky_class() |
Display “sticky” CSS class, if a post is sticky. |
wp-includes/deprecated.php: _get_post_ancestors() |
Retrieve post ancestors. |
wp-includes/deprecated.php: wp_load_image() |
Load an image from a string, if PHP supports it. |
wp-includes/deprecated.php: wp_admin_bar_dashboard_view_site_menu() |
Add the “Dashboard”/”Visit Site” menu. |
wp-includes/deprecated.php: is_blog_user() |
Checks if the current user belong to a given site. |
wp-includes/deprecated.php: debug_fopen() |
Open the file handle for debugging. |
wp-includes/deprecated.php: debug_fwrite() |
Write contents to the file used for debugging. |
wp-includes/deprecated.php: debug_fclose() |
Close the debugging file handle. |
wp-includes/deprecated.php: get_themes() |
Retrieve list of themes with theme data in theme directory. |
wp-includes/deprecated.php: get_theme() |
Retrieve theme data. |
wp-includes/deprecated.php: get_current_theme() |
Retrieve current theme name. |
wp-includes/deprecated.php: clean_pre() |
Accepts matches array from preg_replace_callback in wpautop() or a string. |
wp-includes/deprecated.php: add_custom_image_header() |
Add callbacks for image header display. |
wp-includes/deprecated.php: wp_timezone_supported() |
Check for PHP timezone support |
wp-includes/deprecated.php: the_editor() |
Displays an editor: TinyMCE, HTML, or both. |
wp-includes/deprecated.php: get_user_metavalues() |
Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users |
wp-includes/deprecated.php: sanitize_user_object() |
Sanitize every user field. |
wp-includes/deprecated.php: get_boundary_post_rel_link() |
Get boundary post relational link. |
wp-includes/deprecated.php: start_post_rel_link() |
Display relational link for the first post. |
wp-includes/deprecated.php: get_index_rel_link() |
Get site index relational link. |
wp-includes/deprecated.php: index_rel_link() |
Display relational link for the site index. |
wp-includes/deprecated.php: get_parent_post_rel_link() |
Get parent post relational link. |
wp-includes/deprecated.php: parent_post_rel_link() |
Display relational link for parent item |
wp-includes/deprecated.php: get_users_of_blog() |
Get users for the site. |
wp-includes/deprecated.php: automatic_feed_links() |
Enable/disable automatic general feed link outputting. |
wp-includes/deprecated.php: get_profile() |
Retrieve user data based on field. |
wp-includes/deprecated.php: get_usernumposts() |
Retrieves the number of posts a user has written. |
wp-includes/deprecated.php: funky_javascript_fix() |
Fixes JavaScript bugs in browsers. |
wp-includes/deprecated.php: is_taxonomy() |
Checks that the taxonomy name exists. |
wp-includes/deprecated.php: is_term() |
Check if Term exists. |
wp-includes/deprecated.php: is_plugin_page() |
Determines whether the current admin page is generated by a plugin. |
wp-includes/deprecated.php: update_category_cache() |
Update the categories cache. |
wp-includes/deprecated.php: js_escape() |
Escape single quotes, specialchar double quotes, and fix line endings. |
wp-includes/deprecated.php: wp_specialchars() |
Legacy escaping for HTML blocks. |
wp-includes/deprecated.php: attribute_escape() |
Escaping for HTML attributes. |
wp-includes/deprecated.php: register_sidebar_widget() |
Register widget for sidebar with backward compatibility. |
wp-includes/deprecated.php: unregister_sidebar_widget() |
Serves as an alias of wp_unregister_sidebar_widget(). |
wp-includes/deprecated.php: register_widget_control() |
Registers widget control callback for customizing options. |
wp-includes/deprecated.php: unregister_widget_control() |
Alias of wp_unregister_widget_control(). |
wp-includes/deprecated.php: delete_usermeta() |
Remove user meta data. |
wp-includes/deprecated.php: get_usermeta() |
Retrieve user metadata. |
wp-includes/deprecated.php: update_usermeta() |
Update metadata of user. |
wp-includes/deprecated.php: __ngettext() |
Retrieve the plural or single form based on the amount. |
wp-includes/deprecated.php: __ngettext_noop() |
Register plural strings in POT file, but don’t translate them. |
wp-includes/deprecated.php: get_alloptions() |
Retrieve all autoload options, or all options if no autoloaded ones exist. |
wp-includes/deprecated.php: get_the_attachment_link() |
Retrieve HTML content of attachment image with link. |
wp-includes/deprecated.php: get_attachment_icon_src() |
Retrieve icon URL and Path. |
wp-includes/deprecated.php: get_attachment_icon() |
Retrieve HTML content of icon attachment image element. |
wp-includes/deprecated.php: get_attachment_innerHTML() |
Retrieve HTML content of image element. |
wp-includes/deprecated.php: get_link() |
Retrieves bookmark data based on ID. |
wp-includes/deprecated.php: clean_url() |
Checks and cleans a URL. |
wp-includes/deprecated.php: get_author_name() |
Retrieve the specified author’s preferred display name. |
wp-includes/deprecated.php: get_the_author_url() |
Retrieve the URL to the home page of the author of the current post. |
wp-includes/deprecated.php: the_author_url() |
Display the URL to the home page of the author of the current post. |
wp-includes/deprecated.php: get_the_author_ID() |
Retrieve the ID of the author of the current post. |
wp-includes/deprecated.php: the_author_ID() |
Display the ID of the author of the current post. |
wp-includes/deprecated.php: make_url_footnote() |
Strip HTML and put links at the bottom of stripped content. |
wp-includes/deprecated.php: _c() |
Retrieve translated string with vertical bar context |
wp-includes/deprecated.php: translate_with_context() |
Translates $text like translate(), but assumes that the text contains a context after its last vertical bar. |
wp-includes/deprecated.php: _nc() |
Legacy version of _n(), which supports contexts. |
wp-includes/deprecated.php: the_content_rss() |
Display the post content for the feed. |
wp-includes/deprecated.php: get_the_author_email() |
Retrieve the email of the author of the current post. |
wp-includes/deprecated.php: the_author_email() |
Display the email of the author of the current post. |
wp-includes/deprecated.php: get_the_author_icq() |
Retrieve the ICQ number of the author of the current post. |
wp-includes/deprecated.php: the_author_icq() |
Display the ICQ number of the author of the current post. |
wp-includes/deprecated.php: get_the_author_yim() |
Retrieve the Yahoo! IM name of the author of the current post. |
wp-includes/deprecated.php: the_author_yim() |
Display the Yahoo! IM name of the author of the current post. |
wp-includes/deprecated.php: get_the_author_msn() |
Retrieve the MSN address of the author of the current post. |
wp-includes/deprecated.php: the_author_msn() |
Display the MSN address of the author of the current post. |
wp-includes/deprecated.php: get_the_author_aim() |
Retrieve the AIM address of the author of the current post. |
wp-includes/deprecated.php: the_author_aim() |
Display the AIM address of the author of the current post. |
wp-includes/deprecated.php: get_the_author_description() |
Retrieve the description of the author of the current post. |
wp-includes/deprecated.php: the_author_description() |
Display the description of the author of the current post. |
wp-includes/deprecated.php: get_the_author_login() |
Retrieve the login name of the author of the current post. |
wp-includes/deprecated.php: the_author_login() |
Display the login name of the author of the current post. |
wp-includes/deprecated.php: get_the_author_firstname() |
Retrieve the first name of the author of the current post. |
wp-includes/deprecated.php: the_author_firstname() |
Display the first name of the author of the current post. |
wp-includes/deprecated.php: get_the_author_lastname() |
Retrieve the last name of the author of the current post. |
wp-includes/deprecated.php: the_author_lastname() |
Display the last name of the author of the current post. |
wp-includes/deprecated.php: get_the_author_nickname() |
Retrieve the nickname of the author of the current post. |
wp-includes/deprecated.php: the_author_nickname() |
Display the nickname of the author of the current post. |
wp-includes/deprecated.php: comments_rss_link() |
Print RSS comment feed link. |
wp-includes/deprecated.php: get_category_rss_link() |
Print/Return link to category RSS2 feed. |
wp-includes/deprecated.php: get_author_rss_link() |
Print/Return link to author RSS feed. |
wp-includes/deprecated.php: comments_rss() |
Return link to the post RSS feed. |
wp-includes/deprecated.php: create_user() |
An alias of wp_create_user(). |
wp-includes/deprecated.php: gzip_compression() |
Unused function. |
wp-includes/deprecated.php: get_commentdata() |
Retrieve an array of comment data about comment $comment_id. |
wp-includes/deprecated.php: get_catname() |
Retrieve the category name by the category ID. |
wp-includes/deprecated.php: get_category_children() |
Retrieve category children list separated before and after the term IDs. |
wp-includes/deprecated.php: get_all_category_ids() |
Retrieves all category IDs. |
wp-includes/deprecated.php: link_pages() |
Print list of pages based on arguments. |
wp-includes/deprecated.php: get_settings() |
Get value based on option. |
wp-includes/deprecated.php: permalink_link() |
Print the permalink of the current post in the loop. |
wp-includes/deprecated.php: permalink_single_rss() |
Print the permalink to the RSS feed. |
wp-includes/deprecated.php: wp_get_links() |
Gets the links associated with category. |
wp-includes/deprecated.php: get_links() |
Gets the links associated with category by ID. |
wp-includes/deprecated.php: get_links_list() |
Output entire list of links by category. |
wp-includes/deprecated.php: links_popup_script() |
Show the link to the links popup and the number of links. |
wp-includes/deprecated.php: get_linkrating() |
Legacy function that retrieved the value of a link’s link_rating field. |
wp-includes/deprecated.php: get_linkcatname() |
Gets the name of category by ID. |
wp-includes/deprecated.php: dropdown_cats() |
Deprecated method for generating a drop-down of categories. |
wp-includes/deprecated.php: list_authors() |
Lists authors. |
wp-includes/deprecated.php: wp_get_post_cats() |
Retrieves a list of post categories. |
wp-includes/deprecated.php: wp_set_post_cats() |
Sets the categories that the post ID belongs to. |
wp-includes/deprecated.php: get_archives() |
Retrieves a list of archives. |
wp-includes/deprecated.php: get_author_link() |
Returns or Prints link to the author’s posts. |
wp-includes/deprecated.php: get_links_withrating() |
Gets the links associated with category n and display rating stars/chars. |
wp-includes/deprecated.php: get_autotoggle() |
Gets the auto_toggle setting. |
wp-includes/deprecated.php: list_cats() |
Lists categories. |
wp-includes/deprecated.php: wp_list_cats() |
Lists categories. |
wp-includes/deprecated.php: user_can_set_post_date() |
Whether user can set new posts’ dates. |
wp-includes/deprecated.php: user_can_edit_post_date() |
Whether user can delete a post. |
wp-includes/deprecated.php: user_can_edit_post_comments() |
Whether user can delete a post. |
wp-includes/deprecated.php: user_can_delete_post_comments() |
Whether user can delete a post. |
wp-includes/deprecated.php: user_can_edit_user() |
Can user can edit other user. |
wp-includes/deprecated.php: get_linksbyname() |
Gets the links associated with category $cat_name. |
wp-includes/deprecated.php: wp_get_linksbyname() |
Gets the links associated with the named category. |
wp-includes/deprecated.php: get_linkobjectsbyname() |
Gets an array of link objects associated with category $cat_name. |
wp-includes/deprecated.php: get_linkobjects() |
Gets an array of link objects associated with category n. |
wp-includes/deprecated.php: get_linksbyname_withrating() |
Gets the links associated with category ‘cat_name’ and display rating stars/chars. |
wp-includes/customize/class-wp-customize-nav-menu-setting.php: WP_Customize_Nav_Menu_Setting::_sort_menus_by_orderby() |
Sort menu objects by the class-supplied orderby property. |
wp-includes/deprecated.php: get_postdata() |
Retrieves all post data for a given post. |
wp-includes/deprecated.php: start_wp() |
Sets up the WordPress Loop. |
wp-includes/deprecated.php: the_category_ID() |
Returns or prints a category ID. |
wp-includes/deprecated.php: the_category_head() |
Prints a category with optional text before and after. |
wp-includes/deprecated.php: previous_post() |
Prints a link to the previous post. |
wp-includes/deprecated.php: next_post() |
Prints link to the next post. |
wp-includes/deprecated.php: user_can_create_post() |
Whether user can create a post. |
wp-includes/deprecated.php: user_can_create_draft() |
Whether user can create a post. |
wp-includes/deprecated.php: user_can_edit_post() |
Whether user can edit a post. |
wp-includes/deprecated.php: user_can_delete_post() |
Whether user can delete a post. |
wp-includes/customize/class-wp-customize-image-control.php: WP_Customize_Image_Control::add_tab() | |
wp-includes/customize/class-wp-customize-image-control.php: WP_Customize_Image_Control::remove_tab() | |
wp-includes/customize/class-wp-customize-image-control.php: WP_Customize_Image_Control::print_tab_image() | |
wp-includes/customize/class-wp-customize-new-menu-section.php: WP_Customize_New_Menu_Section::__construct() |
Constructor. |
wp-includes/customize/class-wp-customize-new-menu-section.php: WP_Customize_New_Menu_Section::render() |
Render the section, and the controls that have been added to it. |
wp-includes/customize/class-wp-customize-new-menu-control.php: WP_Customize_New_Menu_Control::__construct() |
Constructor. |
wp-includes/customize/class-wp-customize-new-menu-control.php: WP_Customize_New_Menu_Control::render_content() |
Render the control’s content. |
wp-includes/customize/class-wp-customize-nav-menus-panel.php: WP_Customize_Nav_Menus_Panel::wp_nav_menu_manage_columns() |
Returns the advanced options for the nav menus page. |
wp-includes/php-compat/readonly.php: readonly() |
Outputs the HTML readonly attribute. |
wp-includes/deprecated.php: noindex() |
Displays a |
wp-includes/deprecated.php: wp_no_robots() |
Display a |
wp-includes/deprecated.php: wp_sensitive_page_meta() |
Display a |
wp-includes/deprecated.php: wlwmanifest_link() |
Displays the link to the Windows Live Writer manifest file. |
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::register_field() |
Registers the meta field. |
wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php: WP_REST_Settings_Controller::set_additional_properties_to_false() |
Recursively add additionalProperties = false to all objects in a schema if no additionalProperties setting is specified. |
wp-includes/widgets/class-wp-widget-recent-comments.php: WP_Widget_Recent_Comments::flush_widget_cache() |
Flushes the Recent Comments widget cache. |
wp-includes/class-wp-user.php: WP_User::_init_caps() |
Sets up capability object properties. |
wp-includes/class-wp-user.php: WP_User::for_blog() |
Sets the site to operate on. Defaults to the current site. |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::setup_widget_addition_previews() |
{@internal Missing Summary} |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::prepreview_added_sidebars_widgets() |
{@internal Missing Summary} |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::prepreview_added_widget_instance() |
{@internal Missing Summary} |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::remove_prepreview_filters() |
{@internal Missing Summary} |
wp-includes/deprecated.php: wp_make_content_images_responsive() |
Filters ‘img’ elements in post content to add ‘srcset’ and ‘sizes’ attributes. |
wp-includes/deprecated.php: _get_path_to_translation() |
Gets the path to a translation file for loading a textdomain just in time. |
wp-includes/deprecated.php: _get_path_to_translation_from_lang_dir() |
Gets the path to a translation file in the languages directory for the current locale. |
wp-includes/pluggable-deprecated.php: wp_atom_server::__call() | |
wp-includes/pluggable-deprecated.php: wp_atom_server::__callStatic() | |
wp-includes/pluggable-deprecated.php: wp_get_cookie_login() |
Gets the user cookie login. This function is deprecated. |
wp-includes/pluggable-deprecated.php: wp_login() |
Checks a users login information and logs them in if it checks out. This function is deprecated. |
wp-includes/class-wp-query.php: WP_Query::is_comments_popup() |
Whether the current URL is within the comments popup window. |
wp-includes/class-wp-query.php: WP_Query::lazyload_term_meta() |
Lazyload term meta for posts in the loop. |
wp-includes/class-wp-query.php: WP_Query::lazyload_comment_meta() |
Lazyload comment meta for comments in the loop. |
wp-includes/pluggable-deprecated.php: set_current_user() |
Changes the current user by ID or name. |
wp-includes/pluggable-deprecated.php: get_currentuserinfo() |
Populate global variables with information about the currently logged in user. |
wp-includes/pluggable-deprecated.php: get_userdatabylogin() |
Retrieve user info by login name. |
wp-includes/pluggable-deprecated.php: get_user_by_email() |
Retrieve user info by email. |
wp-includes/pluggable-deprecated.php: wp_setcookie() |
Sets a cookie for a user who just logged in. This function is deprecated. |
wp-includes/pluggable-deprecated.php: wp_clearcookie() |
Clears the authentication cookie, logging the user out. This function is deprecated. |
wp-includes/class-wp-metadata-lazyloader.php: WP_Metadata_Lazyloader::lazyload_term_meta() |
Lazy-loads term meta for queued terms. |
wp-includes/class-wp-metadata-lazyloader.php: WP_Metadata_Lazyloader::lazyload_comment_meta() |
Lazy-loads comment meta for queued comments. |
wp-includes/deprecated.php: wp_blacklist_check() |
Does comment contain disallowed characters or words. |
wp-includes/deprecated.php: wp_queue_comments_for_comment_meta_lazyload() |
Queues comments for metadata lazy-loading. |
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::recursive_render() |
Renders toolbar items recursively. |
wp-includes/ms-load.php: get_current_site_name() |
This deprecated function formerly set the site_name property of the $current_site object. |
wp-includes/ms-load.php: wpmu_current_site() |
This deprecated function managed much of the site and network loading in multisite. |
wp-includes/ms-load.php: wp_get_network() |
Retrieves an object containing information about the requested network. |
wp-includes/ms-deprecated.php: get_user_id_from_string() |
Get a numeric user ID from either an email address or a login. |
wp-includes/ms-deprecated.php: get_blogaddress_by_domain() |
Get a full blog URL, given a domain and a path. |
wp-includes/ms-deprecated.php: create_empty_blog() |
Create an empty blog. |
wp-includes/ms-deprecated.php: get_admin_users_for_domain() |
Get the admin for a domain/path combination. |
wp-includes/ms-deprecated.php: wp_get_sites() |
Return an array of sites for a network or networks. |
wp-includes/ms-deprecated.php: is_user_option_local() |
Check whether a usermeta key has to do with the current blog. |
wp-includes/ms-deprecated.php: wpmu_admin_do_redirect() |
Redirect a user based on $_GET or $_POST arguments. |
wp-includes/ms-deprecated.php: wpmu_admin_redirect_add_updated_param() |
Adds an ‘updated=true’ argument to a URL. |
wp-includes/ms-deprecated.php: get_dashboard_blog() |
Get the “dashboard blog”, the blog where users without a blog edit their profile data. |
wp-includes/ms-deprecated.php: generate_random_password() |
Generates a random password. |
wp-includes/ms-deprecated.php: is_site_admin() |
Determine if user is a site admin. |
wp-includes/ms-deprecated.php: graceful_fail() |
Deprecated functionality to gracefully fail. |
wp-includes/ms-deprecated.php: get_user_details() |
Deprecated functionality to retrieve user information. |
wp-includes/ms-deprecated.php: clear_global_post_cache() |
Deprecated functionality to clear the global post cache. |
wp-includes/ms-deprecated.php: is_main_blog() |
Deprecated functionality to determin if the current site is the main site. |
wp-includes/ms-deprecated.php: validate_email() |
Deprecated functionality to validate an email address. |
wp-includes/ms-deprecated.php: get_blog_list() |
Deprecated functionality to retrieve a list of all sites. |
wp-includes/ms-deprecated.php: get_most_active_blogs() |
Deprecated functionality to retrieve a list of the most active sites. |
wp-includes/class-wp-http.php: WP_Http::parse_url() |
Used as a wrapper for PHP’s parse_url() function that handles edgecases in < PHP 5.4.7. |
wp-includes/deprecated.php: _wp_register_meta_args_whitelist() |
Filters out |
wp-includes/deprecated.php: wp_get_user_request_data() |
Return the user request object for the specified request ID. |
wp-includes/class-wpdb.php: wpdb::_weak_escape() |
Do not use, deprecated. |
wp-includes/class-wpdb.php: wpdb::escape() |
Do not use, deprecated. |
wp-includes/class-wpdb.php: wpdb::supports_collation() |
Determines whether the database supports collation. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::_cmp_priority() |
Helper function to compare two objects by priority, ensuring sort stability via instance_number. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::wp_die_handler() |
Returns the Ajax wp_die() handler if it’s a customized request. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::wp_redirect_status() |
Prevents Ajax requests from following redirects when previewing a theme by issuing a 200 response instead of a 30x. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::customize_preview_override_404_status() |
Prevents sending a 404 status when returning the response for the customize preview, since it causes the jQuery Ajax to fail. Send 200 instead. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::customize_preview_base() |
Prints base element for preview frame. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::customize_preview_html5() |
Prints a workaround to handle HTML5 tags in IE < 9. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::customize_preview_signature() |
Prints a signature so we can ensure the Customizer was properly executed. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::remove_preview_signature() |
Removes the signature in case we experience a case where the Customizer was not properly executed. |
wp-includes/post-template.php: the_meta() |
Displays a list of post custom fields. |
wp-includes/class-wp-object-cache.php: WP_Object_Cache::reset() |
Resets cache keys. |
wp-includes/cache.php: wp_cache_reset() |
Resets internal cache keys and structures. |
wp-includes/deprecated.php: _filter_query_attachment_filenames() |
Filter the SQL clauses of an attachment query to include filenames. |
wp-includes/deprecated.php: wp_get_attachment_thumb_file() |
Retrieves thumbnail for an attachment. |
wp-includes/deprecated.php: get_page_by_title() |
Retrieves a page given its title. |
wp-includes/ms-deprecated.php: global_terms() |
Maintains a canonical list of terms by syncing terms created for each blog with the global terms table. |
wp-includes/ms-deprecated.php: install_blog() |
Install an empty blog. |
wp-includes/ms-deprecated.php: install_blog_defaults() |
Set blog defaults. |
wp-includes/ms-deprecated.php: insert_blog() |
Store basic site info in the blogs table. |
wp-includes/class-wp-roles.php: WP_Roles::_init() |
Sets up the object properties. |
wp-includes/class-wp-roles.php: WP_Roles::reinit() |
Reinitializes the object. |
wp-includes/class-wp-editor.php: _WP_Editors::wp_fullscreen_html() |
Outputs the HTML for distraction-free writing mode. |
wp-includes/class-wp-scripts.php: WP_Scripts::print_scripts_l10n() |
Prints extra scripts of a registered script. |
wp-includes/deprecated.php: wp_unregister_GLOBALS() |
Turn register globals off. |
wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::_update_theme_mod() |
Deprecated method. |
wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::_update_option() |
Deprecated method. |
wp-includes/deprecated.php: global_terms_enabled() |
Determines whether global terms are enabled. |
wp-admin/includes/deprecated.php: WP_User_Search::__construct() |
PHP5 Constructor – Sets up the object properties. |
wp-admin/includes/deprecated.php: post_form_autocomplete_off() |
Disables autocomplete on the ‘post’ form (Add/Edit Post screens) for WebKit browsers, as they disregard the autocomplete setting on the editor textarea. That can break the editor when the user navigates to it with the browser’s Back button. See #28037 |
wp-admin/includes/deprecated.php: wp_dashboard_plugins_output() |
Display plugins text for the ClassicPress news widget. |
wp-admin/includes/deprecated.php: _relocate_children() |
This was once used to move child posts to a new parent. |
wp-admin/includes/deprecated.php: add_object_page() |
Add a top-level menu page in the ‘objects’ section. |
wp-admin/includes/deprecated.php: add_utility_page() |
Add a top-level menu page in the ‘utility’ section. |
wp-admin/includes/deprecated.php: the_attachment_links() |
This was once used to display attachment links. Now it is deprecated and stubbed. |
wp-admin/includes/deprecated.php: screen_icon() |
Displays a screen icon. |
wp-admin/includes/deprecated.php: get_screen_icon() |
Retrieves the screen icon (no longer used in 3.8+). |
wp-admin/includes/deprecated.php: current_theme_info() |
Retrieves information on the current active theme. |
wp-admin/includes/deprecated.php: _insert_into_post_button() |
This was once used to display an ‘Insert into Post’ button. |
wp-admin/includes/deprecated.php: _media_button() |
This was once used to display a media button. |
wp-admin/includes/deprecated.php: get_post_to_edit() |
Gets an existing post and format it for editing. |
wp-admin/includes/deprecated.php: get_default_page_to_edit() |
Gets the default page information to use. |
wp-admin/includes/deprecated.php: wp_create_thumbnail() |
This was once used to create a thumbnail from an Image given a maximum side size. |
wp-admin/includes/deprecated.php: wp_nav_menu_locations_meta_box() |
This was once used to display a meta box for the nav menu theme locations. |
wp-admin/includes/deprecated.php: wp_update_core() |
This was once used to kick-off the Core Updater. |
wp-admin/includes/deprecated.php: wp_update_plugin() |
This was once used to kick-off the Plugin Updater. |
wp-admin/includes/deprecated.php: wp_update_theme() |
This was once used to kick-off the Theme Updater. |
wp-admin/includes/deprecated.php: media_upload_audio() |
Handles uploading an audio file. |
wp-admin/includes/deprecated.php: media_upload_video() |
Handles uploading a video file. |
wp-admin/includes/deprecated.php: media_upload_file() |
Handles uploading a generic file. |
wp-admin/includes/deprecated.php: type_url_form_image() |
Handles retrieving the insert-from-URL form for an image. |
wp-admin/includes/deprecated.php: type_url_form_audio() |
Handles retrieving the insert-from-URL form for an audio file. |
wp-admin/includes/deprecated.php: type_url_form_video() |
Handles retrieving the insert-from-URL form for a video file. |
wp-admin/includes/deprecated.php: type_url_form_file() |
Handles retrieving the insert-from-URL form for a generic file. |
wp-admin/includes/deprecated.php: add_contextual_help() |
Add contextual help text for a page. |
wp-admin/includes/deprecated.php: get_allowed_themes() |
Get the allowed themes for the current site. |
wp-admin/includes/deprecated.php: get_broken_themes() |
Retrieves a list of broken themes. |
wp-admin/includes/deprecated.php: wp_dashboard_quick_press_output() |
Output the QuickPress dashboard widget. |
wp-admin/includes/deprecated.php: wp_tiny_mce() |
Outputs the TinyMCE editor. |
wp-admin/includes/deprecated.php: wp_preload_dialogs() |
Preloads TinyMCE dialogs. |
wp-admin/includes/deprecated.php: wp_print_editor_js() |
Prints TinyMCE editor JS. |
wp-admin/includes/deprecated.php: wp_quicktags() |
Handles quicktags. |
wp-admin/includes/deprecated.php: screen_layout() |
Returns the screen layout options. |
wp-admin/includes/deprecated.php: screen_options() |
Returns the screen’s per-page options. |
wp-admin/includes/deprecated.php: favorite_actions() |
Favorite actions were deprecated in version 3.2. Use the admin bar instead. |
wp-admin/includes/deprecated.php: media_upload_image() |
Handles uploading an image. |
wp-admin/includes/deprecated.php: codepress_get_lang() |
Determines the language to use for CodePress syntax highlighting. |
wp-admin/includes/deprecated.php: codepress_footer_js() |
Adds JavaScript required to make CodePress work on the theme/plugin file editors. |
wp-admin/includes/deprecated.php: use_codepress() |
Determine whether to use CodePress. |
wp-admin/includes/deprecated.php: get_author_user_ids() |
Get all user IDs. |
wp-admin/includes/deprecated.php: get_editable_authors() |
Gets author users who can edit posts. |
wp-admin/includes/deprecated.php: get_editable_user_ids() |
Gets the IDs of any users who can edit posts. |
wp-admin/includes/deprecated.php: get_nonauthor_user_ids() |
Gets all users who are not authors. |
wp-admin/includes/deprecated.php: get_others_unpublished_posts() |
Retrieves editable posts from other users. |
wp-admin/includes/deprecated.php: get_others_drafts() |
Retrieve drafts from other users. |
wp-admin/includes/deprecated.php: get_others_pending() |
Retrieve pending review posts from other users. |
wp-admin/includes/deprecated.php: tinymce_include() | |
wp-admin/includes/deprecated.php: documentation_link() |
Unused Admin function. |
wp-admin/includes/deprecated.php: wp_shrink_dimensions() |
Calculates the new dimensions for a downsampled image. |
wp-admin/includes/deprecated.php: get_udims() |
Calculated the new dimensions for a downsampled image. |
wp-admin/includes/deprecated.php: dropdown_categories() |
Legacy function used to generate the categories checklist control. |
wp-admin/includes/deprecated.php: dropdown_link_categories() |
Legacy function used to generate a link categories checklist control. |
wp-admin/includes/deprecated.php: get_real_file_to_edit() |
Get the real filesystem path to a file to edit within the admin. |
wp-admin/includes/deprecated.php: wp_dropdown_cats() |
Legacy function used for generating a categories drop-down control. |
wp-admin/includes/deprecated.php: add_option_update_handler() |
Register a setting and its sanitization callback |
wp-admin/includes/deprecated.php: remove_option_update_handler() |
Unregister a setting |
wp-admin/includes/deprecated.php: image_attachment_fields_to_save() |
Was used to filter input from media_upload_form_handler() and to assign a default post_title from the file name if none supplied. |
wp-admin/includes/theme-install.php: install_themes_feature_list() |
Retrieves the list of WordPress theme features (aka theme tags). |
wp-admin/includes/theme-install.php: display_theme() |
Prints a theme on the Install Themes pages. |
wp-admin/includes/class-wp-filesystem-base.php: WP_Filesystem_Base::find_base_dir() |
Locates a folder on the remote filesystem. |
wp-admin/includes/class-wp-filesystem-base.php: WP_Filesystem_Base::get_base_dir() |
Locates a folder on the remote filesystem. |
wp-admin/includes/ms-deprecated.php: install_global_terms() |
Install global terms. |
wp-admin/includes/ms-deprecated.php: is_wpmu_sitewide_plugin() |
Deprecated functionality for determining if the current plugin is network-only. |
wp-admin/includes/ms-deprecated.php: get_site_allowed_themes() |
Deprecated functionality for getting themes network-enabled themes. |
wp-admin/includes/ms-deprecated.php: wpmu_get_blog_allowedthemes() |
Deprecated functionality for getting themes allowed on a specific site. |
wp-admin/includes/ms-deprecated.php: wpmu_menu() |
Outputs the WPMU menu. |
wp-admin/includes/ms-deprecated.php: wpmu_checkAvailableSpace() |
Determines if the available space defined by the admin has been exceeded by the user. |
wp-admin/includes/ms-deprecated.php: mu_options() |
WPMU options. |
wp-admin/includes/ms-deprecated.php: activate_sitewide_plugin() |
Deprecated functionality for activating a network-only plugin. |
wp-admin/includes/ms-deprecated.php: deactivate_sitewide_plugin() |
Deprecated functionality for deactivating a network-only plugin. |
wp-admin/includes/deprecated.php: _wp_privacy_requests_screen_options() |
Was used to add options for the privacy requests screens before they were separate files. |
wp-includes/deprecated.php: add_option_whitelist() |
Adds an array of options to the list of allowed options. |
wp-includes/deprecated.php: remove_option_whitelist() |
Removes a list of options from the allowed options list. |
wp-admin/includes/ms-deprecated.php: sync_category_tag_slugs() |
Synchronizes category and post tag slugs when global terms are enabled. |
wp-includes/ms-deprecated.php: update_user_status() |
Update the status of a user in the database. |
xmlrpc.php: logIO() |
logIO() – Writes logging info to a file. |
Changelog
Version | Description |
---|---|
5.4.0 | The error type is now classified as E_USER_DEPRECATED (used to default to E_USER_NOTICE). |
2.5.0 | Introduced. |