esc_url( string $url, string[] $protocols = null, string $_context = 'display' )
Checks and cleans a URL.
Description
A number of characters are removed from the URL. If the URL is for displaying (the default behavior) ampersands are also replaced. The ‘clean_url’ filter is applied to the returned cleaned URL.
Parameters
- $url
-
(Required) The URL to be cleaned.
- $protocols
-
(Optional) An array of acceptable protocols.<br> Defaults to return value of wp_allowed_protocols().
Default value: null
- $_context
-
(Optional) Private. Use sanitize_url() for database usage.
Default value: 'display'
Return
(string) The cleaned URL after the 'clean_url' filter is applied.<br> An empty string is returned if $url
specifies a protocol other than those in $protocols
, or if $url
contains an empty string.
Source
File: wp-includes/formatting.php
function esc_url( $url, $protocols = null, $_context = 'display' ) {
$original_url = $url;
if ( '' == $url )
return $url;
$url = str_replace( ' ', '%20', $url );
$url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$\|*\'()\[\]\\x80-\\xff]|i', '', $url);
if ( '' === $url ) {
return $url;
}
if ( 0 !== stripos( $url, 'mailto:' ) ) {
$strip = array('%0d', '%0a', '%0D', '%0A');
$url = _deep_replace($strip, $url);
}
$url = str_replace(';//', '://', $url);
/* If the URL doesn't appear to contain a scheme, we
* presume it needs http:// prepended (unless a relative
* link starting with /, # or ? or a php file).
*/
if ( strpos($url, ':') === false && ! in_array( $url[0], array( '/', '#', '?' ) ) &&
! preg_match('/^[a-z0-9-]+?\.php/i', $url) )
$url = 'http://' . $url;
// Replace ampersands and single quotes only when displaying.
if ( 'display' == $_context ) {
$url = wp_kses_normalize_entities( $url );
$url = str_replace( '&', '&', $url );
$url = str_replace( "'", ''', $url );
}
if ( ( false !== strpos( $url, '[' ) ) || ( false !== strpos( $url, ']' ) ) ) {
$parsed = wp_parse_url( $url );
$front = '';
if ( isset( $parsed['scheme'] ) ) {
$front .= $parsed['scheme'] . '://';
} elseif ( '/' === $url[0] ) {
$front .= '//';
}
if ( isset( $parsed['user'] ) ) {
$front .= $parsed['user'];
}
if ( isset( $parsed['pass'] ) ) {
$front .= ':' . $parsed['pass'];
}
if ( isset( $parsed['user'] ) || isset( $parsed['pass'] ) ) {
$front .= '@';
}
if ( isset( $parsed['host'] ) ) {
$front .= $parsed['host'];
}
if ( isset( $parsed['port'] ) ) {
$front .= ':' . $parsed['port'];
}
$end_dirty = str_replace( $front, '', $url );
$end_clean = str_replace( array( '[', ']' ), array( '%5B', '%5D' ), $end_dirty );
$url = str_replace( $end_dirty, $end_clean, $url );
}
if ( '/' === $url[0] ) {
$good_protocol_url = $url;
} else {
if ( ! is_array( $protocols ) )
$protocols = wp_allowed_protocols();
$good_protocol_url = wp_kses_bad_protocol( $url, $protocols );
if ( strtolower( $good_protocol_url ) != strtolower( $url ) )
return '';
}
/**
* Filters a string cleaned and escaped for output as a URL.
*
* @since WP-2.3.0
*
* @param string $good_protocol_url The cleaned URL to be returned.
* @param string $original_url The URL prior to cleaning.
* @param string $_context If 'display', replace ampersands and single quotes only.
*/
return apply_filters( 'clean_url', $good_protocol_url, $original_url, $_context );
}
Related
Uses
Uses | Description |
---|---|
wp-includes/compat.php: str_contains() |
Polyfill for |
wp-includes/class-pop3.php: stripos() | |
wp-includes/http.php: wp_parse_url() |
A wrapper for PHP’s parse_url() function that handles consistency in the return values across PHP versions. |
wp-includes/plugin.php: apply_filters() |
Calls the callback functions that have been added to a filter hook. |
wp-includes/kses.php: wp_kses_normalize_entities() |
Converts and fixes HTML entities. |
wp-includes/kses.php: wp_kses_bad_protocol() |
Sanitizes a string and removed disallowed URL protocols. |
wp-includes/formatting.php: _deep_replace() |
Performs a deep string replace operation to ensure the values in $search are no longer present. |
wp-includes/formatting.php: clean_url |
Filters a string cleaned and escaped for output as a URL. |
wp-includes/functions.php: wp_allowed_protocols() |
Retrieves a list of protocols to allow in HTML attributes. |
Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-automatic-updater.php: WP_Automatic_Updater::send_plugin_theme_email() |
Sends an email upon the completion or failure of a plugin or theme background update. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_thumbnail() |
Handles the thumbnail column output. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_used_in() |
Handles the used-in column output. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_classicpress_version() |
Tests for WordPress version and outputs it. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_plugin_version() |
Tests if plugins are outdated, or unnecessary. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_theme_version() |
Tests if themes are outdated, or unnecessary. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_php_version() |
Tests if the supplied PHP version is supported. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_php_extensions() |
Tests if required PHP modules are installed on the host. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_sql_server() |
Tests if the SQL server is up to date. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_dotorg_communication() |
Tests if the site can communicate with WordPress.org. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_is_in_debug_mode() |
Tests if debug information is enabled. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_https_status() |
Tests if the site is serving content over HTTPS. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_authorization_header() |
Tests if the Authorization header has the expected values. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_persistent_object_cache() |
Tests if the site uses persistent object cache and recommends to use it if not. |
wp-admin/includes/plugin.php: paused_plugins_notice() |
Renders an admin notice in case some plugins have been paused due to errors. |
wp-admin/includes/plugin.php: deactivated_plugins_notice() |
Renders an admin notice when a plugin was deactivated during an update. |
wp-admin/includes/plugin.php: validate_plugin_requirements() |
Validates the plugin requirements for ClassicPress version and PHP version. |
wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::get_views() |
Gets links to filter sites by status. |
wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php: WP_Privacy_Data_Export_Requests_List_Table::column_email() |
Actions column. |
wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php: WP_Privacy_Data_Export_Requests_List_Table::column_next_steps() |
Displays the next steps column. |
wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php: WP_Privacy_Data_Removal_Requests_List_Table::column_email() |
Actions column. |
wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php: WP_Privacy_Data_Removal_Requests_List_Table::column_next_steps() |
Next steps column. |
wp-admin/includes/class-wp-list-table.php: WP_List_Table::get_views_links() |
Generates views links. |
wp-admin/includes/dashboard.php: wp_dashboard_php_nag() |
Displays the PHP update nag. |
wp-admin/includes/dashboard.php: wp_dashboard_site_health() |
Displays the Site Health Status widget. |
wp-admin/includes/dashboard.php: cp_dashboard_directory() |
Display the ClassicPress Directory Inform users about the new ClassicPress directory and allow to install the ClassicPress Directory Integration plugin. |
wp-admin/includes/update.php: wp_recovery_mode_nag() |
Displays a notice when the user is in recovery mode. |
wp-admin/includes/ajax-actions.php: wp_ajax_quick_edit_attachment() |
Ajax handler for updating attachment values and attributes. |
wp-admin/includes/theme.php: paused_themes_notice() |
Renders an admin notice in case some themes have been paused due to errors. |
wp-includes/https-detection.php: wp_is_local_html_output() |
Checks whether a given HTML string is likely an output from this WordPress site. |
wp-includes/user.php: wp_list_users() |
Lists all the users of the site, with several options available. |
wp-includes/widgets/class-wp-widget-media.php: WP_Widget_Media::get_l10n_defaults() |
Returns the default localized strings used by the widget. |
wp-includes/functions.php: wp_get_update_php_annotation() |
Returns the default annotation for the web hosting altering the “Update PHP” page URL. |
wp-includes/functions.php: wp_direct_php_update_button() |
Displays a button directly linking to a PHP update process. |
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php: WP_Sitemaps_Stylesheet::get_sitemap_stylesheet() |
Returns the escaped XSL for all sitemaps, except index. |
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php: WP_Sitemaps_Stylesheet::get_sitemap_index_stylesheet() |
Returns the escaped XSL for the index sitemaps. |
wp-includes/sitemaps/class-wp-sitemaps-renderer.php: WP_Sitemaps_Renderer::__construct() |
WP_Sitemaps_Renderer constructor. |
wp-includes/sitemaps/class-wp-sitemaps-renderer.php: WP_Sitemaps_Renderer::get_sitemap_index_xml() |
Gets XML for a sitemap index. |
wp-includes/sitemaps/class-wp-sitemaps-renderer.php: WP_Sitemaps_Renderer::get_sitemap_xml() |
Gets XML for a sitemap. |
wp-includes/sitemaps/class-wp-sitemaps.php: WP_Sitemaps::add_robots() |
Adds the sitemap index to robots.txt. |
wp-includes/comment-template.php: display_comment_metadata() |
Outputs comment metadata |
wp-includes/general-template.php: wp_preload_resources() |
Prints resource preloads directives to browsers. |
wp-includes/formatting.php: cp_attributes() |
Provide a way to filter and escape the HTML attributes being output. |
wp-signup.php: signup_another_blog() |
Shows a form for returning users to sign up for another site. |
wp-signup.php: confirm_another_blog_signup() |
Shows a message confirming that the new site has been created. |
wp-includes/user.php: retrieve_password() |
Handles sending a password retrieval email to a user. |
wp-includes/author-template.php: get_the_author_posts_link() |
Retrieves an HTML link to the author page of the current post’s author. |
wp-includes/author-template.php: wp_list_authors() |
Lists all the authors of the site, with several options available. |
wp-login.php: login_footer() |
Outputs the footer for the login page. |
wp-includes/author-template.php: get_the_author_link() |
Retrieves either author’s link or author’s name. |
wp-includes/deprecated.php: get_index_rel_link() |
Get site index relational link. |
wp-includes/formatting.php: sanitize_url() |
Sanitizes a URL for database or redirect usage. |
wp-includes/deprecated.php: clean_url() |
Checks and cleans a URL. |
wp-includes/deprecated.php: comments_rss() |
Return link to the post RSS feed. |
wp-includes/deprecated.php: get_links() |
Gets the links associated with category by ID. |
wp-includes/customize/class-wp-customize-site-icon-control.php: WP_Customize_Site_Icon_Control::content_template() |
Renders a JS template for the content of the site icon control. |
wp-includes/customize/class-wp-customize-theme-control.php: WP_Customize_Theme_Control::content_template() |
Render a JS template for theme display. |
wp-includes/general-template.php: get_login_image_html() |
Return the HTML for the image on the login screen. This is either a link showing the ClassicPress logo (the default) or the site’s custom login image (if enabled). |
wp-includes/general-template.php: paginate_links() |
Retrieves paginated links for archive post pages. |
wp-includes/general-template.php: wp_admin_css() |
Enqueues or directly prints a stylesheet link to the specified CSS file. |
wp-includes/general-template.php: wp_site_icon() |
Displays site icon meta tags. |
wp-includes/general-template.php: wp_resource_hints() |
Prints resource hints to browsers for pre-fetching, pre-rendering and pre-connecting to web sites. |
wp-includes/general-template.php: feed_links() |
Displays the links to the general feeds. |
wp-includes/general-template.php: feed_links_extra() |
Displays the links to the extra feeds such as category feeds. |
wp-includes/general-template.php: rsd_link() |
Displays the link to the Really Simple Discovery service endpoint. |
wp-includes/general-template.php: get_archives_link() |
Retrieves archive link content based on predefined or custom code. |
wp-includes/general-template.php: wp_register() |
Displays the Registration or Admin link. |
wp-includes/general-template.php: site_icon_url() |
Displays the Site Icon URL. |
wp-includes/general-template.php: get_custom_logo() |
Returns a custom logo, linked to home unless the theme supports removing the link on the home page. |
wp-includes/general-template.php: get_search_form() |
Displays search form. |
wp-includes/general-template.php: wp_loginout() |
Displays the Log In/Out link. |
wp-includes/general-template.php: wp_login_form() |
Provides a simple login form for use anywhere within WordPress. |
wp-includes/script-loader.php: wp_default_scripts() |
Register all ClassicPress scripts. |
wp-includes/widgets/class-wp-widget-media-audio.php: WP_Widget_Media_Audio::__construct() |
Constructor. |
wp-includes/widgets/class-wp-widget-media-video.php: WP_Widget_Media_Video::__construct() |
Constructor. |
wp-includes/widgets/class-wp-widget-rss.php: WP_Widget_RSS::widget() |
Outputs the content for the current RSS widget instance. |
wp-includes/widgets/class-wp-widget-categories.php: WP_Widget_Categories::widget() |
Outputs the content for the current Categories widget instance. |
wp-includes/widgets/class-wp-widget-recent-comments.php: WP_Widget_Recent_Comments::widget() |
Outputs the content for the current Recent Comments widget instance. |
wp-includes/widgets/class-wp-widget-custom-html.php: WP_Widget_Custom_HTML::add_help_text() |
Add help text to widgets admin screen. |
wp-includes/widgets/class-wp-widget-media-image.php: WP_Widget_Media_Image::__construct() |
Constructor. |
wp-includes/widgets/class-wp-widget-media-image.php: WP_Widget_Media_Image::render_media() |
Render the media on the frontend. |
wp-includes/widgets/class-wp-widget-meta.php: WP_Widget_Meta::widget() |
Outputs the content for the current Meta widget instance. |
wp-includes/class-wp-styles.php: WP_Styles::_css_href() |
Generates an enqueued style’s fully-qualified URL. |
wp-includes/pluggable.php: get_avatar() |
Retrieves the avatar |
wp-includes/class-walker-nav-menu.php: Walker_Nav_Menu::start_el() |
Starts the element output. |
wp-includes/bookmark-template.php: _walk_bookmarks() |
The formatted output of a list of bookmarks. |
wp-includes/media-template.php: wp_print_media_templates() |
Prints the templates used in the media manager. |
wp-includes/comment.php: wp_comments_personal_data_exporter() |
Finds and exports personal data associated with an email address from the comments table. |
wp-includes/comment.php: wp_set_comment_cookies() |
Sets the cookies used to store an unauthenticated commentator’s identity. Typically used to recall previous comments by this commentator that are still held in moderation. |
wp-includes/class-walker-page.php: Walker_Page::start_el() |
Outputs the beginning of the current element in the tree. |
wp-includes/admin-bar.php: wp_admin_bar_edit_menu() |
Provides an edit link for posts and terms. |
wp-includes/admin-bar.php: wp_admin_bar_search_menu() |
Adds search form. |
wp-includes/admin-bar.php: wp_admin_bar_my_sites_menu() |
Adds the “My Sites/[Site Name]” menu and all submenus. |
wp-includes/class-wp-embed.php: WP_Embed::maybe_run_ajax_cache() |
If a post/page was saved, then output JavaScript to make an Ajax request that will call WP_Embed::cache_oembed(). |
wp-includes/class-wp-embed.php: WP_Embed::maybe_make_link() |
Conditionally makes a hyperlink based on an internal class variable. |
wp-includes/embed.php: the_embed_site_title() |
Prints the necessary markup for the site title in an embed template. |
wp-includes/embed.php: wp_filter_oembed_result() |
Filters the given oEmbed HTML. |
wp-includes/embed.php: wp_embed_excerpt_more() |
Filters the string in the ‘more’ link displayed after a trimmed excerpt. |
wp-includes/embed.php: get_post_embed_html() |
Retrieves the embed code for a specific post. |
wp-includes/embed.php: wp_embed_handler_video() |
Video embed handler callback. |
wp-includes/embed.php: wp_oembed_add_discovery_links() |
Adds oEmbed discovery links in the head element of the website. |
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::_render() | |
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::_render_item() | |
wp-includes/embed.php: wp_embed_handler_audio() |
Audio embed handler callback. |
wp-includes/link-template.php: get_the_privacy_policy_link() |
Returns the privacy policy link with formatting, when applicable. |
wp-includes/link-template.php: wp_shortlink_wp_head() |
Injects rel=shortlink into the head if a shortlink is defined for the current page. |
wp-includes/link-template.php: the_shortlink() |
Displays the shortlink for a post. |
wp-includes/link-template.php: rel_canonical() |
Outputs rel=canonical for singular queries. |
wp-includes/link-template.php: get_next_comments_link() |
Retrieves the link to the next comments page. |
wp-includes/link-template.php: get_previous_comments_link() |
Retrieves the link to the previous comments page. |
wp-includes/link-template.php: get_pagenum_link() |
Retrieves the link for a page number. |
wp-includes/link-template.php: next_posts() |
Displays or retrieves the next posts page link. |
wp-includes/link-template.php: previous_posts() |
Displays or retrieves the previous posts page link. |
wp-includes/link-template.php: edit_post_link() |
Displays the edit post link for post. |
wp-includes/link-template.php: edit_comment_link() |
Displays the edit comment link with formatting. |
wp-includes/link-template.php: edit_bookmark_link() |
Displays the edit bookmark link anchor content. |
wp-includes/link-template.php: the_feed_link() |
Displays the permalink for the feed type. |
wp-includes/link-template.php: post_comments_feed_link() |
Displays the comment feed link for a post. |
wp-includes/link-template.php: the_permalink() |
Displays the permalink for the current post. |
wp-includes/ms-deprecated.php: get_most_active_blogs() |
Deprecated functionality to retrieve a list of the most active sites. |
wp-includes/ms-blogs.php: get_blogaddress_by_id() |
Gets a full blog URL, given a blog ID. |
wp-includes/ms-blogs.php: get_blogaddress_by_name() |
Gets a full blog URL, given a blog name. |
wp-includes/user.php: send_confirmation_on_profile_email() |
Sends a confirmation request email when a change of user email address is attempted. |
wp-includes/user.php: sanitize_user_field() |
Sanitizes user field based on context. |
wp-includes/class-wp-theme.php: WP_Theme::markup_header() |
Marks up a theme header. |
wp-includes/theme.php: _wp_customize_loader_settings() |
Adds settings for the customize-loader script. |
wp-includes/theme.php: wp_customize_url() |
Returns a URL to load the Customizer. |
wp-includes/theme.php: the_header_video_url() |
Displays header video URL. |
wp-includes/theme.php: header_image() |
Displays header image URL. |
wp-includes/post-thumbnail-template.php: the_post_thumbnail_url() |
Displays the post thumbnail URL. |
wp-includes/category-template.php: get_the_term_list() |
Retrieves a post’s terms as a list with specified format. |
wp-includes/category-template.php: get_term_parents_list() |
Retrieves term parents with separator. |
wp-includes/category-template.php: wp_generate_tag_cloud() |
Generates a tag cloud (heatmap) from provided data. |
wp-includes/category-template.php: get_the_category_list() |
Retrieves category list for a post in either HTML list or custom format. |
wp-includes/category-template.php: wp_list_categories() |
Displays or retrieves the HTML list of categories. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::remove_panel() |
Removes a customize panel. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::register_controls() |
Registers some default controls. |
wp-includes/post-template.php: wp_page_menu() |
Displays or retrieves a list of pages with an optional home link. |
wp-includes/post-template.php: wp_get_attachment_link() |
Retrieves an attachment page link using an image or icon, if possible. |
wp-includes/post-template.php: get_the_password_form() |
Retrieves protected post password form content. |
wp-includes/post-template.php: _wp_link_page() |
Helper function for wp_link_pages(). |
wp-includes/rest-api.php: rest_output_rsd() |
Adds the REST API URL to the WP RSD endpoint. |
wp-includes/rest-api.php: rest_output_link_wp_head() |
Outputs the REST API link tag into page header. |
wp-includes/ms-functions.php: update_network_option_new_admin_email() |
Sends a confirmation request email when a change of network admin email address is attempted. |
wp-includes/ms-functions.php: newuser_notify_siteadmin() |
Notifies the network admin that a new user has been activated. |
wp-includes/ms-functions.php: newblog_notify_siteadmin() |
Notifies the network admin that a new site has been activated. |
wp-includes/ms-functions.php: wpmu_signup_blog_notification() |
Sends a confirmation request email to a user when they sign up for a new site. The new site will not become active until the confirmation link is clicked. |
wp-includes/formatting.php: _make_url_clickable_cb() |
Callback to convert URI match to HTML A element. |
wp-includes/formatting.php: _make_web_ftp_clickable_cb() |
Callback to convert URL match to HTML A element. |
wp-includes/formatting.php: translate_smiley() |
Converts one smiley code to the icon graphic file equivalent. |
wp-includes/class-wp-scripts.php: WP_Scripts::do_item() |
Processes a script dependency. |
wp-includes/class-walker-category.php: Walker_Category::start_el() |
Starts the element output. |
wp-includes/update.php: wp_version_check() |
Checks WordPress version against the newest version. |
wp-includes/feed.php: rss_enclosure() |
Displays the rss enclosure for the current post. |
wp-includes/feed.php: atom_enclosure() |
Displays the atom enclosure for the current post. |
wp-includes/feed.php: self_link() |
Displays the link for the currently displayed feed in a XSS safe way. |
wp-includes/feed.php: the_permalink_rss() |
Displays the permalink to the post for use in feeds. |
wp-includes/feed.php: comments_link_feed() |
Outputs the link to the comments for the current post in an XML safe way. |
wp-includes/feed.php: comment_guid() |
Displays the feed GUID for the current comment. |
wp-includes/feed.php: comment_link() |
Displays the link to the comments. |
wp-includes/comment-template.php: comment_form() |
Outputs a complete commenting form for use within a template. |
wp-includes/comment-template.php: get_comment_reply_link() |
Retrieves HTML content for reply to comment link. |
wp-includes/comment-template.php: comments_template() |
Loads the comment template specified in $file. |
wp-includes/comment-template.php: comments_link() |
Displays the link to the current post comments. |
wp-includes/comment-template.php: get_comment_text() |
Retrieves the text of the current comment. |
wp-includes/comment-template.php: get_comment_author_url() |
Retrieves the URL of the author of the current comment, not linked. |
wp-includes/class-wp-oembed.php: WP_oEmbed::data2html() |
Converts a data object from WP_oEmbed::fetch() and returns the HTML. |
wp-includes/comment-template.php: get_comment_author_email_link() |
Returns the HTML email link to the author of the current comment. |
wp-includes/widgets.php: wp_widget_rss_process() |
Process RSS feed widget data and optionally retrieve feed items. |
wp-includes/widgets.php: wp_widget_rss_output() |
Display the RSS entries in a list. |
wp-includes/widgets.php: wp_widget_rss_form() |
Display RSS widget options form. |
wp-includes/rss.php: wp_rss() |
Display all RSS items in a HTML ordered list. |
wp-includes/functions.php: wp_auth_check_html() |
Outputs the HTML that shows the wp-login dialog when the user is no longer logged in. |
wp-includes/functions.php: wp_nonce_ays() |
Displays “Are You Sure” message to confirm the action being taken. |
wp-includes/functions.php: _default_wp_die_handler() |
Kills WordPress execution and displays HTML page with an error message. |
wp-includes/functions.php: wp_referer_field() |
Retrieves or displays referer hidden field for forms. |
wp-admin/includes/class-custom-background.php: Custom_Background::admin_page() |
Displays the custom background page. |
wp-admin/press-this.php: wp_load_press_this() | |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::show_header_selector() |
Display UI for selecting one of several default headers. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::step_1() |
Display first step of custom header image page. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::step_2() |
Display second step of custom header image page. |
wp-admin/menu-header.php: _wp_menu_output() |
Display menu. |
wp-admin/update-core.php: list_core_update() |
Lists available core updates. |
wp-admin/update-core.php: core_upgrade_preamble() |
Display upgrade ClassicPress for downloading latest or upgrading automatically form. |
wp-admin/update-core.php: list_plugin_updates() | |
wp-admin/update-core.php: list_theme_updates() |
Display the upgrade themes form. |
wp-admin/update-core.php: list_translation_updates() |
Display the update translations form. |
wp-admin/update-core.php: do_core_upgrade() |
Upgrade ClassicPress core display. |
wp-admin/includes/deprecated.php: wp_dashboard_plugins_output() |
Display plugins text for the ClassicPress news widget. |
wp-admin/includes/class-wp-screen.php: WP_Screen::render_screen_meta() |
Renders the screen’s help section. |
wp-admin/includes/class-theme-upgrader-skin.php: Theme_Upgrader_Skin::after() |
Action to perform following a single theme update. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_default() |
Handles output for the default column. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::_get_row_actions() | |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_author() |
Handles the author column output. |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::no_items() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::single_row() | |
wp-admin/includes/class-wp-privacy-policy-content.php: WP_Privacy_Policy_Content::policy_text_changed_notice() |
Output a warning when some privacy info has changed. |
wp-admin/includes/class-wp-privacy-policy-content.php: WP_Privacy_Policy_Content::notice() |
Add a notice with a link to the guide when editing the privacy policy page. |
wp-admin/includes/misc.php: update_option_new_admin_email() |
Sends a confirmation request email when a change of site admin email address is attempted. |
wp-admin/includes/misc.php: admin_color_scheme_picker() |
Displays the default admin color scheme picker (Used in user-edit.php). |
wp-admin/includes/misc.php: wp_admin_canonical_url() |
Removes single-use URL parameters and create canonical link based on new URL. |
wp-admin/includes/misc.php: wp_print_plugin_file_tree() |
Outputs the formatted file list for the plugin file editor. |
wp-admin/includes/misc.php: wp_print_theme_file_tree() |
Outputs the formatted file list for the theme file editor. |
wp-admin/includes/class-wp-list-table.php: WP_List_Table::view_switcher() |
Displays a view switcher. |
wp-admin/includes/class-wp-list-table.php: WP_List_Table::comments_bubble() |
Displays a comment count bubble. |
wp-admin/includes/class-wp-list-table.php: WP_List_Table::pagination() |
Displays the pagination. |
wp-admin/includes/class-wp-list-table.php: WP_List_Table::print_column_headers() |
Prints column headers, accounting for hidden and sortable columns. |
wp-admin/includes/media.php: media_upload_max_image_resize() |
Displays the checkbox to scale images. |
wp-admin/includes/media.php: edit_form_image_editor() |
Displays the image and editor in the post editor |
wp-admin/includes/media.php: attachment_submitbox_metadata() |
Displays non-editable attachment metadata in the publish meta box. |
wp-admin/includes/media.php: media_upload_library_form() |
Outputs the legacy media upload form for the media library. |
wp-admin/includes/media.php: media_upload_type_form() |
Outputs the legacy media upload form for a given media type. |
wp-admin/includes/media.php: media_upload_type_url_form() |
Outputs the legacy media upload form for external media. |
wp-admin/includes/media.php: media_upload_gallery_form() |
Adds gallery form to upload iframe. |
wp-admin/includes/media.php: wp_media_upload_handler() |
Handles the process of uploading media. |
wp-admin/includes/media.php: image_link_input_fields() |
Retrieves HTML for the Link URL buttons with the default link type as specified. |
wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::get_views() | |
wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::column_name() |
Handles the name column output. |
wp-admin/includes/media.php: the_media_upload_tabs() |
Outputs the legacy media upload tabs UI. |
wp-admin/includes/media.php: get_image_send_to_editor() |
Retrieves the image HTML to send to the editor. |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::get_views() | |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::handle_row_actions() |
Generates and displays row actions links. |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::column_comment() | |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::column_author() | |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::column_date() | |
wp-admin/includes/template.php: wp_import_upload_form() |
Outputs the form used by the importers to accept the data to be imported. |
wp-admin/includes/network.php: network_step2() |
Prints step 2 for Network installation process. |
wp-admin/includes/image-edit.php: wp_image_editor() |
Loads the WP image-editing interface. |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::get_edit_link() |
Helper to create links to edit.php with params. |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::get_views() | |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::handle_row_actions() |
Generates and displays row action links. |
wp-admin/includes/class-wp-ms-users-list-table.php: WP_MS_Users_List_Table::column_username() |
Handles the username column output. |
wp-admin/includes/class-wp-ms-users-list-table.php: WP_MS_Users_List_Table::column_email() |
Handles the email column output. |
wp-admin/includes/class-wp-ms-users-list-table.php: WP_MS_Users_List_Table::column_blogs() |
Handles the sites column output. |
wp-admin/includes/class-wp-ms-users-list-table.php: WP_MS_Users_List_Table::handle_row_actions() |
Generates and displays row action links. |
wp-admin/includes/comment.php: get_comment_to_edit() |
Returns a WP_Comment object based on comment ID. |
wp-admin/includes/nav-menu.php: wp_nav_menu_item_post_type_meta_box() |
Displays a meta box for a post type menu item. |
wp-admin/includes/nav-menu.php: wp_nav_menu_item_taxonomy_meta_box() |
Displays a meta box for a taxonomy menu item. |
wp-admin/includes/plugin-install.php: install_dashboard() |
Displays the Featured tab of Add Plugins screen. |
wp-admin/includes/plugin-install.php: install_plugins_upload() |
Displays a form to upload plugins from zip files. |
wp-admin/includes/plugin-install.php: install_plugin_information() |
Displays plugin information in dialog box form. |
wp-admin/includes/theme-install.php: install_themes_upload() |
Displays a form to upload themes from zip files. |
wp-admin/includes/bookmark.php: edit_link() |
Updates or inserts a link using values provided in $_POST. |
wp-admin/includes/bookmark.php: get_default_link_to_edit() |
Retrieves the default link for editing. |
wp-admin/includes/bookmark.php: wp_link_manager_disabled_message() |
Outputs the ‘disabled’ message for the ClassicPress Link Manager. |
wp-admin/includes/ajax-actions.php: wp_ajax_send_attachment_to_editor() |
Ajax handler for sending an attachment to the editor. |
wp-admin/includes/ajax-actions.php: wp_ajax_send_link_to_editor() |
Ajax handler for sending a link to the editor. |
wp-admin/includes/class-wp-plugin-install-list-table.php: WP_Plugin_Install_List_Table::display_rows() | |
wp-admin/includes/upgrade.php: wp_install_defaults() |
Creates the initial content for a newly-installed site. |
wp-admin/includes/meta-boxes.php: post_submit_meta_box() |
Displays post submit form fields. |
wp-admin/includes/class-theme-installer-skin.php: Theme_Installer_Skin::after() |
Action to perform following a single theme install. |
wp-admin/includes/update-core.php: update_core() |
Upgrades the core of ClassicPress. |
wp-admin/includes/class-wp-privacy-requests-table.php: WP_Privacy_Requests_Table::get_views() |
Get an associative array ( id => link ) with the list of views available on this table. |
wp-admin/includes/class-wp-privacy-requests-table.php: WP_Privacy_Requests_Table::column_email() |
Actions column. Overridden by children. |
wp-admin/includes/class-walker-nav-menu-edit.php: Walker_Nav_Menu_Edit::start_el() |
Start the element output. |
wp-admin/includes/theme.php: get_theme_update_available() |
Retrieves the update link if there is a theme update available. |
wp-admin/includes/theme.php: wp_prepare_themes_for_js() |
Prepares themes for JavaScript. |
wp-admin/includes/theme.php: customize_themes_print_templates() |
Prints JS templates for the theme-browsing UI in the Customizer. |
wp-admin/includes/plugin.php: menu_page_url() |
Gets the URL to access a particular menu page based on the slug it was registered with. |
wp-admin/includes/plugin.php: _get_plugin_data_markup_translate() |
Sanitizes plugin data, optionally adds markup, optionally translates. |
wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::column_blogname() |
Handles the site name column output. |
wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::column_users() |
Handles the users column output. |
wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::handle_row_actions() |
Generates and displays row action links. |
wp-admin/includes/class-wp-themes-list-table.php: WP_Themes_List_Table::display_rows() | |
wp-admin/includes/file.php: request_filesystem_credentials() |
Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem. |
wp-admin/includes/privacy-tools.php: wp_privacy_generate_personal_data_export_group_html() |
Generate a single group for the personal data export report. |
wp-admin/includes/post.php: get_sample_permalink_html() |
Returns the HTML of the sample permalink slug editor. |
wp-admin/includes/post.php: _wp_post_thumbnail_html() |
Returns HTML for the post thumbnail meta box. |
wp-admin/includes/post.php: _admin_notice_post_locked() |
Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post. |
wp-admin/includes/dashboard.php: wp_dashboard_browser_nag() |
Displays the browser update nag. |
wp-admin/includes/dashboard.php: wp_dashboard_quota() |
Displays file upload quota on dashboard. |
wp-admin/includes/dashboard.php: _wp_dashboard_recent_comments_row() |
Outputs a row for the Recent Comments widget. |
wp-admin/includes/class-wp-theme-install-list-table.php: WP_Theme_Install_List_Table::single_row() |
Prints a theme from the WordPress.org API. |
wp-admin/includes/class-wp-theme-install-list-table.php: WP_Theme_Install_List_Table::theme_installer_single() |
Prints the wrapper for the theme installer with a provided theme’s data. |
wp-admin/includes/class-wp-theme-install-list-table.php: WP_Theme_Install_List_Table::install_theme_info() |
Prints the info for a theme (to be used in the theme installer modal). |
wp-admin/includes/update.php: wp_plugin_update_row() |
Displays update information for a plugin. |
wp-admin/includes/update.php: wp_theme_update_row() |
Displays update information for a theme. |
wp-admin/includes/dashboard.php: wp_add_dashboard_widget() |
Adds a new dashboard widget. |
wp-admin/includes/dashboard.php: wp_network_dashboard_right_now() | |
wp-admin/includes/dashboard.php: wp_dashboard_quick_press() |
The Quick Draft widget display and creation of drafts. |
wp-admin/includes/dashboard.php: wp_dashboard_recent_drafts() |
Show recent drafts of the user on the dashboard. |
wp-admin/includes/update.php: update_nag() |
Returns core update notification message. |
wp-admin/includes/ms.php: network_edit_site_nav() |
Outputs the HTML for a network’s “Edit Site” tabular interface. |
wp-admin/includes/ms.php: _access_denied_splash() |
Displays an access denied message when a user tries to view a site’s dashboard they do not have access to. |
wp-admin/includes/ms.php: site_admin_notice() |
Displays an admin notice to upgrade all sites after a core upgrade. |
wp-admin/includes/ms.php: choose_primary_blog() |
Handles the display of choosing a user’s primary site. |
wp-admin/includes/ms.php: confirm_delete_users() | |
wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::single_row() |
Generate HTML for a single row on the users.php admin panel. |
wp-admin/includes/widgets.php: wp_widget_control() |
Meta widget used to display the control form for a widget. |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::column_name() | |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::handle_row_actions() |
Generates and displays row action links. |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::column_posts() | |
wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::get_views() |
Return an associative array listing all the views that can be used with this table. |
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |