Parsed: 120276
<?php /** * Main WordPress API * * @package WordPress */ require ABSPATH . WPINC . '/option.php'; /* function mysql2date() – Converts given MySQL date string into a different format. */ /* function current_time() – Retrieves the current time based on specified type. */ /* function current_datetime() – Retrieves the current time as an object with the timezone from settings. */ /* function wp_timezone_string() – Retrieves the timezone from site settings as a string. */ /* function wp_timezone() – Retrieves the timezone from site settings as a `DateTimeZone` object. */ /* function date_i18n() – Retrieves the date in localized format, based on a sum of Unix timestamp and timezone offset in seconds. */ /* function wp_date() – Retrieves the date, in localized format. */ /* function wp_maybe_decline_date() – Determines if the date should be declined. */ /* function number_format_i18n() – Convert float number to format based on the locale. */ /* function size_format() – Converts a number of bytes to the largest unit the bytes will fit into. */ /* function human_readable_duration() – Converts a duration to human readable format. */ /* function get_weekstartend() – Get the week start and end from the datetime or date string from MySQL. */ /* function maybe_serialize() – Serialize data, if needed. */ /* function maybe_unserialize() – Unserialize data only if it was serialized. */ /* function is_serialized() – Checks value to find if it was serialized. */ /* function is_serialized_string() – Checks whether serialized data is of string type. */ /* function xmlrpc_getposttitle() – Retrieve post title from XMLRPC XML. */ /* function xmlrpc_getpostcategory() – Retrieve the post category or categories from XMLRPC XML. */ /* function xmlrpc_removepostdata() – XMLRPC XML content without title and category elements. */ /* function wp_extract_urls() – Use RegEx to extract URLs from arbitrary content. */ /* function do_enclose() – Checks content for video and audio links to add as enclosures. */ /* function wp_get_http_headers() – Retrieve HTTP Headers from URL. */ /* function is_new_day() – Determines whether the publish date of the current post in the loop is different from the publish date of the previous post in the loop. */ /* function build_query() – Build URL query based on an associative and, or indexed array. */ /* function _http_build_query() – From php.net (modified by Mark Jaquith to behave like the native PHP5 function). */ /* function add_query_arg() – Retrieves a modified URL query string. */ /* function remove_query_arg() – Removes an item or items from a query string. */ /* function wp_removable_query_args() – Returns an array of single-use query variable names that can be removed from a URL. */ /* function add_magic_quotes() – Walks the array while sanitizing the contents. */ /* function wp_remote_fopen() – HTTP request for URI to retrieve content. */ /* function wp() – Set up the WordPress query. */ /* function get_status_header_desc() – Retrieve the description for the HTTP status. */ /* function status_header() – Set HTTP status header. */ /* function wp_get_nocache_headers() – Gets the HTTP header information to prevent caching. */ /* function nocache_headers() – Set the headers to prevent caching for the different browsers. */ /* function cache_javascript_headers() – Set the headers for caching for 10 days with JavaScript content type. */ /* function get_num_queries() – Retrieve the number of database queries during the WordPress execution. */ /* function bool_from_yn() – Whether input is yes or no. */ /* function do_feed() – Loads the feed template from the use of an action hook. */ /* function do_feed_rdf() – Load the RDF RSS 0.91 Feed template. */ /* function do_feed_rss() – Load the RSS 1.0 Feed Template. */ /* function do_feed_rss2() – Load either the RSS2 comment feed or the RSS2 posts feed. */ /* function do_feed_atom() – Load either Atom comment feed or Atom posts feed. */ /* function do_robots() – Displays the default robots.txt file content. */ /* function do_favicon() – Display the favicon.ico file content. */ /* function is_blog_installed() – Determines whether WordPress is already installed. */ /* function wp_nonce_url() – Retrieve URL with nonce added to URL query. */ /* function wp_nonce_field() – Retrieves or display nonce hidden field for forms. */ /* function wp_referer_field() – Retrieves or displays referer hidden field for forms. */ /* function wp_original_referer_field() – Retrieves or displays original referer hidden field for forms. */ /* function wp_get_referer() – Retrieves referer from ‘_wp_http_referer’ or HTTP referer. */ /* function wp_get_raw_referer() – Retrieves unvalidated referer from the ‘_wp_http_referer’ URL query variable or the HTTP referer. */ /* function wp_get_original_referer() – Retrieves original referer that was posted, if it exists. */ /* function wp_mkdir_p() – Recursive directory creation based on full path. */ /* function path_is_absolute() – Tests if a given filesystem path is absolute. */ /* function path_join() – Joins two filesystem paths together. */ /* function wp_normalize_path() – Normalize a filesystem path. */ /* function get_temp_dir() – Determine a writable directory for temporary files. */ /* function wp_is_writable() – Determine if a directory is writable. */ /* function win_is_writable() – Workaround for Windows bug in is_writable() function */ /* function wp_get_upload_dir() – Retrieves uploads directory information. */ /* function wp_upload_dir() – Returns an array containing the current upload directory’s path and URL. */ /* function _wp_upload_dir() – A non-filtered, non-cached version of wp_upload_dir() that doesn’t check the path. */ /* function wp_unique_filename() – Gets a filename that is sanitized and unique for the given directory. */ /* function _wp_check_alternate_file_names() – Helper function to test if each of an array of file names could conflict with existing files. */ /* function _wp_check_existing_file_names() – Helper function to check if a file name could match an existing image sub-size file name. */ /* function wp_upload_bits() – Creates a file in the upload folder with given content. */ /* function wp_ext2type() – Retrieve the file type based on the extension name. */ /* function wp_get_default_extension_for_mime_type() – Returns first matched extension for the mime-type, as mapped from wp_get_mime_types(). */ /* function wp_check_filetype() – Retrieve the file type from the file name. */ /* function wp_check_filetype_and_ext() – Attempts to determine the real file type of a file. */ /* function wp_get_image_mime() – Returns the real mime type of an image file. */ /* function wp_get_mime_types() – Retrieves the list of mime types and file extensions. */ /* function wp_get_ext_types() – Retrieves the list of common file extensions and their types. */ /* function wp_filesize() – Wrapper for PHP filesize with filters and casting the result as an integer. */ /* function get_allowed_mime_types() – Retrieves the list of allowed mime types and file extensions. */ /* function wp_nonce_ays() – Displays "Are You Sure" message to confirm the action being taken. */ /* function wp_die() – Kills WordPress execution and displays HTML page with an error message. */ /* function _default_wp_die_handler() – Kills WordPress execution and displays HTML page with an error message. */ /* function _ajax_wp_die_handler() – Kills WordPress execution and displays Ajax response with an error message. */ /* function _json_wp_die_handler() – Kills WordPress execution and displays JSON response with an error message. */ /* function _jsonp_wp_die_handler() – Kills WordPress execution and displays JSONP response with an error message. */ /* function _xmlrpc_wp_die_handler() – Kills WordPress execution and displays XML response with an error message. */ /* function _xml_wp_die_handler() – Kills WordPress execution and displays XML response with an error message. */ /* function _scalar_wp_die_handler() – Kills WordPress execution and displays an error message. */ /* function _wp_die_process_input() – Processes arguments passed to wp_die() consistently for its handlers. */ /* function wp_json_encode() – Encode a variable into JSON, with some sanity checks. */ /* function _wp_json_sanity_check() – Performs sanity checks on data that shall be encoded to JSON. */ /* function _wp_json_convert_string() – Converts a string to UTF-8, so that it can be safely encoded to JSON. */ /* function _wp_json_prepare_data() – Prepares response data to be serialized to JSON. */ /* function wp_send_json() – Send a JSON response back to an Ajax request. */ /* function wp_send_json_success() – Send a JSON response back to an Ajax request, indicating success. */ /* function wp_send_json_error() – Send a JSON response back to an Ajax request, indicating failure. */ /* function wp_check_jsonp_callback() – Checks that a JSONP callback is a valid JavaScript callback. */ /* function wp_json_file_decode() – Reads and decodes a JSON file. */ /* function _config_wp_home() – Retrieve the WordPress home page URL. */ /* function _config_wp_siteurl() – Retrieve the WordPress site URL. */ /* function _delete_option_fresh_site() – Delete the fresh site option. */ /* function _mce_set_direction() – Sets the localized direction for MCE plugin. */ /* function smilies_init() – Converts smiley code to the icon graphic file equivalent. */ /* function wp_parse_args() – Merge user defined arguments into defaults array. */ /* function wp_parse_list() – Converts a comma- or space-separated list of scalar values to an array. */ /* function wp_parse_id_list() – Cleans up an array, comma- or space-separated list of IDs. */ /* function wp_parse_slug_list() – Cleans up an array, comma- or space-separated list of slugs. */ /* function wp_array_slice_assoc() – Extracts a slice of an array, given a list of keys. */ /* function wp_recursive_ksort() – Sorts the keys of an array alphabetically. */ /* function _wp_array_get() – Accesses an array in depth based on a path of keys. */ /* function _wp_array_set() – Sets an array in depth based on a path of keys. */ /* function _wp_to_kebab_case() – This function is trying to replicate what lodash’s kebabCase (JS library) does in the client. */ /* function wp_is_numeric_array() – Determines if the variable is a numeric-indexed array. */ /* function wp_filter_object_list() – Filters a list of objects, based on a set of key => value arguments. */ /* function wp_list_filter() – Filters a list of objects, based on a set of key => value arguments. */ /* function wp_list_pluck() – Plucks a certain field out of each object or array in an array. */ /* function wp_list_sort() – Sorts an array of objects or arrays based on one or more orderby arguments. */ /* function wp_maybe_load_widgets() – Determines if Widgets library should be loaded. */ /* function wp_widgets_add_menu() – Appends the Widgets menu to the themes main menu. */ /* function wp_ob_end_flush_all() – Flush all output buffers for PHP 5.2. */ /* function dead_db() – Load custom DB error or display WordPress DB error. */ /* function absint() – Convert a value to non-negative integer. */ /* function _deprecated_function() – Marks a function as deprecated and inform when it has been used. */ /* function _deprecated_constructor() – Marks a constructor as deprecated and informs when it has been used. */ /* function _deprecated_class */ /* function _deprecated_file() – Mark a file as deprecated and inform when it has been used. */ /* function _deprecated_argument() – Marks a function argument as deprecated and inform when it has been used. */ /* function _deprecated_hook() – Marks a deprecated action or filter hook as deprecated and throws a notice. */ /* function _doing_it_wrong() – Marks something as being incorrectly called. */ /* function wp_trigger_error */ /* function is_lighttpd_before_150() – Is the server running earlier than 1.5.0 version of lighttpd? */ /* function apache_mod_loaded() – Determines whether the specified module exist in the Apache config. */ /* function iis7_supports_permalinks() – Check if IIS 7+ supports pretty permalinks. */ /* function validate_file() – Validates a file name and path against an allowed set of rules. */ /* function force_ssl_admin() – Whether to force SSL used for the Administration Screens. */ /* function wp_guess_url() – Guesses the URL for the site. */ /* function wp_suspend_cache_addition() – Temporarily suspend cache additions. */ /* function wp_suspend_cache_invalidation() – Suspend cache invalidation. */ /* function is_main_site() – Determine whether a site is the main site of the current network. */ /* function get_main_site_id() – Gets the main site ID. */ /* function is_main_network() – Determine whether a network is the main network of the Multisite installation. */ /* function get_main_network_id() – Get the main network ID. */ /* function is_site_meta_supported() – Determines whether site meta is enabled. */ /* function wp_timezone_override_offset() – gmt_offset modification for smart timezone handling. */ /* function _wp_timezone_choice_usort_callback() – Sort-helper for timezones. */ /* function wp_timezone_choice() – Gives a nicely-formatted list of timezone strings. */ /* function _cleanup_header_comment() – Strip close comment and close php tags from file headers used by WP. */ /* function wp_scheduled_delete() – Permanently delete comments or posts of any type that have held a status of ‘trash’ for the number of days defined in EMPTY_TRASH_DAYS. */ /* function get_file_data() – Retrieve metadata from a file. */ /* function __return_true() – Returns true. */ /* function __return_false() – Returns false. */ /* function __return_zero() – Returns 0. */ /* function __return_empty_array() – Returns an empty array. */ /* function __return_null() – Returns null. */ /* function __return_empty_string() – Returns an empty string. */ /* function send_nosniff_header() – Send a HTTP header to disable content type sniffing in browsers which support it. */ /* function _wp_mysql_week() – Return a MySQL expression for selecting the week number based on the start_of_week option. */ /* function wp_find_hierarchy_loop() – Find hierarchy loops using a callback function that maps object IDs to parent IDs. */ /* function wp_find_hierarchy_loop_tortoise_hare() – Uses the "The Tortoise and the Hare" algorithm to detect loops. */ /* function send_frame_options_header() – Send a HTTP header to limit rendering of pages to same origin iframes. */ /* function wp_allowed_protocols() – Retrieve a list of protocols to allow in HTML attributes. */ /* function wp_debug_backtrace_summary() – Return a comma-separated string of functions that have been called to get to the current point in code. */ /* function _get_non_cached_ids() – Retrieves IDs that are not already present in the cache. */ /* function _validate_cache_id() – Checks whether the given cache ID is either an integer or an integer-like string. */ /* function _device_can_upload() – Tests if the current device has the capability to upload files. */ /* function wp_is_stream() – Test if a given path is a stream URL */ /* function wp_checkdate() – Test if the supplied date is valid for the Gregorian calendar. */ /* function wp_auth_check_load() – Load the auth check for monitoring whether the user is still logged in. */ /* function wp_auth_check_html() – Outputs the HTML that shows the wp-login dialog when the user is no longer logged in. */ /* function wp_auth_check() – Check whether a user is still logged in, for the heartbeat. */ /* function get_tag_regex() – Return RegEx body to liberally match an opening HTML tag. */ /* function _canonical_charset() – Retrieve a canonical form of the provided charset appropriate for passing to PHP functions such as htmlspecialchars() and charset html attributes. */ /* function mbstring_binary_safe_encoding() – Set the mbstring internal encoding to a binary safe encoding when func_overload is enabled. */ /* function reset_mbstring_encoding() – Reset the mbstring internal encoding to a users previously set encoding. */ /* function wp_validate_boolean() – Filters/validates a variable as a boolean. */ /* function wp_delete_file() – Delete a file */ /* function wp_delete_file_from_directory() – Deletes a file if its path is within the given directory. */ /* function wp_post_preview_js() – Outputs a small JS snippet on preview tabs/windows to remove `window.name` on unload. */ /* function mysql_to_rfc3339() – Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601 (Y-m-dTH:i:s). */ /* function wp_raise_memory_limit() – Attempts to raise the PHP memory limit for memory intensive processes. */ /* function wp_generate_uuid4() – Generate a random UUID (version 4). */ /* function wp_is_uuid() – Validates that a UUID is valid. */ /* function wp_unique_id() – Get unique ID. */ /* function wp_unique_prefixed_id */ /* function wp_cache_get_last_changed() – Gets last changed date for the specified cache group. */ /* function wp_cache_set_last_changed() – Sets last changed date for the specified cache group to now. */ /* function wp_site_admin_email_change_notification() – Send an email to the old site admin email address when the site admin email address changes. */ /* function wp_privacy_anonymize_ip() – Return an anonymized IPv4 or IPv6 address. */ /* function wp_privacy_anonymize_data() – Return uniform "anonymous" data by type. */ /* function wp_privacy_exports_dir() – Returns the directory used to store personal data export files. */ /* function wp_privacy_exports_url() – Returns the URL of the directory used to store personal data export files. */ /* function wp_schedule_delete_old_privacy_export_files() – Schedule a `WP_Cron` job to delete expired export files. */ /* function wp_privacy_delete_old_export_files() – Cleans up export files older than three days old. */ /* function wp_get_update_php_url() – Gets the URL to learn more about updating the PHP version the site is running on. */ /* function wp_get_default_update_php_url() – Gets the default URL to learn more about updating the PHP version the site is running on. */ /* function wp_update_php_annotation() – Prints the default annotation for the web host altering the "Update PHP" page URL. */ /* function wp_get_update_php_annotation() – Returns the default annotation for the web hosting altering the "Update PHP" page URL. */ /* function wp_get_direct_php_update_url() – Gets the URL for directly updating the PHP version the site is running on. */ /* function wp_direct_php_update_button() – Displays a button directly linking to a PHP update process. */ /* function wp_get_update_https_url() – Gets the URL to learn more about updating the site to use HTTPS. */ /* function wp_get_default_update_https_url() – Gets the default URL to learn more about updating the site to use HTTPS. */ /* function wp_get_direct_update_https_url() – Gets the URL for directly updating the site to use HTTPS. */ /* function get_dirsize() – Gets the size of a directory. */ /* function recurse_dirsize() – Get the size of a directory recursively. */ /* function clean_dirsize_cache() – Cleans directory size cache used by recurse_dirsize(). */ /* function is_wp_version_compatible() – Checks compatibility with the current WordPress version. */ /* function is_php_version_compatible() – Checks compatibility with the current PHP version. */ /* function wp_fuzzy_number_match() – Check if two numbers are nearly the same. */ /* function wp_get_admin_notice */ /* function wp_admin_notice */