Parsed: 119414
<?php /** * Deprecated functions from past WordPress versions. You shouldn't use these * functions and look for the alternatives instead. The functions will be * removed in a later version. * * @package WordPress * @subpackage Deprecated */ /* * Deprecated functions come here to die. */ /* function get_postdata() – Retrieves all post data for a given post. */ /* function start_wp() – Sets up the WordPress Loop. */ /* function the_category_ID() – Returns or prints a category ID. */ /* function the_category_head() – Prints a category with optional text before and after. */ /* function previous_post() – Prints a link to the previous post. */ /* function next_post() – Prints link to the next post. */ /* function user_can_create_post() – Whether user can create a post. */ /* function user_can_create_draft() – Whether user can create a post. */ /* function user_can_edit_post() – Whether user can edit a post. */ /* function user_can_delete_post() – Whether user can delete a post. */ /* function user_can_set_post_date() – Whether user can set new posts’ dates. */ /* function user_can_edit_post_date() – Whether user can delete a post. */ /* function user_can_edit_post_comments() – Whether user can delete a post. */ /* function user_can_delete_post_comments() – Whether user can delete a post. */ /* function user_can_edit_user() – Can user can edit other user. */ /* function get_linksbyname() – Gets the links associated with category $cat_name. */ /* function wp_get_linksbyname() – Gets the links associated with the named category. */ /* function get_linkobjectsbyname() – Gets an array of link objects associated with category $cat_name. */ /* function get_linkobjects() – Gets an array of link objects associated with category n. */ /* function get_linksbyname_withrating() – Gets the links associated with category ‘cat_name’ and display rating stars/chars. */ /* function get_links_withrating() – Gets the links associated with category n and display rating stars/chars. */ /* function get_autotoggle() – Gets the auto_toggle setting. */ /* function list_cats() – Lists categories. */ /* function wp_list_cats() – Lists categories. */ /* function dropdown_cats() – Deprecated method for generating a drop-down of categories. */ /* function list_authors() – Lists authors. */ /* function wp_get_post_cats() – Retrieves a list of post categories. */ /* function wp_set_post_cats() – Sets the categories that the post id belongs to. */ /* function get_archives() – Retrieves a list of archives. */ /* function get_author_link() – Returns or Prints link to the author’s posts. */ /* function link_pages() – Print list of pages based on arguments. */ /* function get_settings() – Get value based on option. */ /* function permalink_link() – Print the permalink of the current post in the loop. */ /* function permalink_single_rss() – Print the permalink to the RSS feed. */ /* function wp_get_links() – Gets the links associated with category. */ /* function get_links() – Gets the links associated with category by ID. */ /* function get_links_list() – Output entire list of links by category. */ /* function links_popup_script() – Show the link to the links popup and the number of links. */ /* function get_linkrating() – Legacy function that retrieved the value of a link’s link_rating field. */ /* function get_linkcatname() – Gets the name of category by id. */ /* function comments_rss_link() – Print RSS comment feed link. */ /* function get_category_rss_link() – Print/Return link to category RSS2 feed. */ /* function get_author_rss_link() – Print/Return link to author RSS feed. */ /* function comments_rss() – Return link to the post RSS feed. */ /* function create_user() – An alias of wp_create_user(). */ /* function gzip_compression() – Unused function. */ /* function get_commentdata() – Retrieve an array of comment data about comment $comment_ID. */ /* function get_catname() – Retrieve the category name by the category ID. */ /* function get_category_children() – Retrieve category children list separated before and after the term IDs. */ /* function get_all_category_ids() – Retrieves all category IDs. */ /* function get_the_author_description() – Retrieve the description of the author of the current post. */ /* function the_author_description() – Display the description of the author of the current post. */ /* function get_the_author_login() – Retrieve the login name of the author of the current post. */ /* function the_author_login() – Display the login name of the author of the current post. */ /* function get_the_author_firstname() – Retrieve the first name of the author of the current post. */ /* function the_author_firstname() – Display the first name of the author of the current post. */ /* function get_the_author_lastname() – Retrieve the last name of the author of the current post. */ /* function the_author_lastname() – Display the last name of the author of the current post. */ /* function get_the_author_nickname() – Retrieve the nickname of the author of the current post. */ /* function the_author_nickname() – Display the nickname of the author of the current post. */ /* function get_the_author_email() – Retrieve the email of the author of the current post. */ /* function the_author_email() – Display the email of the author of the current post. */ /* function get_the_author_icq() – Retrieve the ICQ number of the author of the current post. */ /* function the_author_icq() – Display the ICQ number of the author of the current post. */ /* function get_the_author_yim() – Retrieve the Yahoo! IM name of the author of the current post. */ /* function the_author_yim() – Display the Yahoo! IM name of the author of the current post. */ /* function get_the_author_msn() – Retrieve the MSN address of the author of the current post. */ /* function the_author_msn() – Display the MSN address of the author of the current post. */ /* function get_the_author_aim() – Retrieve the AIM address of the author of the current post. */ /* function the_author_aim() – Display the AIM address of the author of the current post. */ /* function get_author_name() – Retrieve the specified author’s preferred display name. */ /* function get_the_author_url() – Retrieve the URL to the home page of the author of the current post. */ /* function the_author_url() – Display the URL to the home page of the author of the current post. */ /* function get_the_author_ID() – Retrieve the ID of the author of the current post. */ /* function the_author_ID() – Display the ID of the author of the current post. */ /* function the_content_rss() – Display the post content for the feed. */ /* function make_url_footnote() – Strip HTML and put links at the bottom of stripped content. */ /* function _c() – Retrieve translated string with vertical bar context */ /* function translate_with_context() – Translates $text like translate(), but assumes that the text contains a context after its last vertical bar. */ /* function _nc() – Legacy version of _n(), which supports contexts. */ /* function __ngettext() – Retrieve the plural or single form based on the amount. */ /* function __ngettext_noop() – Register plural strings in POT file, but don’t translate them. */ /* function get_alloptions() – Retrieve all autoload options, or all options if no autoloaded ones exist. */ /* function get_the_attachment_link() – Retrieve HTML content of attachment image with link. */ /* function get_attachment_icon_src() – Retrieve icon URL and Path. */ /* function get_attachment_icon() – Retrieve HTML content of icon attachment image element. */ /* function get_attachment_innerHTML() – Retrieve HTML content of image element. */ /* function get_link() – Retrieves bookmark data based on ID. */ /* function clean_url() – Checks and cleans a URL. */ /* function js_escape() – Escape single quotes, specialchar double quotes, and fix line endings. */ /* function wp_specialchars() – Legacy escaping for HTML blocks. */ /* function attribute_escape() – Escaping for HTML attributes. */ /* function register_sidebar_widget() – Register widget for sidebar with backward compatibility. */ /* function unregister_sidebar_widget() – Serves as an alias of wp_unregister_sidebar_widget(). */ /* function register_widget_control() – Registers widget control callback for customizing options. */ /* function unregister_widget_control() – Alias of wp_unregister_widget_control(). */ /* function delete_usermeta() – Remove user meta data. */ /* function get_usermeta() – Retrieve user metadata. */ /* function update_usermeta() – Update metadata of user. */ /* function get_users_of_blog() – Get users for the site. */ /* function automatic_feed_links() – Enable/disable automatic general feed link outputting. */ /* function get_profile() – Retrieve user data based on field. */ /* function get_usernumposts() – Retrieves the number of posts a user has written. */ /* function funky_javascript_callback() – Callback used to change %uXXXX to &#YYY; syntax */ /* function funky_javascript_fix() – Fixes JavaScript bugs in browsers. */ /* function is_taxonomy() – Checks that the taxonomy name exists. */ /* function is_term() – Check if Term exists. */ /* function is_plugin_page() – Determines whether the current admin page is generated by a plugin. */ /* function update_category_cache() – Update the categories cache. */ /* function wp_timezone_supported() – Check for PHP timezone support */ /* function the_editor() – Displays an editor: TinyMCE, HTML, or both. */ /* function get_user_metavalues() – Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users */ /* function sanitize_user_object() – Sanitize every user field. */ /* function get_boundary_post_rel_link() – Get boundary post relational link. */ /* function start_post_rel_link() – Display relational link for the first post. */ /* function get_index_rel_link() – Get site index relational link. */ /* function index_rel_link() – Display relational link for the site index. */ /* function get_parent_post_rel_link() – Get parent post relational link. */ /* function parent_post_rel_link() – Display relational link for parent item */ /* function wp_admin_bar_dashboard_view_site_menu() – Add the "Dashboard"/"Visit Site" menu. */ /* function is_blog_user() – Checks if the current user belong to a given site. */ /* function debug_fopen() – Open the file handle for debugging. */ /* function debug_fwrite() – Write contents to the file used for debugging. */ /* function debug_fclose() – Close the debugging file handle. */ /* function get_themes() – Retrieve list of themes with theme data in theme directory. */ /* function get_theme() – Retrieve theme data. */ /* function get_current_theme() – Retrieve current theme name. */ /* function clean_pre() – Accepts matches array from preg_replace_callback in wpautop() or a string. */ /* function add_custom_image_header() – Add callbacks for image header display. */ /* function remove_custom_image_header() – Remove image header support. */ /* function add_custom_background() – Add callbacks for background image display. */ /* function remove_custom_background() – Remove custom background support. */ /* function get_theme_data() – Retrieve theme data from parsed theme file. */ /* function update_page_cache() – Alias of update_post_cache(). */ /* function clean_page_cache() – Will clean the page in the cache. */ /* function wp_explain_nonce() – Retrieve nonce action "Are you sure" message. */ /* function sticky_class() – Display "sticky" CSS class, if a post is sticky. */ /* function _get_post_ancestors() – Retrieve post ancestors. */ /* function wp_load_image() – Load an image from a string, if PHP supports it. */ /* function image_resize() – Scale down an image to fit a particular size and save a new copy of the image. */ /* function wp_get_single_post() – Retrieve a single post, based on post ID. */ /* function user_pass_ok() – Check that the user login name and password is correct. */ /* function _save_post_hook() – Callback formerly fired on the save_post hook. No longer needed. */ /* function gd_edit_image_support() – Check if the installed version of GD supports particular image type */ /* function wp_convert_bytes_to_hr() – Converts an integer byte value to a shorthand byte value. */ /* function _search_terms_tidy() – Formerly used internally to tidy up the search terms. */ /* function rich_edit_exists() – Determine if TinyMCE is available. */ /* function default_topic_count_text() – Old callback for tag link tooltips. */ /* function format_to_post() – Formerly used to escape strings before inserting into the DB. */ /* function like_escape() – Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described. */ /* function url_is_accessable_via_ssl() – Determines if the URL can be accessed over SSL. */ /* function preview_theme() – Start preview theme output buffer. */ /* function _preview_theme_template_filter() – Private function to modify the current template when previewing a theme */ /* function _preview_theme_stylesheet_filter() – Private function to modify the current stylesheet when previewing a theme */ /* function preview_theme_ob_filter() – Callback function for ob_start() to capture all links in the theme. */ /* function preview_theme_ob_filter_callback() – Manipulates preview theme links in order to control and maintain location. */ /* function wp_richedit_pre() – Formats text for the rich text editor. */ /* function wp_htmledit_pre() – Formats text for the HTML editor. */ /* function post_permalink() – Retrieve permalink from post ID. */ /* function wp_get_http() – Perform a HTTP HEAD or GET request. */ /* function force_ssl_login() – Whether SSL login should be forced. */ /* function get_comments_popup_template() – Retrieve path of comment popup template in current or parent template. */ /* function is_comments_popup() – Determines whether the current URL is within the comments popup window. */ /* function comments_popup_script() – Display the JS popup script to show a comment. */ /* function popuplinks() – Adds element attributes to open links in new tabs. */ /* function wp_embed_handler_googlevideo() – The Google Video embed handler callback. */ /* function get_paged_template() – Retrieve path of paged template in current or parent template. */ /* function wp_kses_js_entities() – Removes the HTML JavaScript entities found in early versions of Netscape 4. */ /* function _usort_terms_by_ID() – Sort categories by ID. */ /* function _usort_terms_by_name() – Sort categories by name. */ /* function _sort_nav_menu_items() – Sort menu items by the desired key. */ /* function get_shortcut_link() – Retrieves the Press This bookmarklet link. */ /* function wp_ajax_press_this_save_post() – Ajax handler for saving a post from Press This. */ /* function wp_ajax_press_this_add_category() – Ajax handler for creating new category from Press This. */ /* function wp_get_user_request_data() – Return the user request object for the specified request ID. */ /* function wp_make_content_images_responsive() – Filters ‘img’ elements in post content to add ‘srcset’ and ‘sizes’ attributes. */ /* function wp_unregister_GLOBALS() – Turn register globals off. */ /* function wp_blacklist_check() – Does comment contain disallowed characters or words. */ /* function _wp_register_meta_args_whitelist() – Filters out `register_meta()` args based on an allowed list. */ /* function add_option_whitelist() – Adds an array of options to the list of allowed options. */ /* function remove_option_whitelist() – Removes a list of options from the allowed options list. */ /* function wp_slash_strings_only() – Adds slashes to only string values in an array of values. */ /* function addslashes_strings_only() – Adds slashes only if the provided value is a string. */ /* function noindex() – Displays a noindex meta tag if required by the blog configuration. */ /* function wp_no_robots() – Display a noindex meta tag. */ /* function wp_sensitive_page_meta() – Display a noindex,noarchive meta tag and referrer origin-when-cross-origin meta tag. */ /* function _excerpt_render_inner_columns_blocks() – Render inner blocks from the `core/columns` block for generating an excerpt. */ /* function wp_render_duotone_filter_preset() – Renders the duotone filter SVG and returns the CSS filter property to reference the rendered SVG. */ /* function wp_skip_border_serialization() – Checks whether serialization of the current block’s border properties should occur. */ /* function wp_skip_dimensions_serialization() – Checks whether serialization of the current block’s dimensions properties should occur. */ /* function wp_skip_spacing_serialization() – Checks whether serialization of the current block’s spacing properties should occur. */ /* function wp_add_iframed_editor_assets_html() – Inject the block editor assets that need to be loaded into the editor’s iframe as an inline script. */ /* function wp_get_attachment_thumb_file() – Retrieves thumbnail for an attachment. */ /* function _get_path_to_translation() – Gets the path to a translation file for loading a textdomain just in time. */ /* function _get_path_to_translation_from_lang_dir() – Gets the path to a translation file in the languages directory for the current locale. */ /* function _wp_multiple_block_styles() – Allows multiple block styles. */ /* function wp_typography_get_css_variable_inline_style() – Generates an inline style for a typography feature e.g. text decoration, text transform, and font style. */ /* function global_terms_enabled() – Determines whether global terms are enabled. */ /* function _filter_query_attachment_filenames() – Filter the SQL clauses of an attachment query to include filenames. */ /* function get_page_by_title() – Retrieves a page given its title. */ /* function _resolve_home_block_template() – Returns the correct template for the site’s home page. */