diff --git a/accessTag.php b/accessTag.php new file mode 100644 index 0000000..11c1e5d --- /dev/null +++ b/accessTag.php @@ -0,0 +1,37 @@ +description = $description; + } + + public static function create(string $body, DescriptionFactory $descriptionFactory = null, ?Context $context = null): self + { + Assert::notNull($descriptionFactory); + return new static($descriptionFactory->create($body, $context)); + } + + public function __toString(): string + { + return (string)$this->description; + } +} + +$factory = DocBlockFactory::createInstance(['access' => Access::class]); diff --git a/composer.json b/composer.json index 808f8ae..3dd306f 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,8 @@ "php-stubs/generator": "^0.8.3", "phpdocumentor/reflection-docblock": "^5.3", "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9.5", + "webmozart/assert": "^1.11.0" }, "suggest": { "paragonie/sodium_compat": "Pure PHP implementation of libsodium", @@ -23,7 +24,8 @@ }, "autoload-dev": { "classmap": [ - "tests/" + "tests/", + "accessTag.php" ] }, "minimum-stability": "stable", diff --git a/phpstan.neon b/phpstan.neon index f9aea2b..628fae2 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,6 +1,7 @@ parameters: level: 8 paths: + - accessTag.php - finder.php - visitor.php - tests/ diff --git a/visitor.php b/visitor.php index 678eee7..ede78a6 100644 --- a/visitor.php +++ b/visitor.php @@ -4,6 +4,7 @@ use phpDocumentor\Reflection\DocBlock; use phpDocumentor\Reflection\DocBlock\Description; +use phpDocumentor\Reflection\DocBlock\Tag; use phpDocumentor\Reflection\DocBlock\Tags\Param; use phpDocumentor\Reflection\DocBlock\Tags\Return_; use phpDocumentor\Reflection\DocBlock\Tags\Var_; @@ -15,6 +16,7 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Function_; use PhpParser\Node\Stmt\Property; +use PhpParser\NodeTraverser; use StubsGenerator\NodeVisitor; abstract class WithChildren @@ -296,6 +298,11 @@ public function enterNode(Node $node) $this->additionalTags[ $symbolName ] = $additions; } + if ($this->isPrivateFunction($node) === true) { + $node->setAttribute('isPrivateFunction', true); + return null; + } + $additions = $this->getAdditionalTagsFromMap($symbolName); if (count($additions) > 0) { @@ -305,6 +312,17 @@ public function enterNode(Node $node) return null; } + public function leaveNode(Node $node, bool $preserveStack = false) + { + if ($node->getAttribute('isPrivateFunction') === true) { + if (!$preserveStack) { + array_pop($this->stack); + } + return NodeTraverser::REMOVE_NODE; + } + return parent::leaveNode($node, $preserveStack); + } + private static function getNodeName(Node $node): string { if ((($node instanceof Function_) || ($node instanceof ClassMethod) || ($node instanceof Class_)) && $node->name instanceof Identifier) { @@ -889,4 +907,26 @@ private static function isOptional(string $description): bool || (stripos($description, 'Defaults to ') !== false) ; } + + private function isPrivateFunction(Node $node): bool + { + if (!($node instanceof Function_)) { + return false; + } + + $docComment = $node->getDocComment(); + if (!($docComment instanceof Doc)) { + return false; + } + + $docblock = $this->docBlockFactory->create($docComment->getText()); + $access = array_map( + static function (Tag $tag): string { + return $tag->__toString(); + }, + $docblock->getTagsByName('access') + ); + + return in_array('private', $access, true); + } }; diff --git a/wordpress-stubs.php b/wordpress-stubs.php index be35d11..15841e8 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -74390,35 +74390,6 @@ function wp_ajax_dashboard_widgets() function wp_ajax_logged_in() { } - // - // Ajax helpers. - // - /** - * Sends back current comment total and new page links if they need to be updated. - * - * Contrary to normal success Ajax response ("1"), die with time() on success. - * - * @since 2.7.0 - * @access private - * - * @param int $comment_id - * @param int $delta - */ - function _wp_ajax_delete_comment_response($comment_id, $delta = -1) - { - } - // - // POST-based Ajax handlers. - // - /** - * Ajax handler for adding a hierarchical term. - * - * @since 3.1.0 - * @access private - */ - function _wp_ajax_add_hierarchical_term() - { - } /** * Ajax handler for deleting a comment. * @@ -75337,17 +75308,6 @@ function wp_set_link_cats($link_id = 0, $link_categories = array()) function wp_update_link($linkdata) { } - /** - * Outputs the 'disabled' message for the WordPress Link Manager. - * - * @since 3.5.0 - * @access private - * - * @global string $pagenow The filename of the current screen. - */ - function wp_link_manager_disabled_message() - { - } // End of class // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- @@ -75557,30 +75517,6 @@ function comment_footer_die($msg) function wp_credits($version = '', $locale = '') { } - /** - * Retrieve the link to a contributor's WordPress.org profile page. - * - * @access private - * @since 3.2.0 - * - * @param string $display_name The contributor's display name (passed by reference). - * @param string $username The contributor's username. - * @param string $profiles URL to the contributor's WordPress.org profile page. - */ - function _wp_credits_add_profile_link(&$display_name, $username, $profiles) - { - } - /** - * Retrieve the link to an external library used in WordPress. - * - * @access private - * @since 3.2.0 - * - * @param string $data External library data (passed by reference). - */ - function _wp_credits_build_object_link(&$data) - { - } /** * Displays the title for a given group of contributors. * @@ -75645,18 +75581,6 @@ function wp_dashboard_setup() function wp_add_dashboard_widget($widget_id, $widget_name, $callback, $control_callback = \null, $callback_args = \null, $context = 'normal', $priority = 'core') { } - /** - * Outputs controls for the current dashboard widget. - * - * @access private - * @since 2.7.0 - * - * @param mixed $dashboard - * @param array $meta_box - */ - function _wp_dashboard_control_callback($dashboard, $meta_box) - { - } /** * Displays the dashboard. * @@ -75706,20 +75630,6 @@ function wp_dashboard_quick_press($error_msg = \false) function wp_dashboard_recent_drafts($drafts = \false) { } - /** - * Outputs a row for the Recent Comments widget. - * - * @access private - * @since 2.7.0 - * - * @global WP_Comment $comment Global comment object. - * - * @param WP_Comment $comment The current comment. - * @param bool $show_date Optional. Whether to display the date. - */ - function _wp_dashboard_recent_comments_row(&$comment, $show_date = \true) - { - } /** * Callback function for Activity widget. * @@ -76682,19 +76592,6 @@ function wp_dashboard_secondary_control() function wp_dashboard_plugins_output($rss, $args = array()) { } - /** - * This was once used to move child posts to a new parent. - * - * @since 2.3.0 - * @deprecated 3.9.0 - * @access private - * - * @param int $old_ID - * @param int $new_ID - */ - function _relocate_children($old_ID, $new_ID) - { - } /** * Add a top-level menu page in the 'objects' section. * @@ -76774,16 +76671,6 @@ function post_form_autocomplete_off() function options_permalink_add_js() { } - /** - * Was used to add options for the privacy requests screens before they were separate files. - * - * @since 4.9.8 - * @access private - * @deprecated 5.3.0 - */ - function _wp_privacy_requests_screen_options() - { - } /** * Was used to filter input from media_upload_form_handler() and to assign a default * post_title from the file name if none supplied. @@ -76983,76 +76870,6 @@ function wp_tempnam($filename = '', $dir = '') function validate_file_to_edit($file, $allowed_files = array()) { } - /** - * Handles PHP uploads in WordPress. - * - * Sanitizes file names, checks extensions for mime type, and moves the file - * to the appropriate directory within the uploads directory. - * - * @access private - * @since 4.0.0 - * - * @see wp_handle_upload_error - * - * @param array $file { - * Reference to a single element from `$_FILES`. Call the function once for each uploaded file. - * - * @type string $name The original name of the file on the client machine. - * @type string $type The mime type of the file, if the browser provided this information. - * @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server. - * @type int $size The size, in bytes, of the uploaded file. - * @type int $error The error code associated with this file upload. - * } - * @param array|false $overrides { - * An array of override parameters for this file, or boolean false if none are provided. - * - * @type callable $upload_error_handler Function to call when there is an error during the upload process. - * @see wp_handle_upload_error(). - * @type callable $unique_filename_callback Function to call when determining a unique file name for the file. - * @see wp_unique_filename(). - * @type string[] $upload_error_strings The strings that describe the error indicated in - * `$_FILES[{form field}]['error']`. - * @type bool $test_form Whether to test that the `$_POST['action']` parameter is as expected. - * @type bool $test_size Whether to test that the file size is greater than zero bytes. - * @type bool $test_type Whether to test that the mime type of the file is as expected. - * @type string[] $mimes Array of allowed mime types keyed by their file extension regex. - * } - * @param string $time Time formatted in 'yyyy/mm'. - * @param string $action Expected value for `$_POST['action']`. - * @return array { - * On success, returns an associative array of file attributes. - * On failure, returns `$overrides['upload_error_handler']( &$file, $message )` - * or `array( 'error' => $message )`. - * - * @type string $file Filename of the newly-uploaded file. - * @type string $url URL of the newly-uploaded file. - * @type string $type Mime type of the newly-uploaded file. - * } - * @phpstan-param array{ - * name?: string, - * type?: string, - * tmp_name?: string, - * size?: int, - * error?: int, - * } $file - * @phpstan-param false|array{ - * upload_error_handler?: callable, - * unique_filename_callback?: callable, - * upload_error_strings?: string[], - * test_form?: bool, - * test_size?: bool, - * test_type?: bool, - * mimes?: string[], - * } $overrides - * @phpstan-return array{ - * file: string, - * url: string, - * type: string, - * } - */ - function _wp_handle_upload(&$file, $overrides, $time, $action) - { - } /** * Wrapper for _wp_handle_upload(). * @@ -77205,50 +77022,6 @@ function wp_trusted_keys() function unzip_file($file, $to) { } - /** - * Attempts to unzip an archive using the ZipArchive class. - * - * This function should not be called directly, use `unzip_file()` instead. - * - * Assumes that WP_Filesystem() has already been called and set up. - * - * @since 3.0.0 - * @access private - * - * @see unzip_file() - * - * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. - * - * @param string $file Full path and filename of ZIP archive. - * @param string $to Full path on the filesystem to extract archive to. - * @param string[] $needed_dirs A partial list of required folders needed to be created. - * @return true|WP_Error True on success, WP_Error on failure. - */ - function _unzip_file_ziparchive($file, $to, $needed_dirs = array()) - { - } - /** - * Attempts to unzip an archive using the PclZip library. - * - * This function should not be called directly, use `unzip_file()` instead. - * - * Assumes that WP_Filesystem() has already been called and set up. - * - * @since 3.0.0 - * @access private - * - * @see unzip_file() - * - * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. - * - * @param string $file Full path and filename of ZIP archive. - * @param string $to Full path on the filesystem to extract archive to. - * @param string[] $needed_dirs A partial list of required folders needed to be created. - * @return true|WP_Error True on success, WP_Error on failure. - */ - function _unzip_file_pclzip($file, $to, $needed_dirs = array()) - { - } /** * Copies a directory from one location to another via the WordPress Filesystem * Abstraction. @@ -77649,22 +77422,6 @@ function wp_get_missing_image_subsizes($attachment_id) function wp_update_image_subsizes($attachment_id) { } - /** - * Updates the attached file and image meta data when the original image was edited. - * - * @since 5.3.0 - * @since 6.0.0 The `$filesize` value was added to the returned array. - * @access private - * - * @param array $saved_data The data returned from WP_Image_Editor after successfully saving an image. - * @param string $original_file Path to the original file. - * @param array $image_meta The image meta data. - * @param int $attachment_id The attachment post ID. - * @return array The updated image meta data. - */ - function _wp_image_meta_replace_original($saved_data, $original_file, $image_meta, $attachment_id) - { - } /** * Creates image sub-sizes, adds the new data to the image meta `sizes` array, and updates the image metadata. * @@ -77680,24 +77437,6 @@ function _wp_image_meta_replace_original($saved_data, $original_file, $image_met function wp_create_image_subsizes($file, $attachment_id) { } - /** - * Low-level function to create image sub-sizes. - * - * Updates the image meta after each sub-size is created. - * Errors are stored in the returned image metadata array. - * - * @since 5.3.0 - * @access private - * - * @param array $new_sizes Array defining what sizes to create. - * @param string $file Full path to the image file. - * @param array $image_meta The attachment meta data array. - * @param int $attachment_id Attachment ID to process. - * @return array The attachment meta data with updated `sizes` array. Includes an array of errors encountered while resizing. - */ - function _wp_make_subsizes($new_sizes, $file, $image_meta, $attachment_id) - { - } /** * Generates attachment meta data and create image sub-sizes for images. * @@ -77789,35 +77528,6 @@ function file_is_displayable_image($path) function load_image_to_edit($attachment_id, $mime_type, $size = 'full') { } - /** - * Retrieves the path or URL of an attachment's attached file. - * - * If the attached file is not present on the local filesystem (usually due to replication plugins), - * then the URL of the file is returned if `allow_url_fopen` is supported. - * - * @since 3.4.0 - * @access private - * - * @param int $attachment_id Attachment ID. - * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array - * of width and height values in pixels (in that order). Default 'full'. - * @return string|false File path or URL on success, false on failure. - */ - function _load_image_to_edit_path($attachment_id, $size = 'full') - { - } - /** - * Copies an existing image file. - * - * @since 3.4.0 - * @access private - * - * @param int $attachment_id Attachment ID. - * @return string|false New file path on success, false on failure. - */ - function _copy_image_file($attachment_id) - { - } /** * WordPress Administration Importer API. * @@ -77835,21 +77545,6 @@ function _copy_image_file($attachment_id) function get_importers() { } - /** - * Sorts a multidimensional array by first member of each top level member. - * - * Used by uasort() as a callback, should not be used directly. - * - * @since 2.9.0 - * @access private - * - * @param array $a - * @param array $b - * @return int - */ - function _usort_by_first_member($a, $b) - { - } /** * Registers importer for WordPress. * @@ -78021,15 +77716,6 @@ function get_image_send_to_editor($id, $caption, $title, $align, $url = '', $rel function image_add_caption($html, $id, $caption, $title, $align, $url, $size, $alt = '') { } - /** - * Private preg_replace callback used in image_add_caption(). - * - * @access private - * @since 3.4.0 - */ - function _cleanup_image_add_caption($matches) - { - } /** * Adds image HTML to editor. * @@ -79010,63 +78696,6 @@ function iis7_save_url_rewrite_rules() function update_recently_edited($file) { } - /** - * Makes a tree structure for the theme file editor's file list. - * - * @since 4.9.0 - * @access private - * - * @param array $allowed_files List of theme file paths. - * @return array Tree structure for listing theme files. - */ - function wp_make_theme_file_tree($allowed_files) - { - } - /** - * Outputs the formatted file list for the theme file editor. - * - * @since 4.9.0 - * @access private - * - * @global string $relative_file Name of the file being edited relative to the - * theme directory. - * @global string $stylesheet The stylesheet name of the theme being edited. - * - * @param array|string $tree List of file/folder paths, or filename. - * @param int $level The aria-level for the current iteration. - * @param int $size The aria-setsize for the current iteration. - * @param int $index The aria-posinset for the current iteration. - */ - function wp_print_theme_file_tree($tree, $level = 2, $size = 1, $index = 1) - { - } - /** - * Makes a tree structure for the plugin file editor's file list. - * - * @since 4.9.0 - * @access private - * - * @param array $plugin_editable_files List of plugin file paths. - * @return array Tree structure for listing plugin files. - */ - function wp_make_plugin_file_tree($plugin_editable_files) - { - } - /** - * Outputs the formatted file list for the plugin file editor. - * - * @since 4.9.0 - * @access private - * - * @param array|string $tree List of file/folder paths, or filename. - * @param string $label Name of file or folder to print. - * @param int $level The aria-level for the current iteration. - * @param int $size The aria-setsize for the current iteration. - * @param int $index The aria-posinset for the current iteration. - */ - function wp_print_plugin_file_tree($tree, $label = '', $level = 2, $size = 1, $index = 1) - { - } /** * Flushes rewrite rules if siteurl, home or page_on_front changed. * @@ -79335,20 +78964,6 @@ function wp_page_reload_on_back_button_js() function update_option_new_admin_email($old_value, $value) { } - /** - * Appends '(Draft)' to draft page titles in the privacy page dropdown - * so that unpublished content is obvious. - * - * @since 4.9.8 - * @access private - * - * @param string $title Page title. - * @param WP_Post $page Page data object. - * @return string Page title. - */ - function _wp_privacy_settings_filter_draft_page_titles($title, $page) - { - } /** * Checks if the user needs to update PHP. * @@ -79583,16 +79198,6 @@ function refresh_user_details($id) function format_code_lang($code = '') { } - /** - * Displays an access denied message when a user tries to view a site's dashboard they - * do not have access to. - * - * @since 3.2.0 - * @access private - */ - function _access_denied_splash() - { - } /** * Checks if the current user has permissions to import new users. * @@ -79669,16 +79274,6 @@ function choose_primary_blog() function can_edit_network($network_id) { } - /** - * Prints thickbox image paths for Network Admin. - * - * @since 3.1.0 - * - * @access private - */ - function _thickbox_path_admin_subfolder() - { - } /** * @param array $users */ @@ -79871,19 +79466,6 @@ function wp_nav_menu_item_taxonomy_meta_box($data_object, $box) function wp_save_nav_menu_items($menu_id = 0, $menu_data = array()) { } - /** - * Adds custom arguments to some of the meta box object types. - * - * @since 3.0.0 - * - * @access private - * - * @param object $data_object The post type or taxonomy meta-object. - * @return object The post type or taxonomy object. - */ - function _wp_nav_menu_meta_box_object($data_object = \null) - { - } /** * Returns the menu formatted to edit. * @@ -79905,17 +79487,6 @@ function wp_get_nav_menu_to_edit($menu_id = 0) function wp_nav_menu_manage_columns() { } - /** - * Deletes orphaned draft menu items - * - * @access private - * @since 3.0.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - */ - function _wp_delete_orphaned_draft_menu_items() - { - } /** * Saves nav menu items. * @@ -79928,17 +79499,6 @@ function _wp_delete_orphaned_draft_menu_items() function wp_nav_menu_update_menu_items($nav_menu_selected_id, $nav_menu_selected_title) { } - /** - * If a JSON blob of navigation menu data is in POST data, expand it and inject - * it into `$_POST` to avoid PHP `max_input_vars` limitations. See #14134. - * - * @ignore - * @since 4.5.3 - * @access private - */ - function _wp_expand_nav_menu_post_data() - { - } /** * WordPress Network Administration API. * @@ -80376,26 +79936,6 @@ function install_plugin_information() function get_plugin_data($plugin_file, $markup = \true, $translate = \true) { } - /** - * Sanitizes plugin data, optionally adds markup, optionally translates. - * - * @since 2.7.0 - * - * @see get_plugin_data() - * - * @access private - * - * @param string $plugin_file Path to the main plugin file. - * @param array $plugin_data An array of plugin data. See get_plugin_data(). - * @param bool $markup Optional. If the returned data should have HTML markup applied. - * Default true. - * @param bool $translate Optional. If the returned data should be translated. Default true. - * @return array Plugin data. Values will be empty if not supplied by the plugin. - * See get_plugin_data() for the list of possible values. - */ - function _get_plugin_data_markup_translate($plugin_file, $plugin_data, $markup = \true, $translate = \true) - { - } /** * Gets a list of a plugin's files. * @@ -80441,20 +79981,6 @@ function get_plugins($plugin_folder = '') function get_mu_plugins() { } - /** - * Declares a callback to sort array by a 'Name' key. - * - * @since 3.1.0 - * - * @access private - * - * @param array $a array with 'Name' key. - * @param array $b array with 'Name' key. - * @return int Return 0 or 1 based on two string comparison. - */ - function _sort_uname_callback($a, $b) - { - } /** * Checks the wp-content directory and retrieve all drop-ins with any plugin data. * @@ -81334,21 +80860,6 @@ function resume_plugin($plugin, $redirect = '') function paused_plugins_notice() { } - /** - * Renders an admin notice when a plugin was deactivated during an update. - * - * Displays an admin notice in case a plugin has been deactivated during an - * upgrade due to incompatibility with the current version of WordPress. - * - * @since 5.8.0 - * @access private - * - * @global string $pagenow The filename of the current screen. - * @global string $wp_version The WordPress version string. - */ - function deactivated_plugins_notice() - { - } /** * WordPress Post Administration API. * @@ -81562,21 +81073,6 @@ function has_meta($postid) function update_meta($meta_id, $meta_key, $meta_value) { } - // - // Private. - // - /** - * Replaces hrefs of attachment anchors with up-to-date permalinks. - * - * @since 2.3.0 - * @access private - * - * @param int|object $post Post ID or post object. - * @return void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success. - */ - function _fix_attachment_links($post) - { - } /** * Returns all the possible statuses for a post type. * @@ -81832,96 +81328,6 @@ function the_block_editor_meta_boxes() function the_block_editor_meta_box_post_form_hidden_fields($post) { } - /** - * Disables block editor for wp_navigation type posts so they can be managed via the UI. - * - * @since 5.9.0 - * @access private - * - * @param bool $value Whether the CPT supports block editor or not. - * @param string $post_type Post type. - * @return bool Whether the block editor should be disabled or not. - */ - function _disable_block_editor_for_navigation_post_type($value, $post_type) - { - } - /** - * This callback disables the content editor for wp_navigation type posts. - * Content editor cannot handle wp_navigation type posts correctly. - * We cannot disable the "editor" feature in the wp_navigation's CPT definition - * because it disables the ability to save navigation blocks via REST API. - * - * @since 5.9.0 - * @access private - * - * @param WP_Post $post An instance of WP_Post class. - */ - function _disable_content_editor_for_navigation_post_type($post) - { - } - /** - * This callback enables content editor for wp_navigation type posts. - * We need to enable it back because we disable it to hide - * the content editor for wp_navigation type posts. - * - * @since 5.9.0 - * @access private - * - * @see _disable_content_editor_for_navigation_post_type - * - * @param WP_Post $post An instance of WP_Post class. - */ - function _enable_content_editor_for_navigation_post_type($post) - { - } - /** - * WordPress Administration Privacy Tools API. - * - * @package WordPress - * @subpackage Administration - */ - /** - * Resend an existing request and return the result. - * - * @since 4.9.6 - * @access private - * - * @param int $request_id Request ID. - * @return true|WP_Error Returns true if sending the email was successful, or a WP_Error object. - */ - function _wp_privacy_resend_request($request_id) - { - } - /** - * Marks a request as completed by the admin and logs the current timestamp. - * - * @since 4.9.6 - * @access private - * - * @param int $request_id Request ID. - * @return int|WP_Error Request ID on success, or a WP_Error on failure. - */ - function _wp_privacy_completed_request($request_id) - { - } - /** - * Handle list table actions. - * - * @since 4.9.6 - * @access private - */ - function _wp_personal_data_handle_actions() - { - } - /** - * Cleans up failed and expired requests before displaying the list table. - * - * @since 4.9.6 - * @access private - */ - function _wp_personal_data_cleanup_requests() - { - } /** * Generate a single group for the personal data export report. * @@ -82770,19 +82176,6 @@ function add_meta_box($id, $title, $callback, $screen = \null, $context = 'advan function do_block_editor_incompatible_meta_box($data_object, $box) { } - /** - * Internal helper function to find the plugin from a meta box callback. - * - * @since 5.0.0 - * - * @access private - * - * @param callable $callback The callback function to check. - * @return array|null The plugin that the callback belongs to, or null if it doesn't belong to a plugin. - */ - function _get_plugin_from_callback($callback) - { - } /** * Meta-Box template function. * @@ -83265,15 +82658,6 @@ function _wp_admin_html_begin() function convert_to_screen($hook_name) { } - /** - * Outputs the HTML for restoring the post data from DOM storage - * - * @since 3.6.0 - * @access private - */ - function _local_storage_notice() - { - } /** * Outputs a HTML element with a star rating for a given rating. * @@ -83428,19 +82812,6 @@ function delete_theme($stylesheet, $redirect = '') function get_page_templates($post = \null, $post_type = 'page') { } - /** - * Tidies a filename for url display by the theme file editor. - * - * @since 2.9.0 - * @access private - * - * @param string $fullpath Full path to the theme file - * @param string $containingfolder Path of the theme parent folder - * @return string - */ - function _get_template_edit_filename($fullpath, $containingfolder) - { - } /** * Check if there is an update for a theme available. * @@ -83897,16 +83268,6 @@ function _upgrade_422_find_genericons_files_in_folder($directory) function _upgrade_440_force_deactivate_incompatible_plugins() { } - /** - * @access private - * @ignore - * @since 5.8.0 - * @since 5.9.0 The minimum compatible version of Gutenberg is 11.9. - * @since 6.1.1 The minimum compatible version of Gutenberg is 14.1. - */ - function _upgrade_core_deactivate_incompatible_plugins() - { - } /** * WordPress Administration Update API * @@ -84821,21 +84182,6 @@ function maybe_convert_table_to_utf8mb4($table) function get_alloptions_110() { } - /** - * Utility version of get_option that is private to installation/upgrade. - * - * @ignore - * @since 1.5.1 - * @access private - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $setting Option name. - * @return mixed - */ - function __get_option($setting) - { - } /** * Filters for content to remove unnecessary slashes. * @@ -85138,13 +84484,6 @@ function default_password_nag_edit_user($user_ID, $old_data) function default_password_nag() { } - /** - * @since 3.5.0 - * @access private - */ - function delete_users_add_js() - { - } /** * Optional SSL preference that can be turned on by hooking to the 'personal_options' action. * @@ -85209,17 +84548,6 @@ function wp_is_authorize_application_password_request_valid($request, $user) function wp_list_widgets() { } - /** - * Callback to sort array by a 'name' key. - * - * @since 3.1.0 - * @access private - * - * @return int - */ - function _sort_name_callback($a, $b) - { - } /** * Show the widgets and their settings for a sidebar. * Used in the admin widget config screen. @@ -85301,78 +84629,6 @@ function display_header($body_classes = '') function display_setup_form($error = \null) { } - /** - * XML callback function for the start of a new XML tag. - * - * @since 0.71 - * @access private - * - * @global array $names - * @global array $urls - * @global array $targets - * @global array $descriptions - * @global array $feeds - * - * @param resource $parser XML Parser resource. - * @param string $tag_name XML element name. - * @param array $attrs XML element attributes. - */ - function startElement($parser, $tag_name, $attrs) - { - } - /** - * XML callback function that is called at the end of a XML tag. - * - * @since 0.71 - * @access private - * - * @param resource $parser XML Parser resource. - * @param string $tag_name XML tag name. - */ - function endElement($parser, $tag_name) - { - } - /** - * Display menu. - * - * @access private - * @since 2.7.0 - * - * @global string $self - * @global string $parent_file - * @global string $submenu_file - * @global string $plugin_page - * @global string $typenow The post type of the current screen. - * - * @param array $menu - * @param array $submenu - * @param bool $submenu_as_parent - */ - function _wp_menu_output($menu, $submenu, $submenu_as_parent = \true) - { - } - /** - * Adds the 'Theme File Editor' menu item to the bottom of the Appearance (non-block themes) - * or Tools (block themes) menu. - * - * @access private - * @since 3.0.0 - * @since 5.9.0 Renamed 'Theme Editor' to 'Theme File Editor'. - * Relocates to Tools for block themes. - */ - function _add_themes_utility_last() - { - } - /** - * Adds the 'Plugin File Editor' menu item after the 'Themes File Editor' in Tools - * for block themes. - * - * @access private - * @since 5.9.0 - */ - function _add_plugin_file_editor_to_tools() - { - } /** * @global int $_wp_nav_menu_max_depth * @@ -85513,29 +84769,6 @@ function do_undismiss_core_update() function _get_cron_lock() { } - /** - * Toolbar API: Top-level Toolbar functionality - * - * @package WordPress - * @subpackage Toolbar - * @since 3.1.0 - */ - /** - * Instantiates the admin bar object and set it up as a global for access elsewhere. - * - * UNHOOKING THIS FUNCTION WILL NOT PROPERLY REMOVE THE ADMIN BAR. - * For that, use show_admin_bar(false) or the {@see 'show_admin_bar'} filter. - * - * @since 3.1.0 - * @access private - * - * @global WP_Admin_Bar $wp_admin_bar - * - * @return bool Whether the admin bar was successfully initialized. - */ - function _wp_admin_bar_init() - { - } /** * Renders the admin bar to the page based on the $wp_admin_bar->menu member var. * @@ -85784,20 +85017,6 @@ function show_admin_bar($show) function is_admin_bar_showing() { } - /** - * Retrieves the admin bar display preference of a user. - * - * @since 3.1.0 - * @access private - * - * @param string $context Context of this preference check. Defaults to 'front'. The 'admin' - * preference is no longer used. - * @param int $user Optional. ID of the user to check, defaults to 0 for current user. - * @return bool Whether the admin bar should be showing for this user. - */ - function _get_admin_bar_pref($context = 'front', $user = 0) - { - } /** * Author Template functions for use in themes. * @@ -86084,15 +85303,6 @@ function wp_list_authors($args = '') function is_multi_author() { } - /** - * Helper function to clear the cache for number of authors. - * - * @since 3.2.0 - * @access private - */ - function __clear_multi_author_cache() - { - } /** * Block Editor API. * @@ -86157,28 +85367,6 @@ function get_default_block_editor_settings() function get_legacy_widget_block_editor_settings() { } - /** - * Collect the block editor assets that need to be loaded into the editor's iframe. - * - * @since 6.0.0 - * @access private - * - * @global string $pagenow The filename of the current screen. - * - * @return array { - * The block editor assets. - * - * @type string|false $styles String containing the HTML for styles. - * @type string|false $scripts String containing the HTML for scripts. - * } - * @phpstan-return array{ - * styles: string|false, - * scripts: string|false, - * } - */ - function _wp_get_iframed_editor_assets() - { - } /** * Returns the contextualized block editor settings for a selected editor context. * @@ -86230,29 +85418,6 @@ function get_block_editor_theme_styles() function get_classic_theme_supports_block_editor_settings() { } - /** - * Registers the core block patterns and categories. - * - * @since 5.5.0 - * @access private - */ - function _register_core_block_patterns_and_categories() - { - } - /** - * Normalize the pattern properties to camelCase. - * - * The API's format is snake_case, `register_block_pattern()` expects camelCase. - * - * @since 6.2.0 - * @access private - * - * @param array $pattern Pattern as returned from the Pattern Directory API. - * @return array Normalized pattern. - */ - function wp_normalize_remote_block_pattern($pattern) - { - } /** * Register Core's official patterns from wordpress.org/patterns. * @@ -86276,748 +85441,6 @@ function _load_remote_block_patterns($deprecated = \null) function _load_remote_featured_patterns() { } - /** - * Registers patterns from Pattern Directory provided by a theme's - * `theme.json` file. - * - * @since 6.0.0 - * @since 6.2.0 Normalized the pattern from the API (snake_case) to the - * format expected by `register_block_pattern()` (camelCase). - * @access private - */ - function _register_remote_theme_patterns() - { - } - /** - * Register any patterns that the active theme may provide under its - * `./patterns/` directory. Each pattern is defined as a PHP file and defines - * its metadata using plugin-style headers. The minimum required definition is: - * - * /** - * * Title: My Pattern - * * Slug: my-theme/my-pattern - * * - * - * The output of the PHP source corresponds to the content of the pattern, e.g.: - * - *

- * - * If applicable, this will collect from both parent and child theme. - * - * Other settable fields include: - * - * - Description - * - Viewport Width - * - Inserter (yes/no) - * - Categories (comma-separated values) - * - Keywords (comma-separated values) - * - Block Types (comma-separated values) - * - Post Types (comma-separated values) - * - Template Types (comma-separated values) - * - * @since 6.0.0 - * @since 6.1.0 The `postTypes` property was added. - * @since 6.2.0 The `templateTypes` property was added. - * @access private - */ - function _register_theme_block_patterns() - { - } - /** - * Align block support flag. - * - * @package WordPress - * @since 5.6.0 - */ - /** - * Registers the align block attribute for block types that support it. - * - * @since 5.6.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_alignment_support($block_type) - { - } - /** - * Adds CSS classes for block alignment to the incoming attributes array. - * This will be applied to the block markup in the front-end. - * - * @since 5.6.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - * @param array $block_attributes Block attributes. - * @return array Block alignment CSS classes and inline styles. - */ - function wp_apply_alignment_support($block_type, $block_attributes) - { - } - /** - * Border block support flag. - * - * @package WordPress - * @since 5.8.0 - */ - /** - * Registers the style attribute used by the border feature if needed for block - * types that support borders. - * - * @since 5.8.0 - * @since 6.1.0 Improved conditional blocks optimization. - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_border_support($block_type) - { - } - /** - * Adds CSS classes and inline styles for border styles to the incoming - * attributes array. This will be applied to the block markup in the front-end. - * - * @since 5.8.0 - * @since 6.1.0 Implemented the style engine to generate CSS and classnames. - * @access private - * - * @param WP_Block_Type $block_type Block type. - * @param array $block_attributes Block attributes. - * @return array Border CSS classes and inline styles. - */ - function wp_apply_border_support($block_type, $block_attributes) - { - } - /** - * Checks whether the current block type supports the border feature requested. - * - * If the `__experimentalBorder` support flag is a boolean `true` all border - * support features are available. Otherwise, the specific feature's support - * flag nested under `experimentalBorder` must be enabled for the feature - * to be opted into. - * - * @since 5.8.0 - * @access private - * - * @param WP_Block_Type $block_type Block type to check for support. - * @param string $feature Name of the feature to check support for. - * @param mixed $default_value Fallback value for feature support, defaults to false. - * @return bool Whether the feature is supported. - */ - function wp_has_border_feature_support($block_type, $feature, $default_value = \false) - { - } - /** - * Colors block support flag. - * - * @package WordPress - * @since 5.6.0 - */ - /** - * Registers the style and colors block attributes for block types that support it. - * - * @since 5.6.0 - * @since 6.1.0 Improved $color_support assignment optimization. - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_colors_support($block_type) - { - } - /** - * Adds CSS classes and inline styles for colors to the incoming attributes array. - * This will be applied to the block markup in the front-end. - * - * @since 5.6.0 - * @since 6.1.0 Implemented the style engine to generate CSS and classnames. - * @access private - * - * @param WP_Block_Type $block_type Block type. - * @param array $block_attributes Block attributes. - * - * @return array Colors CSS classes and inline styles. - */ - function wp_apply_colors_support($block_type, $block_attributes) - { - } - /** - * Custom classname block support flag. - * - * @package WordPress - * @since 5.6.0 - */ - /** - * Registers the custom classname block attribute for block types that support it. - * - * @since 5.6.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_custom_classname_support($block_type) - { - } - /** - * Adds the custom classnames to the output. - * - * @since 5.6.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - * @param array $block_attributes Block attributes. - * - * @return array Block CSS classes and inline styles. - */ - function wp_apply_custom_classname_support($block_type, $block_attributes) - { - } - /** - * Dimensions block support flag. - * - * This does not include the `spacing` block support even though that visually - * appears under the "Dimensions" panel in the editor. It remains in its - * original `spacing.php` file for compatibility with core. - * - * @package WordPress - * @since 5.9.0 - */ - /** - * Registers the style block attribute for block types that support it. - * - * @since 5.9.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_dimensions_support($block_type) - { - } - /** - * Adds CSS classes for block dimensions to the incoming attributes array. - * This will be applied to the block markup in the front-end. - * - * @since 5.9.0 - * @since 6.2.0 Added `minHeight` support. - * @access private - * - * @param WP_Block_Type $block_type Block Type. - * @param array $block_attributes Block attributes. - * @return array Block dimensions CSS classes and inline styles. - */ - function wp_apply_dimensions_support($block_type, $block_attributes) - { - } - /** - * Duotone block support flag. - * - * Parts of this source were derived and modified from TinyColor, - * released under the MIT license. - * - * https://github.com/bgrins/TinyColor - * - * Copyright (c), Brian Grinstead, http://briangrinstead.com - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @package WordPress - * @since 5.8.0 - */ - /** - * Takes input from [0, n] and returns it as [0, 1]. - * - * Direct port of TinyColor's function, lightly simplified to maintain - * consistency with TinyColor. - * - * @see https://github.com/bgrins/TinyColor - * - * @since 5.8.0 - * @access private - * - * @param mixed $n Number of unknown type. - * @param int $max Upper value of the range to bound to. - * @return float Value in the range [0, 1]. - */ - function wp_tinycolor_bound01($n, $max) - { - } - /** - * Direct port of tinycolor's boundAlpha function to maintain consistency with - * how tinycolor works. - * - * @see https://github.com/bgrins/TinyColor - * - * @since 5.9.0 - * @access private - * - * @param mixed $n Number of unknown type. - * @return float Value in the range [0,1]. - */ - function _wp_tinycolor_bound_alpha($n) - { - } - /** - * Rounds and converts values of an RGB object. - * - * Direct port of TinyColor's function, lightly simplified to maintain - * consistency with TinyColor. - * - * @see https://github.com/bgrins/TinyColor - * - * @since 5.8.0 - * @access private - * - * @param array $rgb_color RGB object. - * @return array Rounded and converted RGB object. - */ - function wp_tinycolor_rgb_to_rgb($rgb_color) - { - } - /** - * Helper function for hsl to rgb conversion. - * - * Direct port of TinyColor's function, lightly simplified to maintain - * consistency with TinyColor. - * - * @see https://github.com/bgrins/TinyColor - * - * @since 5.8.0 - * @access private - * - * @param float $p first component. - * @param float $q second component. - * @param float $t third component. - * @return float R, G, or B component. - */ - function wp_tinycolor_hue_to_rgb($p, $q, $t) - { - } - /** - * Converts an HSL object to an RGB object with converted and rounded values. - * - * Direct port of TinyColor's function, lightly simplified to maintain - * consistency with TinyColor. - * - * @see https://github.com/bgrins/TinyColor - * - * @since 5.8.0 - * @access private - * - * @param array $hsl_color HSL object. - * @return array Rounded and converted RGB object. - */ - function wp_tinycolor_hsl_to_rgb($hsl_color) - { - } - /** - * Parses hex, hsl, and rgb CSS strings using the same regex as TinyColor v1.4.2 - * used in the JavaScript. Only colors output from react-color are implemented. - * - * Direct port of TinyColor's function, lightly simplified to maintain - * consistency with TinyColor. - * - * @see https://github.com/bgrins/TinyColor - * @see https://github.com/casesandberg/react-color/ - * - * @since 5.8.0 - * @since 5.9.0 Added alpha processing. - * @access private - * - * @param string $color_str CSS color string. - * @return array RGB object. - */ - function wp_tinycolor_string_to_rgb($color_str) - { - } - /** - * Returns the prefixed id for the duotone filter for use as a CSS id. - * - * @since 5.9.1 - * @access private - * - * @param array $preset Duotone preset value as seen in theme.json. - * @return string Duotone filter CSS id. - */ - function wp_get_duotone_filter_id($preset) - { - } - /** - * Returns the CSS filter property url to reference the rendered SVG. - * - * @since 5.9.0 - * @since 6.1.0 Allow unset for preset colors. - * @access private - * - * @param array $preset Duotone preset value as seen in theme.json. - * @return string Duotone CSS filter property url value. - */ - function wp_get_duotone_filter_property($preset) - { - } - /** - * Returns the duotone filter SVG string for the preset. - * - * @since 5.9.1 - * @access private - * - * @param array $preset Duotone preset value as seen in theme.json. - * @return string Duotone SVG filter. - */ - function wp_get_duotone_filter_svg($preset) - { - } - /** - * Registers the style and colors block attributes for block types that support it. - * - * @since 5.8.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_duotone_support($block_type) - { - } - /** - * Renders out the duotone stylesheet and SVG. - * - * @since 5.8.0 - * @since 6.1.0 Allow unset for preset colors. - * @access private - * - * @param string $block_content Rendered block content. - * @param array $block Block object. - * @return string Filtered block content. - */ - function wp_render_duotone_support($block_content, $block) - { - } - /** - * Elements styles block support. - * - * @package WordPress - * @since 5.8.0 - */ - /** - * Gets the elements class names. - * - * @since 6.0.0 - * @access private - * - * @param array $block Block object. - * @return string The unique class name. - */ - function wp_get_elements_class_name($block) - { - } - /** - * Updates the block content with elements class names. - * - * @since 5.8.0 - * @access private - * - * @param string $block_content Rendered block content. - * @param array $block Block object. - * @return string Filtered block content. - */ - function wp_render_elements_support($block_content, $block) - { - } - /** - * Renders the elements stylesheet. - * - * In the case of nested blocks we want the parent element styles to be rendered before their descendants. - * This solves the issue of an element (e.g.: link color) being styled in both the parent and a descendant: - * we want the descendant style to take priority, and this is done by loading it after, in DOM order. - * - * @since 6.0.0 - * @since 6.1.0 Implemented the style engine to generate CSS and classnames. - * @access private - * - * @param string|null $pre_render The pre-rendered content. Default null. - * @param array $block The block being rendered. - * @return null - */ - function wp_render_elements_support_styles($pre_render, $block) - { - } - /** - * Generated classname block support flag. - * - * @package WordPress - * @since 5.6.0 - */ - /** - * Gets the generated classname from a given block name. - * - * @since 5.6.0 - * - * @access private - * - * @param string $block_name Block Name. - * @return string Generated classname. - */ - function wp_get_block_default_classname($block_name) - { - } - /** - * Adds the generated classnames to the output. - * - * @since 5.6.0 - * - * @access private - * - * @param WP_Block_Type $block_type Block Type. - * @return array Block CSS classes and inline styles. - */ - function wp_apply_generated_classname_support($block_type) - { - } - /** - * Layout block support flag. - * - * @package WordPress - * @since 5.8.0 - */ - /** - * Registers the layout block attribute for block types that support it. - * - * @since 5.8.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_layout_support($block_type) - { - } - /** - * Generates the CSS corresponding to the provided layout. - * - * @since 5.9.0 - * @since 6.1.0 Added `$block_spacing` param, use style engine to enqueue styles. - * @access private - * - * @param string $selector CSS selector. - * @param array $layout Layout object. The one that is passed has already checked - * the existence of default block layout. - * @param bool $has_block_gap_support Optional. Whether the theme has support for the block gap. Default false. - * @param string|string[]|null $gap_value Optional. The block gap value to apply. Default null. - * @param bool $should_skip_gap_serialization Optional. Whether to skip applying the user-defined value set in the editor. Default false. - * @param string $fallback_gap_value Optional. The block gap value to apply. Default '0.5em'. - * @param array|null $block_spacing Optional. Custom spacing set on the block. Default null. - * @return string CSS styles on success. Else, empty string. - */ - function wp_get_layout_style($selector, $layout, $has_block_gap_support = \false, $gap_value = \null, $should_skip_gap_serialization = \false, $fallback_gap_value = '0.5em', $block_spacing = \null) - { - } - /** - * Renders the layout config to the block wrapper. - * - * @since 5.8.0 - * @access private - * - * @param string $block_content Rendered block content. - * @param array $block Block object. - * @return string Filtered block content. - */ - function wp_render_layout_support_flag($block_content, $block) - { - } - /** - * For themes without theme.json file, make sure - * to restore the inner div for the group block - * to avoid breaking styles relying on that div. - * - * @since 5.8.0 - * @access private - * - * @param string $block_content Rendered block content. - * @param array $block Block object. - * @return string Filtered block content. - */ - function wp_restore_group_inner_container($block_content, $block) - { - } - /** - * For themes without theme.json file, make sure - * to restore the outer div for the aligned image block - * to avoid breaking styles relying on that div. - * - * @since 6.0.0 - * @access private - * - * @param string $block_content Rendered block content. - * @param array $block Block object. - * @return string Filtered block content. - */ - function wp_restore_image_outer_container($block_content, $block) - { - } - /** - * Position block support flag. - * - * @package WordPress - * @since 6.2.0 - */ - /** - * Registers the style block attribute for block types that support it. - * - * @since 6.2.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_position_support($block_type) - { - } - /** - * Renders position styles to the block wrapper. - * - * @since 6.2.0 - * @access private - * - * @param string $block_content Rendered block content. - * @param array $block Block object. - * @return string Filtered block content. - */ - function wp_render_position_support($block_content, $block) - { - } - /** - * Block level presets support. - * - * @package WordPress - * @since 6.2.0 - */ - /** - * Get the class name used on block level presets. - * - * @internal - * - * @since 6.2.0 - * @access private - * - * @param array $block Block object. - * @return string The unique class name. - */ - function _wp_get_presets_class_name($block) - { - } - /** - * Update the block content with block level presets class name. - * - * @internal - * - * @since 6.2.0 - * @access private - * - * @param string $block_content Rendered block content. - * @param array $block Block object. - * @return string Filtered block content. - */ - function _wp_add_block_level_presets_class($block_content, $block) - { - } - /** - * Render the block level presets stylesheet. - * - * @internal - * - * @since 6.2.0 - * @access private - * - * @param string|null $pre_render The pre-rendered content. Default null. - * @param array $block The block being rendered. - * - * @return null - */ - function _wp_add_block_level_preset_styles($pre_render, $block) - { - } - /** - * Spacing block support flag. - * - * For backwards compatibility, this remains separate to the dimensions.php - * block support despite both belonging under a single panel in the editor. - * - * @package WordPress - * @since 5.8.0 - */ - /** - * Registers the style block attribute for block types that support it. - * - * @since 5.8.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_spacing_support($block_type) - { - } - /** - * Adds CSS classes for block spacing to the incoming attributes array. - * This will be applied to the block markup in the front-end. - * - * @since 5.8.0 - * @since 6.1.0 Implemented the style engine to generate CSS and classnames. - * @access private - * - * @param WP_Block_Type $block_type Block Type. - * @param array $block_attributes Block attributes. - * @return array Block spacing CSS classes and inline styles. - */ - function wp_apply_spacing_support($block_type, $block_attributes) - { - } - /** - * Typography block support flag. - * - * @package WordPress - * @since 5.6.0 - */ - /** - * Registers the style and typography block attributes for block types that support it. - * - * @since 5.6.0 - * @access private - * - * @param WP_Block_Type $block_type Block Type. - */ - function wp_register_typography_support($block_type) - { - } - /** - * Adds CSS classes and inline styles for typography features such as font sizes - * to the incoming attributes array. This will be applied to the block markup in - * the front-end. - * - * @since 5.6.0 - * @since 6.1.0 Used the style engine to generate CSS and classnames. - * @access private - * - * @param WP_Block_Type $block_type Block type. - * @param array $block_attributes Block attributes. - * @return array Typography CSS classes and inline styles. - */ - function wp_apply_typography_support($block_type, $block_attributes) - { - } /** * Generates an inline style value for a typography feature e.g. text decoration, * text transform, and font style. @@ -87074,35 +85497,6 @@ function wp_render_typography_support($block_content, $block) function wp_get_typography_value_and_unit($raw_value, $options = array()) { } - /** - * Internal implementation of CSS clamp() based on available min/max viewport - * width and min/max font sizes. - * - * @since 6.1.0 - * @access private - * - * @param array $args { - * Optional. An associative array of values to calculate a fluid formula - * for font size. Default is empty array. - * - * @type string $maximum_viewport_width Maximum size up to which type will have fluidity. - * @type string $minimum_viewport_width Minimum viewport size from which type will have fluidity. - * @type string $maximum_font_size Maximum font size for any clamp() calculation. - * @type string $minimum_font_size Minimum font size for any clamp() calculation. - * @type int $scale_factor A scale factor to determine how fast a font scales within boundaries. - * } - * @return string|null A font-size value using clamp() on success, otherwise null. - * @phpstan-param array{ - * maximum_viewport_width?: string, - * minimum_viewport_width?: string, - * maximum_font_size?: string, - * minimum_font_size?: string, - * scale_factor?: int, - * } $args - */ - function wp_get_computed_fluid_typography_value($args = array()) - { - } /** * Returns a font-size value based on a given font-size preset. * Takes into account fluid typography parameters and attempts to return a CSS @@ -87131,29 +85525,6 @@ function wp_get_computed_fluid_typography_value($args = array()) function wp_get_typography_font_size_value($preset, $should_use_fluid_typography = \false) { } - /** - * Block support utility functions. - * - * @package WordPress - * @subpackage Block Supports - * @since 6.0.0 - */ - /** - * Checks whether serialization of the current block's supported properties - * should occur. - * - * @since 6.0.0 - * @access private - * - * @param WP_Block_Type $block_type Block type. - * @param string $feature_set Name of block support feature set.. - * @param string $feature Optional name of individual feature to check. - * - * @return boolean Whether to serialize block support styles & classes. - */ - function wp_should_skip_block_supports_serialization($block_type, $feature_set, $feature = \null) - { - } /** * For backward compatibility reasons, * block themes might be using block-templates or block-template-parts, @@ -87198,175 +85569,6 @@ function get_allowed_block_template_part_areas() function get_default_block_template_types() { } - /** - * Checks whether the input 'area' is a supported value. - * Returns the input if supported, otherwise returns the 'uncategorized' value. - * - * @since 5.9.0 - * @access private - * - * @param string $type Template part area name. - * @return string Input if supported, else the uncategorized value. - */ - function _filter_block_template_part_area($type) - { - } - /** - * Finds all nested template part file paths in a theme's directory. - * - * @since 5.9.0 - * @access private - * - * @param string $base_directory The theme's file path. - * @return array A list of paths to all template part files. - */ - function _get_block_templates_paths($base_directory) - { - } - /** - * Retrieves the template file from the theme for a given slug. - * - * @since 5.9.0 - * @access private - * - * @param string $template_type 'wp_template' or 'wp_template_part'. - * @param string $slug Template slug. - * @return array|null Template. - */ - function _get_block_template_file($template_type, $slug) - { - } - /** - * Retrieves the template files from the theme. - * - * @since 5.9.0 - * @access private - * - * @param string $template_type 'wp_template' or 'wp_template_part'. - * @return array Template. - */ - function _get_block_templates_files($template_type) - { - } - /** - * Attempts to add custom template information to the template item. - * - * @since 5.9.0 - * @access private - * - * @param array $template_item Template to add information to (requires 'slug' field). - * @return array Template item. - */ - function _add_block_template_info($template_item) - { - } - /** - * Attempts to add the template part's area information to the input template. - * - * @since 5.9.0 - * @access private - * - * @param array $template_info Template to add information to (requires 'type' and 'slug' fields). - * @return array Template info. - */ - function _add_block_template_part_area_info($template_info) - { - } - /** - * Returns an array containing the references of - * the passed blocks and their inner blocks. - * - * @since 5.9.0 - * @access private - * - * @param array $blocks array of blocks. - * @return array block references to the passed blocks and their inner blocks. - */ - function _flatten_blocks(&$blocks) - { - } - /** - * Parses wp_template content and injects the active theme's - * stylesheet as a theme attribute into each wp_template_part - * - * @since 5.9.0 - * @access private - * - * @param string $template_content serialized wp_template content. - * @return string Updated 'wp_template' content. - */ - function _inject_theme_attribute_in_block_template_content($template_content) - { - } - /** - * Parses a block template and removes the theme attribute from each template part. - * - * @since 5.9.0 - * @access private - * - * @param string $template_content Serialized block template content. - * @return string Updated block template content. - */ - function _remove_theme_attribute_in_block_template_content($template_content) - { - } - /** - * Builds a unified template object based on a theme file. - * - * @since 5.9.0 - * @access private - * - * @param array $template_file Theme file. - * @param string $template_type 'wp_template' or 'wp_template_part'. - * @return WP_Block_Template Template. - */ - function _build_block_template_result_from_file($template_file, $template_type) - { - } - /** - * Builds the title and description of a post-specific template based on the underlying referenced post. - * - * Mutates the underlying template object. - * - * @since 6.1.0 - * @access private - * - * @param string $post_type Post type, e.g. page, post, product. - * @param string $slug Slug of the post, e.g. a-story-about-shoes. - * @param WP_Block_Template $template Template to mutate adding the description and title computed. - * @return bool Returns true if the referenced post was found and false otherwise. - */ - function _wp_build_title_and_description_for_single_post_type_block_template($post_type, $slug, \WP_Block_Template $template) - { - } - /** - * Builds the title and description of a taxonomy-specific template based on the underlying entity referenced. - * - * Mutates the underlying template object. - * - * @since 6.1.0 - * @access private - * - * @param string $taxonomy Identifier of the taxonomy, e.g. category. - * @param string $slug Slug of the term, e.g. shoes. - * @param WP_Block_Template $template Template to mutate adding the description and title computed. - * @return bool True if the term referenced was found and false otherwise. - */ - function _wp_build_title_and_description_for_taxonomy_block_template($taxonomy, $slug, \WP_Block_Template $template) - { - } - /** - * Builds a unified template object based a post Object. - * - * @since 5.9.0 - * @access private - * - * @param WP_Post $post Template post. - * @return WP_Block_Template|WP_Error Template. - */ - function _build_block_template_result_from_post($post) - { - } /** * Retrieves a list of unified template objects based on a query. * @@ -87492,20 +85694,6 @@ function wp_generate_block_templates_export_file() function get_template_hierarchy($slug, $is_custom = \false, $template_prefix = '') { } - /** - * Block template loader functions. - * - * @package WordPress - */ - /** - * Adds necessary filters to use 'wp_template' posts instead of theme template files. - * - * @access private - * @since 5.9.0 - */ - function _add_template_loader_filters() - { - } /** * Finds a block template with equal or higher specificity than a given PHP template file. * @@ -87523,96 +85711,6 @@ function _add_template_loader_filters() function locate_block_template($template, $type, array $templates) { } - /** - * Returns the correct 'wp_template' to render for the request template type. - * - * @access private - * @since 5.8.0 - * @since 5.9.0 Added the `$fallback_template` parameter. - * - * @param string $template_type The current template type. - * @param string[] $template_hierarchy The current template hierarchy, ordered by priority. - * @param string $fallback_template A PHP fallback template to use if no matching block template is found. - * @return WP_Block_Template|null template A template object, or null if none could be found. - */ - function resolve_block_template($template_type, $template_hierarchy, $fallback_template) - { - } - /** - * Displays title tag with content, regardless of whether theme has title-tag support. - * - * @access private - * @since 5.8.0 - * - * @see _wp_render_title_tag() - */ - function _block_template_render_title_tag() - { - } - /** - * Returns the markup for the current template. - * - * @access private - * @since 5.8.0 - * - * @global string $_wp_current_template_content - * @global WP_Embed $wp_embed - * - * @return string Block template markup. - */ - function get_the_block_template_html() - { - } - /** - * Renders a 'viewport' meta tag. - * - * This is hooked into {@see 'wp_head'} to decouple its output from the default template canvas. - * - * @access private - * @since 5.8.0 - */ - function _block_template_viewport_meta_tag() - { - } - /** - * Strips .php or .html suffix from template file names. - * - * @access private - * @since 5.8.0 - * - * @param string $template_file Template file name. - * @return string Template file name without extension. - */ - function _strip_template_file_suffix($template_file) - { - } - /** - * Removes post details from block context when rendering a block template. - * - * @access private - * @since 5.8.0 - * - * @param array $context Default context. - * - * @return array Filtered context. - */ - function _block_template_render_without_post_block_context($context) - { - } - /** - * Sets the current WP_Query to return auto-draft posts. - * - * The auto-draft status indicates a new post, so allow the the WP_Query instance to - * return an auto-draft post for template resolution when editing a new post. - * - * @access private - * @since 5.9.0 - * - * @param WP_Query $wp_query Current WP_Query instance, passed by reference. - */ - function _resolve_template_for_new_post($wp_query) - { - } /** * Functions related to registering and parsing blocks. * @@ -87982,20 +86080,6 @@ function filter_block_kses_value($value, $allowed_html, $allowed_protocols = arr function excerpt_remove_blocks($content) { } - /** - * Renders inner blocks from the allowed wrapper blocks - * for generating an excerpt. - * - * @since 5.8.0 - * @access private - * - * @param array $parsed_block The parsed block. - * @param array $allowed_blocks The list of allowed inner blocks. - * @return string The rendered inner blocks. - */ - function _excerpt_render_inner_blocks($parsed_block, $allowed_blocks) - { - } /** * Renders a single block into a HTML string. * @@ -88031,19 +86115,6 @@ function parse_blocks($content) function do_blocks($content) { } - /** - * If do_blocks() needs to remove wpautop() from the `the_content` filter, this re-adds it afterwards, - * for subsequent `the_content` usage. - * - * @since 5.0.0 - * @access private - * - * @param string $content The post content running through this filter. - * @return string The unmodified content. - */ - function _restore_wpautop_hook($content) - { - } /** * Returns the current version of the block format that the content string is using. * @@ -90352,69 +88423,6 @@ function note_sidebar_being_rendered($index) function discard_sidebar_being_rendered() { } - /** - * Bookmark Template Functions for usage in Themes. - * - * @package WordPress - * @subpackage Template - */ - /** - * The formatted output of a list of bookmarks. - * - * The $bookmarks array must contain bookmark objects and will be iterated over - * to retrieve the bookmark to be used in the output. - * - * The output is formatted as HTML with no way to change that format. However, - * what is between, before, and after can be changed. The link itself will be - * HTML. - * - * This function is used internally by wp_list_bookmarks() and should not be - * used by themes. - * - * @since 2.1.0 - * @access private - * - * @param array $bookmarks List of bookmarks to traverse. - * @param string|array $args { - * Optional. Bookmarks arguments. - * - * @type int|bool $show_updated Whether to show the time the bookmark was last updated. - * Accepts 1|true or 0|false. Default 0|false. - * @type int|bool $show_description Whether to show the bookmark description. Accepts 1|true, - * Accepts 1|true or 0|false. Default 0|false. - * @type int|bool $show_images Whether to show the link image if available. Accepts 1|true - * or 0|false. Default 1|true. - * @type int|bool $show_name Whether to show link name if available. Accepts 1|true or - * 0|false. Default 0|false. - * @type string $before The HTML or text to prepend to each bookmark. Default `
  • `. - * @type string $after The HTML or text to append to each bookmark. Default `
  • `. - * @type string $link_before The HTML or text to prepend to each bookmark inside the anchor - * tags. Default empty. - * @type string $link_after The HTML or text to append to each bookmark inside the anchor - * tags. Default empty. - * @type string $between The string for use in between the link, description, and image. - * Default "\n". - * @type int|bool $show_rating Whether to show the link rating. Accepts 1|true or 0|false. - * Default 0|false. - * - * } - * @return string Formatted output in HTML - * @phpstan-param array{ - * show_updated?: int|bool, - * show_description?: int|bool, - * show_images?: int|bool, - * show_name?: int|bool, - * before?: string, - * after?: string, - * link_before?: string, - * link_after?: string, - * between?: string, - * show_rating?: int|bool, - * } $args - */ - function _walk_bookmarks($bookmarks, $args = '') - { - } /** * Retrieves or echoes all of the bookmarks. * @@ -91009,21 +89017,6 @@ function wp_cache_reset() function redirect_canonical($requested_url = \null, $do_redirect = \true) { } - /** - * Removes arguments from a query string if they are not present in a URL - * DO NOT use this in plugin code. - * - * @since 3.4.0 - * @access private - * - * @param string $query_string - * @param array $args_to_check - * @param string $url - * @return string The altered query string - */ - function _remove_qs_args_if_not_in_url($query_string, array $args_to_check, $url) - { - } /** * Strips the #fragment from a URL, if one is present. * @@ -91803,38 +89796,6 @@ function default_topic_count_scale($count) function wp_generate_tag_cloud($tags, $args = '') { } - /** - * Serves as a callback for comparing objects based on name. - * - * Used with `uasort()`. - * - * @since 3.1.0 - * @access private - * - * @param object $a The first object to compare. - * @param object $b The second object to compare. - * @return int Negative number if `$a->name` is less than `$b->name`, zero if they are equal, - * or greater than zero if `$a->name` is greater than `$b->name`. - */ - function _wp_object_name_sort_cb($a, $b) - { - } - /** - * Serves as a callback for comparing objects based on count. - * - * Used with `uasort()`. - * - * @since 3.1.0 - * @access private - * - * @param object $a The first object to compare. - * @param object $b The second object to compare. - * @return int Negative number if `$a->count` is less than `$b->count`, zero if they are equal, - * or greater than zero if `$a->count` is greater than `$b->count`. - */ - function _wp_object_count_sort_cb($a, $b) - { - } // // Helper functions. // @@ -92298,29 +90259,6 @@ function get_tag($tag, $output = \OBJECT, $filter = 'raw') function clean_category_cache($id) { } - /** - * Updates category structure to old pre-2.3 from new taxonomy structure. - * - * This function was added for the taxonomy support to update the new category - * structure with the old category one. This will maintain compatibility with - * plugins and themes which depend on the old key or property names. - * - * The parameter should only be passed a variable and not create the array or - * object inline to the parameter. The reason for this is that parameter is - * passed by reference and PHP will fail unless it has the variable. - * - * There is no return value, because everything is updated on the variable you - * pass to it. This is one of the features with using pass by reference in PHP. - * - * @since 2.3.0 - * @since 4.4.0 The `$category` parameter now also accepts a WP_Term object. - * @access private - * - * @param array|object|WP_Term $category Category row object or array. - */ - function _make_cat_compat(&$category) - { - } /** * WordPress autoloader for SimplePie. * @@ -93256,20 +91194,6 @@ function comment_id_fields($post = \null) function comment_form_title($no_reply_text = \false, $reply_text = \false, $link_to_parent = \true, $post = \null) { } - /** - * Gets the comment's reply to ID from the $_GET['replytocom']. - * - * @since 6.2.0 - * - * @access private - * - * @param int|WP_Post $post The post the comment is being displayed for. - * Defaults to the current global post. - * @return int Comment's reply to ID. - */ - function _get_comment_reply_id($post = \null) - { - } /** * Displays a list of comments. * @@ -94099,21 +92023,6 @@ function wp_get_comment_status($comment_id) function wp_transition_comment_status($new_status, $old_status, $comment) { } - /** - * Clears the lastcommentmodified cached value when a comment status is changed. - * - * Deletes the lastcommentmodified cache key when a comment enters or leaves - * 'approved' status. - * - * @since 4.7.0 - * @access private - * - * @param string $new_status The new comment status. - * @param string $old_status The old comment status. - */ - function _clear_modified_cache_on_transition_comment_status($new_status, $old_status) - { - } /** * Gets current commenter's name, email, and URL. * @@ -94623,35 +92532,6 @@ function update_comment_cache($comments, $update_meta_cache = \true) function _prime_comment_caches($comment_ids, $update_meta_cache = \true) { } - // - // Internal. - // - /** - * Closes comments on old posts on the fly, without any extra DB queries. Hooked to the_posts. - * - * @since 2.7.0 - * @access private - * - * @param WP_Post $posts Post data object. - * @param WP_Query $query Query object. - * @return array - */ - function _close_comments_for_old_posts($posts, $query) - { - } - /** - * Closes comments on an old post. Hooked to comments_open and pings_open. - * - * @since 2.7.0 - * @access private - * - * @param bool $open Comments open or closed. - * @param int $post_id Post ID. - * @return bool $open - */ - function _close_comments_for_old_post($open, $post_id) - { - } /** * Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form. * @@ -95024,23 +92904,6 @@ function spawn_cron($gmt_time = 0) function wp_cron() { } - /** - * Runs scheduled callbacks or spawns cron for all scheduled events. - * - * Warning: This function may return Boolean FALSE, but may also return a non-Boolean - * value which evaluates to FALSE. For information about casting to booleans see the - * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use - * the `===` operator for testing the return value of this function. - * - * @since 5.7.0 - * @access private - * - * @return int|false On success an integer indicating number of events spawned (0 indicates no - * events needed to be spawned), false if spawning fails for one or more events. - */ - function _wp_cron() - { - } /** * Retrieves supported event recurrence schedules. * @@ -95117,51 +92980,6 @@ function wp_get_schedule($hook, $args = array()) function wp_get_ready_cron_jobs() { } - // - // Private functions. - // - /** - * Retrieves cron info array option. - * - * @since 2.1.0 - * @since 6.1.0 Return type modified to consistently return an array. - * @access private - * - * @return array[] Array of cron events. - */ - function _get_cron_array() - { - } - /** - * Updates the cron option with the new cron array. - * - * @since 2.1.0 - * @since 5.1.0 Return value modified to outcome of update_option(). - * @since 5.7.0 The `$wp_error` parameter was added. - * - * @access private - * - * @param array[] $cron Array of cron info arrays from _get_cron_array(). - * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. - * @return bool|WP_Error True if cron array updated. False or WP_Error on failure. - */ - function _set_cron_array($cron, $wp_error = \false) - { - } - /** - * Upgrades a cron info array. - * - * This function upgrades the cron info array to version 2. - * - * @since 2.1.0 - * @access private - * - * @param array $cron Cron info array from _get_cron_array(). - * @return array An upgraded cron info array. - */ - function _upgrade_cron_array($cron) - { - } /** * Defines constants and global variables that can be overridden, generally in wp-config.php. * @@ -96800,19 +94618,6 @@ function get_profile($field, $user = \false) function get_usernumposts($userid) { } - /** - * Callback used to change %uXXXX to &#YYY; syntax - * - * @since 2.8.0 - * @access private - * @deprecated 3.0.0 - * - * @param array $matches Single Match - * @return string An HTML entity - */ - function funky_javascript_callback($matches) - { - } /** * Fixes JavaScript bugs in browsers. * @@ -97391,19 +95196,6 @@ function gd_edit_image_support($mime_type) function wp_convert_bytes_to_hr($bytes) { } - /** - * Formerly used internally to tidy up the search terms. - * - * @since 2.9.0 - * @access private - * @deprecated 3.7.0 - * - * @param string $t Search terms to "tidy", e.g. trim. - * @return string Trimmed search terms. - */ - function _search_terms_tidy($t) - { - } /** * Determine if TinyMCE is available. * @@ -97418,19 +95210,6 @@ function _search_terms_tidy($t) function rich_edit_exists() { } - /** - * Old callback for tag link tooltips. - * - * @since 2.7.0 - * @access private - * @deprecated 3.9.0 - * - * @param int $count Number of topics. - * @return int Number of topics. - */ - function default_topic_count_text($count) - { - } /** * Formerly used to escape strings before inserting into the DB. * @@ -97485,58 +95264,6 @@ function url_is_accessable_via_ssl($url) function preview_theme() { } - /** - * Private function to modify the current template when previewing a theme - * - * @since 2.9.0 - * @deprecated 4.3.0 - * @access private - * - * @return string - */ - function _preview_theme_template_filter() - { - } - /** - * Private function to modify the current stylesheet when previewing a theme - * - * @since 2.9.0 - * @deprecated 4.3.0 - * @access private - * - * @return string - */ - function _preview_theme_stylesheet_filter() - { - } - /** - * Callback function for ob_start() to capture all links in the theme. - * - * @since 2.6.0 - * @deprecated 4.3.0 - * @access private - * - * @param string $content - * @return string - */ - function preview_theme_ob_filter($content) - { - } - /** - * Manipulates preview theme links in order to control and maintain location. - * - * Callback function for preg_replace_callback() to accept and filter matches. - * - * @since 2.6.0 - * @deprecated 4.3.0 - * @access private - * - * @param array $matches - * @return string - */ - function preview_theme_ob_filter_callback($matches) - { - } /** * Formats text for the rich text editor. * @@ -97709,56 +95436,6 @@ function get_paged_template() function wp_kses_js_entities($content) { } - /** - * Sort categories by ID. - * - * Used by usort() as a callback, should not be used directly. Can actually be - * used to sort any term object. - * - * @since 2.3.0 - * @deprecated 4.7.0 Use wp_list_sort() - * @access private - * - * @param object $a - * @param object $b - * @return int - */ - function _usort_terms_by_ID($a, $b) - { - } - /** - * Sort categories by name. - * - * Used by usort() as a callback, should not be used directly. Can actually be - * used to sort any term object. - * - * @since 2.3.0 - * @deprecated 4.7.0 Use wp_list_sort() - * @access private - * - * @param object $a - * @param object $b - * @return int - */ - function _usort_terms_by_name($a, $b) - { - } - /** - * Sort menu items by the desired key. - * - * @since 3.0.0 - * @deprecated 4.7.0 Use wp_list_sort() - * @access private - * - * @global string $_menu_item_sort_prop - * - * @param object $a The first object to compare - * @param object $b The second object to compare - * @return int -1, 0, or 1 if $a is considered to be respectively less than, equal to, or greater than $b. - */ - function _sort_nav_menu_items($a, $b) - { - } /** * Retrieves the Press This bookmarklet link. * @@ -97814,16 +95491,6 @@ function wp_get_user_request_data($request_id) function wp_make_content_images_responsive($content) { } - /** - * Turn register globals off. - * - * @since 2.1.0 - * @access private - * @deprecated 5.5.0 - */ - function wp_unregister_GLOBALS() - { - } /** * Does comment contain disallowed characters or words. * @@ -97842,24 +95509,6 @@ function wp_unregister_GLOBALS() function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent) { } - /** - * Filters out `register_meta()` args based on an allowed list. - * - * `register_meta()` args may change over time, so requiring the allowed list - * to be explicitly turned off is a warranty seal of sorts. - * - * @access private - * @since 4.6.0 - * @deprecated 5.5.0 Use _wp_register_meta_args_allowed_list() instead. - * Please consider writing more inclusive code. - * - * @param array $args Arguments from `register_meta()`. - * @param array $default_args Default arguments for `register_meta()`. - * @return array Filtered arguments. - */ - function _wp_register_meta_args_whitelist($args, $default_args) - { - } /** * Adds an array of options to the list of allowed options. * @@ -97977,22 +95626,6 @@ function wp_no_robots() function wp_sensitive_page_meta() { } - /** - * Render inner blocks from the `core/columns` block for generating an excerpt. - * - * @since 5.2.0 - * @access private - * @deprecated 5.8.0 Use _excerpt_render_inner_blocks() introduced in 5.8.0. - * - * @see _excerpt_render_inner_blocks() - * - * @param array $columns The parsed columns block. - * @param array $allowed_blocks The list of allowed inner blocks. - * @return string The rendered inner blocks. - */ - function _excerpt_render_inner_columns_blocks($columns, $allowed_blocks) - { - } /** * Renders the duotone filter SVG and returns the CSS filter property to * reference the rendered SVG. @@ -98008,52 +95641,6 @@ function _excerpt_render_inner_columns_blocks($columns, $allowed_blocks) function wp_render_duotone_filter_preset($preset) { } - /** - * Checks whether serialization of the current block's border properties should occur. - * - * @since 5.8.0 - * @access private - * @deprecated 6.0.0 Use wp_should_skip_block_supports_serialization() introduced in 6.0.0. - * - * @see wp_should_skip_block_supports_serialization() - * - * @param WP_Block_Type $block_type Block type. - * @return bool Whether serialization of the current block's border properties - * should occur. - */ - function wp_skip_border_serialization($block_type) - { - } - /** - * Checks whether serialization of the current block's dimensions properties should occur. - * - * @since 5.9.0 - * @access private - * @deprecated 6.0.0 Use wp_should_skip_block_supports_serialization() introduced in 6.0.0. - * - * @see wp_should_skip_block_supports_serialization() - * - * @param WP_Block_type $block_type Block type. - * @return bool Whether to serialize spacing support styles & classes. - */ - function wp_skip_dimensions_serialization($block_type) - { - } - /** - * Checks whether serialization of the current block's spacing properties should occur. - * - * @since 5.9.0 - * @access private - * @deprecated 6.0.0 Use wp_should_skip_block_supports_serialization() introduced in 6.0.0. - * - * @see wp_should_skip_block_supports_serialization() - * - * @param WP_Block_Type $block_type Block type. - * @return bool Whether to serialize spacing support styles & classes. - */ - function wp_skip_spacing_serialization($block_type) - { - } /** * Inject the block editor assets that need to be loaded into the editor's iframe as an inline script. * @@ -98078,41 +95665,6 @@ function wp_add_iframed_editor_assets_html() function wp_get_attachment_thumb_file($post_id = 0) { } - /** - * Gets the path to a translation file for loading a textdomain just in time. - * - * Caches the retrieved results internally. - * - * @since 4.7.0 - * @deprecated 6.1.0 - * @access private - * - * @see _load_textdomain_just_in_time() - * - * @param string $domain Text domain. Unique identifier for retrieving translated strings. - * @param bool $reset Whether to reset the internal cache. Used by the switch to locale functionality. - * @return string|false The path to the translation file or false if no translation file was found. - */ - function _get_path_to_translation($domain, $reset = \false) - { - } - /** - * Gets the path to a translation file in the languages directory for the current locale. - * - * Holds a cached list of available .mo files to improve performance. - * - * @since 4.7.0 - * @deprecated 6.1.0 - * @access private - * - * @see _get_path_to_translation() - * - * @param string $domain Text domain. Unique identifier for retrieving translated strings. - * @return string|false The path to the translation file or false if no translation file was found. - */ - function _get_path_to_translation_from_lang_dir($domain) - { - } /** * Allows multiple block styles. * @@ -98125,24 +95677,6 @@ function _get_path_to_translation_from_lang_dir($domain) function _wp_multiple_block_styles($metadata) { } - /** - * Generates an inline style for a typography feature e.g. text decoration, - * text transform, and font style. - * - * @since 5.8.0 - * @access private - * @deprecated 6.1.0 Use wp_style_engine_get_styles() introduced in 6.1.0. - * - * @see wp_style_engine_get_styles() - * - * @param array $attributes Block's attributes. - * @param string $feature Key for the feature within the typography styles. - * @param string $css_property Slug for the CSS property the inline style sets. - * @return string CSS inline style. - */ - function wp_typography_get_css_variable_inline_style($attributes, $feature, $css_property) - { - } /** * Determines whether global terms are enabled. * @@ -98155,20 +95689,6 @@ function wp_typography_get_css_variable_inline_style($attributes, $feature, $css function global_terms_enabled() { } - /** - * Filter the SQL clauses of an attachment query to include filenames. - * - * @since 4.7.0 - * @deprecated 6.0.3 - * @access private - * - * @param array $clauses An array including WHERE, GROUP BY, JOIN, ORDER BY, - * DISTINCT, fields (SELECT), and LIMITS clauses. - * @return array The unmodified clauses. - */ - function _filter_query_attachment_filenames($clauses) - { - } /** * Retrieves a page given its title. * @@ -98195,19 +95715,6 @@ function _filter_query_attachment_filenames($clauses) function get_page_by_title($page_title, $output = \OBJECT, $post_type = 'page') { } - /** - * Returns the correct template for the site's home page. - * - * @access private - * @since 6.0.0 - * @deprecated 6.2.0 Site Editor's server-side redirect for missing postType and postId - * query args is removed. Thus, this function is no longer used. - * - * @return array|null A template object, or null if none could be found. - */ - function _resolve_home_block_template() - { - } /** * oEmbed API: Top-level oEmbed functionality * @@ -98302,17 +95809,6 @@ function wp_embed_defaults($url = '') function wp_oembed_get($url, $args = '') { } - /** - * Returns the initialized WP_oEmbed object. - * - * @since 2.9.0 - * @access private - * - * @return WP_oEmbed object. - */ - function _wp_oembed_get_object() - { - } /** * Adds a URL format and oEmbed provider URL pair. * @@ -98541,37 +96037,6 @@ function get_oembed_response_data_rich($data, $post, $width, $height) function wp_oembed_ensure_format($format) { } - /** - * Hooks into the REST API output to print XML instead of JSON. - * - * This is only done for the oEmbed API endpoint, - * which supports both formats. - * - * @access private - * @since 4.4.0 - * - * @param bool $served Whether the request has already been served. - * @param WP_HTTP_Response $result Result to send to the client. Usually a `WP_REST_Response`. - * @param WP_REST_Request $request Request used to generate the response. - * @param WP_REST_Server $server Server instance. - * @return true - */ - function _oembed_rest_pre_serve_request($served, $result, $request, $server) - { - } - /** - * Creates an XML string from a given array. - * - * @since 4.4.0 - * @access private - * - * @param array $data The original oEmbed response data. - * @param SimpleXMLElement $node Optional. XML node to append the result to recursively. - * @return string|false XML string on success, false on error. - */ - function _oembed_create_xml($data, $node = \null) - { - } /** * Filters the given oEmbed HTML to make sure iframes have a title attribute. * @@ -98669,18 +96134,6 @@ function print_embed_styles() function print_embed_scripts() { } - /** - * Prepare the oembed HTML to be displayed in an RSS feed. - * - * @since 4.4.0 - * @access private - * - * @param string $content The content to filter. - * @return string The filtered content. - */ - function _oembed_filter_feed_content($content) - { - } /** * Prints the necessary markup for the embed comments button. * @@ -99219,23 +96672,6 @@ function wptexturize($text, $reset = \false) function wptexturize_primes($haystack, $needle, $prime, $open_quote, $close_quote) { } - /** - * Searches for disabled element tags. Pushes element to stack on tag open - * and pops on tag close. - * - * Assumes first char of `$text` is tag opening and last char is tag closing. - * Assumes second char of `$text` is optionally `/` to indicate closing as in ``. - * - * @since 2.9.0 - * @access private - * - * @param string $text Text to check. Must be a tag like `` or `[shortcode]`. - * @param string[] $stack Array of open tag elements. - * @param string[] $disabled_elements Array of tag names to match against. Spaces are not allowed in tag names. - */ - function _wptexturize_pushpop_element($text, &$stack, $disabled_elements) - { - } /** * Replaces double line breaks with paragraph elements. * @@ -99275,33 +96711,6 @@ function wp_html_split($input) function get_html_split_regex() { } - /** - * Retrieves the combined regular expression for HTML and shortcodes. - * - * @access private - * @ignore - * @internal This function will be removed in 4.5.0 per Shortcode API Roadmap. - * @since 4.4.0 - * - * @param string $shortcode_regex Optional. The result from _get_wptexturize_shortcode_regex(). - * @return string The regular expression - */ - function _get_wptexturize_split_regex($shortcode_regex = '') - { - } - /** - * Retrieves the regular expression for shortcodes. - * - * @access private - * @ignore - * @since 4.4.0 - * - * @param string[] $tagnames Array of shortcodes to find. - * @return string The regular expression - */ - function _get_wptexturize_shortcode_regex($tagnames) - { - } /** * Replaces characters or phrases within HTML elements only. * @@ -99314,18 +96723,6 @@ function _get_wptexturize_shortcode_regex($tagnames) function wp_replace_in_html_tags($haystack, $replace_pairs) { } - /** - * Newline preservation help function for wpautop(). - * - * @since 3.1.0 - * @access private - * - * @param array $matches preg_replace_callback matches array - * @return string - */ - function _autop_newline_preservation_helper($matches) - { - } /** * Don't auto-p wrap shortcodes that stand alone. * @@ -99356,34 +96753,6 @@ function shortcode_unautop($text) function seems_utf8($str) { } - /** - * Converts a number of special characters into their HTML entities. - * - * Specifically deals with: `&`, `<`, `>`, `"`, and `'`. - * - * `$quote_style` can be set to ENT_COMPAT to encode `"` to - * `"`, or ENT_QUOTES to do both. Default is ENT_NOQUOTES where no quotes are encoded. - * - * @since 1.2.2 - * @since 5.5.0 `$quote_style` also accepts `ENT_XML1`. - * @access private - * - * @param string $text The text which is to be encoded. - * @param int|string $quote_style Optional. Converts double quotes if set to ENT_COMPAT, - * both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. - * Converts single and double quotes, as well as converting HTML - * named entities (that are not also XML named entities) to their - * code points if set to ENT_XML1. Also compatible with old values; - * converting single quotes if set to 'single', - * double if set to 'double' or both if otherwise set. - * Default is ENT_NOQUOTES. - * @param false|string $charset Optional. The character encoding of the string. Default false. - * @param bool $double_encode Optional. Whether to encode existing HTML entities. Default false. - * @return string The encoded text with HTML entities. - */ - function _wp_specialchars($text, $quote_style = \ENT_NOQUOTES, $charset = \false, $double_encode = \false) - { - } /** * Converts a number of HTML entities into their special characters. * @@ -100195,48 +97564,6 @@ function urldecode_deep($value) function antispambot($email_address, $hex_encoding = 0) { } - /** - * Callback to convert URI match to HTML A element. - * - * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). - * - * @since 2.3.2 - * @access private - * - * @param array $matches Single Regex Match. - * @return string HTML A element with URI address. - */ - function _make_url_clickable_cb($matches) - { - } - /** - * Callback to convert URL match to HTML A element. - * - * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). - * - * @since 2.3.2 - * @access private - * - * @param array $matches Single Regex Match. - * @return string HTML A element with URL address. - */ - function _make_web_ftp_clickable_cb($matches) - { - } - /** - * Callback to convert email address match to HTML A element. - * - * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). - * - * @since 2.3.2 - * @access private - * - * @param array $matches Single Regex Match. - * @return string HTML A element with email address. - */ - function _make_email_clickable_cb($matches) - { - } /** * Helper function used to build the "rel" attribute for a URL when creating an anchor using make_clickable(). * @@ -100262,39 +97589,6 @@ function _make_clickable_rel_attr($url) function make_clickable($text) { } - /** - * Breaks a string into chunks by splitting at whitespace characters. - * - * The length of each returned chunk is as close to the specified length goal as possible, - * with the caveat that each chunk includes its trailing delimiter. - * Chunks longer than the goal are guaranteed to not have any inner whitespace. - * - * Joining the returned chunks with empty delimiters reconstructs the input string losslessly. - * - * Input string must have no null characters (or eventual transformations on output chunks must not care about null characters) - * - * _split_str_by_whitespace( "1234 67890 1234 67890a cd 1234 890 123456789 1234567890a 45678 1 3 5 7 90 ", 10 ) == - * array ( - * 0 => '1234 67890 ', // 11 characters: Perfect split. - * 1 => '1234 ', // 5 characters: '1234 67890a' was too long. - * 2 => '67890a cd ', // 10 characters: '67890a cd 1234' was too long. - * 3 => '1234 890 ', // 11 characters: Perfect split. - * 4 => '123456789 ', // 10 characters: '123456789 1234567890a' was too long. - * 5 => '1234567890a ', // 12 characters: Too long, but no inner whitespace on which to split. - * 6 => ' 45678 ', // 11 characters: Perfect split. - * 7 => '1 3 5 7 90 ', // 11 characters: End of $text. - * ); - * - * @since 3.4.0 - * @access private - * - * @param string $text The string to split. - * @param int $goal The desired chunk length. - * @return array Numeric array of chunks. - */ - function _split_str_by_whitespace($text, $goal) - { - } /** * Callback to add a rel attribute to HTML A element. * @@ -100444,18 +97738,6 @@ function is_email($email, $deprecated = \false) function wp_iso_descrambler($subject) { } - /** - * Helper function to convert hex encoded chars to ASCII. - * - * @since 3.1.0 - * @access private - * - * @param array $matches The preg_replace_callback matches array. - * @return string Converted chars. - */ - function _wp_iso_convert($matches) - { - } /** * Given a date in the timezone of the site, returns that date in UTC. * @@ -100603,24 +97885,6 @@ function ent2ncr($text) function format_for_editor($text, $default_editor = \null) { } - /** - * Performs a deep string replace operation to ensure the values in $search are no longer present. - * - * Repeats the replacement operation until it no longer replaces anything so as to remove "nested" values - * e.g. $subject = '%0%0%0DDD', $search ='%0D', $result ='' rather than the '%0%0DD' that - * str_replace would return - * - * @since 2.8.1 - * @access private - * - * @param string|array $search The value being searched for, otherwise known as the needle. - * An array may be used to designate multiple needles. - * @param string $subject The string being searched and replaced on, otherwise known as the haystack. - * @return string The string with the replaced values. - */ - function _deep_replace($search, $subject) - { - } /** * Escapes data for use in a MySQL query. * @@ -100945,20 +98209,6 @@ function wp_html_excerpt($str, $count, $more = \null) function links_add_base_url($content, $base, $attrs = array('src', 'href')) { } - /** - * Callback to add a base URL to relative links in passed content. - * - * @since 2.7.0 - * @access private - * - * @global string $_links_add_base - * - * @param string $m The matched link. - * @return string The processed link. - */ - function _links_add_base($m) - { - } /** * Adds a Target attribute to all links in passed content. * @@ -100979,20 +98229,6 @@ function _links_add_base($m) function links_add_target($content, $target = '_blank', $tags = array('a')) { } - /** - * Callback to add a target attribute to all links in passed content. - * - * @since 2.7.0 - * @access private - * - * @global string $_links_add_target - * - * @param string $m The matched link. - * @return string The processed link. - */ - function _links_add_target($m) - { - } /** * Normalizes EOL characters and strips duplicate whitespace. * @@ -101058,19 +98294,6 @@ function sanitize_text_field($str) function sanitize_textarea_field($str) { } - /** - * Internal helper function to sanitize a string from user input or from the database. - * - * @since 4.7.0 - * @access private - * - * @param string $str String to sanitize. - * @param bool $keep_newlines Optional. Whether to keep newlines. Default: false. - * @return string Sanitized string. - */ - function _sanitize_text_fields($str, $keep_newlines = \false) - { - } /** * i18n-friendly version of basename(). * @@ -101196,16 +98419,6 @@ function print_emoji_styles() function print_emoji_detection_script() { } - /** - * Prints inline Emoji detection script. - * - * @ignore - * @since 4.6.0 - * @access private - */ - function _print_emoji_detection_script() - { - } /** * Converts emoji characters to their equivalent HTML entity. * @@ -101241,21 +98454,6 @@ function wp_staticize_emoji($text) function wp_staticize_emoji_for_email($mail) { } - /** - * Returns arrays of emoji data. - * - * These arrays are automatically built from the regex in twemoji.js - if they need to be updated, - * you should update the regex there, then run the `npm run grunt precommit:emoji` job. - * - * @since 4.9.0 - * @access private - * - * @param string $type Optional. Which array type to return. Accepts 'partials' or 'entities', default 'entities'. - * @return array An array to match all emoji that WordPress recognises. - */ - function _wp_emoji_list($type = 'entities') - { - } /** * Shortens a URL, to be used as link text. * @@ -101716,26 +98914,6 @@ function is_new_day() function build_query($data) { } - /** - * From php.net (modified by Mark Jaquith to behave like the native PHP5 function). - * - * @since 3.2.0 - * @access private - * - * @see https://www.php.net/manual/en/function.http-build-query.php - * - * @param array|object $data An array or object of data. Converted to array. - * @param string $prefix Optional. Numeric index. If set, start parameter numbering with it. - * Default null. - * @param string $sep Optional. Argument separator; defaults to 'arg_separator.output'. - * Default null. - * @param string $key Optional. Used to prefix key name. Default empty string. - * @param bool $urlencode Optional. Whether to use urlencode() in the result. Default true. - * @return string The query string. - */ - function _http_build_query($data, $prefix = \null, $sep = \null, $key = '', $urlencode = \true) - { - } /** * Retrieves a modified URL query string. * @@ -102315,18 +99493,6 @@ function wp_get_upload_dir() function wp_upload_dir($time = \null, $create_dir = \true, $refresh_cache = \false) { } - /** - * A non-filtered, non-cached version of wp_upload_dir() that doesn't check the path. - * - * @since 4.5.0 - * @access private - * - * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. - * @return array See wp_upload_dir() - */ - function _wp_upload_dir($time = \null) - { - } /** * Gets a filename that is sanitized and unique for the given directory. * @@ -102348,33 +99514,6 @@ function _wp_upload_dir($time = \null) function wp_unique_filename($dir, $filename, $unique_filename_callback = \null) { } - /** - * Helper function to test if each of an array of file names could conflict with existing files. - * - * @since 5.8.1 - * @access private - * - * @param string[] $filenames Array of file names to check. - * @param string $dir The directory containing the files. - * @param array $files An array of existing files in the directory. May be empty. - * @return bool True if the tested file name could match an existing file, false otherwise. - */ - function _wp_check_alternate_file_names($filenames, $dir, $files) - { - } - /** - * Helper function to check if a file name could match an existing image sub-size file name. - * - * @since 5.3.1 - * @access private - * - * @param string $filename The file name to check. - * @param array $files An array of existing files in the directory. - * @return bool True if the tested file name could match an existing file, false otherwise. - */ - function _wp_check_existing_file_names($filename, $files) - { - } /** * Creates a file in the upload folder with given content. * @@ -102631,140 +99770,6 @@ function wp_nonce_ays($action) function wp_die($message = '', $title = '', $args = array()) { } - /** - * Kills WordPress execution and displays HTML page with an error message. - * - * This is the default handler for wp_die(). If you want a custom one, - * you can override this using the {@see 'wp_die_handler'} filter in wp_die(). - * - * @since 3.0.0 - * @access private - * - * @param string|WP_Error $message Error message or WP_Error object. - * @param string $title Optional. Error title. Default empty string. - * @param string|array $args Optional. Arguments to control behavior. Default empty array. - */ - function _default_wp_die_handler($message, $title = '', $args = array()) - { - } - /** - * Kills WordPress execution and displays Ajax response with an error message. - * - * This is the handler for wp_die() when processing Ajax requests. - * - * @since 3.4.0 - * @access private - * - * @param string $message Error message. - * @param string $title Optional. Error title (unused). Default empty string. - * @param string|array $args Optional. Arguments to control behavior. Default empty array. - */ - function _ajax_wp_die_handler($message, $title = '', $args = array()) - { - } - /** - * Kills WordPress execution and displays JSON response with an error message. - * - * This is the handler for wp_die() when processing JSON requests. - * - * @since 5.1.0 - * @access private - * - * @param string $message Error message. - * @param string $title Optional. Error title. Default empty string. - * @param string|array $args Optional. Arguments to control behavior. Default empty array. - */ - function _json_wp_die_handler($message, $title = '', $args = array()) - { - } - /** - * Kills WordPress execution and displays JSONP response with an error message. - * - * This is the handler for wp_die() when processing JSONP requests. - * - * @since 5.2.0 - * @access private - * - * @param string $message Error message. - * @param string $title Optional. Error title. Default empty string. - * @param string|array $args Optional. Arguments to control behavior. Default empty array. - */ - function _jsonp_wp_die_handler($message, $title = '', $args = array()) - { - } - /** - * Kills WordPress execution and displays XML response with an error message. - * - * This is the handler for wp_die() when processing XMLRPC requests. - * - * @since 3.2.0 - * @access private - * - * @global wp_xmlrpc_server $wp_xmlrpc_server - * - * @param string $message Error message. - * @param string $title Optional. Error title. Default empty string. - * @param string|array $args Optional. Arguments to control behavior. Default empty array. - */ - function _xmlrpc_wp_die_handler($message, $title = '', $args = array()) - { - } - /** - * Kills WordPress execution and displays XML response with an error message. - * - * This is the handler for wp_die() when processing XML requests. - * - * @since 5.2.0 - * @access private - * - * @param string $message Error message. - * @param string $title Optional. Error title. Default empty string. - * @param string|array $args Optional. Arguments to control behavior. Default empty array. - */ - function _xml_wp_die_handler($message, $title = '', $args = array()) - { - } - /** - * Kills WordPress execution and displays an error message. - * - * This is the handler for wp_die() when processing APP requests. - * - * @since 3.4.0 - * @since 5.1.0 Added the $title and $args parameters. - * @access private - * - * @param string $message Optional. Response to print. Default empty string. - * @param string $title Optional. Error title (unused). Default empty string. - * @param string|array $args Optional. Arguments to control behavior. Default empty array. - */ - function _scalar_wp_die_handler($message = '', $title = '', $args = array()) - { - } - /** - * Processes arguments passed to wp_die() consistently for its handlers. - * - * @since 5.1.0 - * @access private - * - * @param string|WP_Error $message Error message or WP_Error object. - * @param string $title Optional. Error title. Default empty string. - * @param string|array $args Optional. Arguments to control behavior. Default empty array. - * @return array { - * Processed arguments. - * - * @type string $0 Error message. - * @type string $1 Error title. - * @type array $2 Arguments to control behavior. - * } - * @phpstan-return array{ - * 0: string, - * 1: string, - * 2: array, - * } - */ - function _wp_die_process_input($message, $title = '', $args = array()) - { - } /** * Encodes a variable into JSON, with some sanity checks. * @@ -102780,56 +99785,6 @@ function _wp_die_process_input($message, $title = '', $args = array()) function wp_json_encode($data, $options = 0, $depth = 512) { } - /** - * Performs sanity checks on data that shall be encoded to JSON. - * - * @ignore - * @since 4.1.0 - * @access private - * - * @see wp_json_encode() - * - * @throws Exception If depth limit is reached. - * - * @param mixed $data Variable (usually an array or object) to encode as JSON. - * @param int $depth Maximum depth to walk through $data. Must be greater than 0. - * @return mixed The sanitized data that shall be encoded to JSON. - */ - function _wp_json_sanity_check($data, $depth) - { - } - /** - * Converts a string to UTF-8, so that it can be safely encoded to JSON. - * - * @ignore - * @since 4.1.0 - * @access private - * - * @see _wp_json_sanity_check() - * - * @param string $input_string The string which is to be converted. - * @return string The checked string. - */ - function _wp_json_convert_string($input_string) - { - } - /** - * Prepares response data to be serialized to JSON. - * - * This supports the JsonSerializable interface for PHP 5.2-5.3 as well. - * - * @ignore - * @since 4.4.0 - * @deprecated 5.3.0 This function is no longer needed as support for PHP 5.2-5.3 - * has been dropped. - * @access private - * - * @param mixed $data Native representation. - * @return bool|int|float|null|string|array Data ready for `json_encode()`. - */ - function _wp_json_prepare_data($data) - { - } /** * Sends a JSON response back to an Ajax request. * @@ -102916,71 +99871,6 @@ function wp_check_jsonp_callback($callback) function wp_json_file_decode($filename, $options = array()) { } - /** - * Retrieves the WordPress home page URL. - * - * If the constant named 'WP_HOME' exists, then it will be used and returned - * by the function. This can be used to counter the redirection on your local - * development environment. - * - * @since 2.2.0 - * @access private - * - * @see WP_HOME - * - * @param string $url URL for the home location. - * @return string Homepage location. - */ - function _config_wp_home($url = '') - { - } - /** - * Retrieves the WordPress site URL. - * - * If the constant named 'WP_SITEURL' is defined, then the value in that - * constant will always be returned. This can be used for debugging a site - * on your localhost while not having to change the database to your URL. - * - * @since 2.2.0 - * @access private - * - * @see WP_SITEURL - * - * @param string $url URL to set the WordPress site location. - * @return string The WordPress site URL. - */ - function _config_wp_siteurl($url = '') - { - } - /** - * Deletes the fresh site option. - * - * @since 4.7.0 - * @access private - */ - function _delete_option_fresh_site() - { - } - /** - * Sets the localized direction for MCE plugin. - * - * Will only set the direction to 'rtl', if the WordPress locale has - * the text direction set to 'rtl'. - * - * Fills in the 'directionality' setting, enables the 'directionality' - * plugin, and adds the 'ltr' button to 'toolbar1', formerly - * 'theme_advanced_buttons1' array keys. These keys are then returned - * in the $mce_init (TinyMCE settings) array. - * - * @since 2.1.0 - * @access private - * - * @param array $mce_init MCE settings array. - * @return array Direction set for 'rtl', if needed by locale. - */ - function _mce_set_direction($mce_init) - { - } /** * Converts smiley code to the icon graphic file equivalent. * @@ -103083,69 +99973,6 @@ function wp_array_slice_assoc($input_array, $keys) function wp_recursive_ksort(&$input_array) { } - /** - * Accesses an array in depth based on a path of keys. - * - * It is the PHP equivalent of JavaScript's `lodash.get()` and mirroring it may help other components - * retain some symmetry between client and server implementations. - * - * Example usage: - * - * $input_array = array( - * 'a' => array( - * 'b' => array( - * 'c' => 1, - * ), - * ), - * ); - * _wp_array_get( $input_array, array( 'a', 'b', 'c' ) ); - * - * @internal - * - * @since 5.6.0 - * @access private - * - * @param array $input_array An array from which we want to retrieve some information. - * @param array $path An array of keys describing the path with which to retrieve information. - * @param mixed $default_value Optional. The return value if the path does not exist within the array, - * or if `$input_array` or `$path` are not arrays. Default null. - * @return mixed The value from the path specified. - */ - function _wp_array_get($input_array, $path, $default_value = \null) - { - } - /** - * Sets an array in depth based on a path of keys. - * - * It is the PHP equivalent of JavaScript's `lodash.set()` and mirroring it may help other components - * retain some symmetry between client and server implementations. - * - * Example usage: - * - * $input_array = array(); - * _wp_array_set( $input_array, array( 'a', 'b', 'c', 1 ) ); - * - * $input_array becomes: - * array( - * 'a' => array( - * 'b' => array( - * 'c' => 1, - * ), - * ), - * ); - * - * @internal - * - * @since 5.8.0 - * @access private - * - * @param array $input_array An array that we want to mutate to include a specific value in a path. - * @param array $path An array of keys describing the path that we want to mutate. - * @param mixed $value The value that will be set. - */ - function _wp_array_set(&$input_array, $path, $value = \null) - { - } /** * This function is trying to replicate what * lodash's kebabCase (JS library) does in the client. @@ -103445,29 +100272,6 @@ function _deprecated_file($file, $version, $replacement = '', $message = '') function _deprecated_argument($function_name, $version, $message = '') { } - /** - * Marks a deprecated action or filter hook as deprecated and throws a notice. - * - * Use the {@see 'deprecated_hook_run'} action to get the backtrace describing where - * the deprecated hook was called. - * - * Default behavior is to trigger a user error if `WP_DEBUG` is true. - * - * This function is called by the do_action_deprecated() and apply_filters_deprecated() - * functions, and so generally does not need to be called directly. - * - * @since 4.6.0 - * @since 5.4.0 The error type is now classified as E_USER_DEPRECATED (used to default to E_USER_NOTICE). - * @access private - * - * @param string $hook The hook that was used. - * @param string $version The version of WordPress that deprecated the hook. - * @param string $replacement Optional. The hook that should have been used. Default empty string. - * @param string $message Optional. A message regarding the change. Default empty. - */ - function _deprecated_hook($hook, $version, $replacement = '', $message = '') - { - } /** * Marks something as being incorrectly called. * @@ -103677,19 +100481,6 @@ function is_site_meta_supported() function wp_timezone_override_offset() { } - /** - * Sort-helper for timezones. - * - * @since 2.9.0 - * @access private - * - * @param array $a - * @param array $b - * @return int - */ - function _wp_timezone_choice_usort_callback($a, $b) - { - } /** * Gives a nicely-formatted list of timezone strings. * @@ -103703,20 +100494,6 @@ function _wp_timezone_choice_usort_callback($a, $b) function wp_timezone_choice($selected_zone, $locale = \null) { } - /** - * Strips close comment and close php tags from file headers used by WP. - * - * @since 2.8.0 - * @access private - * - * @see https://core.trac.wordpress.org/ticket/8497 - * - * @param string $str Header comment to clean up. - * @return string - */ - function _cleanup_header_comment($str) - { - } /** * Permanently deletes comments or posts of any type that have held a status * of 'trash' for the number of days defined in EMPTY_TRASH_DAYS. @@ -103854,45 +100631,6 @@ function send_nosniff_header() function _wp_mysql_week($column) { } - /** - * Finds hierarchy loops using a callback function that maps object IDs to parent IDs. - * - * @since 3.1.0 - * @access private - * - * @param callable $callback Function that accepts ( ID, $callback_args ) and outputs parent_ID. - * @param int $start The ID to start the loop check at. - * @param int $start_parent The parent_ID of $start to use instead of calling $callback( $start ). - * Use null to always use $callback. - * @param array $callback_args Optional. Additional arguments to send to $callback. Default empty array. - * @return array IDs of all members of loop. - */ - function wp_find_hierarchy_loop($callback, $start, $start_parent, $callback_args = array()) - { - } - /** - * Uses the "The Tortoise and the Hare" algorithm to detect loops. - * - * For every step of the algorithm, the hare takes two steps and the tortoise one. - * If the hare ever laps the tortoise, there must be a loop. - * - * @since 3.1.0 - * @access private - * - * @param callable $callback Function that accepts ( ID, callback_arg, ... ) and outputs parent_ID. - * @param int $start The ID to start the loop check at. - * @param array $override Optional. An array of ( ID => parent_ID, ... ) to use instead of $callback. - * Default empty array. - * @param array $callback_args Optional. Additional arguments to send to $callback. Default empty array. - * @param bool $_return_loop Optional. Return loop members or just detect presence of loop? Only set - * to true if you already know the given $start is part of a loop (otherwise - * the returned array might include branches). Default false. - * @return mixed Scalar ID of some arbitrary member of the loop, or array of IDs of all members of loop if - * $_return_loop - */ - function wp_find_hierarchy_loop_tortoise_hare($callback, $start, $override = array(), $callback_args = array(), $_return_loop = \false) - { - } /** * Sends a HTTP header to limit rendering of pages to same origin iframes. * @@ -103957,17 +100695,6 @@ function wp_debug_backtrace_summary($ignore_class = \null, $skip_frames = 0, $pr function _get_non_cached_ids($object_ids, $cache_key) { } - /** - * Tests if the current device has the capability to upload files. - * - * @since 3.4.0 - * @access private - * - * @return bool Whether the device is able to upload files. - */ - function _device_can_upload() - { - } /** * Tests if a given path is a stream URL * @@ -104052,21 +100779,6 @@ function wp_auth_check($response) function get_tag_regex($tag) { } - /** - * Retrieves a canonical form of the provided charset appropriate for passing to PHP - * functions such as htmlspecialchars() and charset HTML attributes. - * - * @since 3.6.0 - * @access private - * - * @see https://core.trac.wordpress.org/ticket/23688 - * - * @param string $charset A charset name. - * @return string The canonical form of the charset. - */ - function _canonical_charset($charset) - { - } /** * Sets the mbstring internal encoding to a binary safe encoding when func_overload * is enabled. @@ -104331,21 +101043,6 @@ function wp_privacy_delete_old_export_files() function wp_get_update_php_url() { } - /** - * Gets the default URL to learn more about updating the PHP version the site is running on. - * - * Do not use this function to retrieve this URL. Instead, use {@see wp_get_update_php_url()} when relying on the URL. - * This function does not allow modifying the returned URL, and is only used to compare the actually used URL with the - * default one. - * - * @since 5.1.0 - * @access private - * - * @return string Default URL to learn more about updating PHP. - */ - function wp_get_default_update_php_url() - { - } /** * Prints the default annotation for the web host altering the "Update PHP" page URL. * @@ -104415,21 +101112,6 @@ function wp_direct_php_update_button() function wp_get_update_https_url() { } - /** - * Gets the default URL to learn more about updating the site to use HTTPS. - * - * Do not use this function to retrieve this URL. Instead, use {@see wp_get_update_https_url()} when relying on the URL. - * This function does not allow modifying the returned URL, and is only used to compare the actually used URL with the - * default one. - * - * @since 5.7.0 - * @access private - * - * @return string Default URL to learn more about updating to HTTPS. - */ - function wp_get_default_update_https_url() - { - } /** * Gets the URL for directly updating the site to use HTTPS. * @@ -105378,17 +102060,6 @@ function the_custom_logo($blog_id = 0) function wp_get_document_title() { } - /** - * Displays title tag with content. - * - * @ignore - * @since 4.1.0 - * @since 4.4.0 Improved title output replaced `wp_title()`. - * @access private - */ - function _wp_render_title_tag() - { - } /** * Displays or retrieves page title for all areas of blog. * @@ -106622,23 +103293,6 @@ function disabled($disabled, $current = \true, $display = \true) function wp_readonly($readonly_value, $current = \true, $display = \true) { } - /** - * Private helper function for checked, selected, disabled and readonly. - * - * Compares the first two arguments and if identical marks as `$type`. - * - * @since 2.8.0 - * @access private - * - * @param mixed $helper One of the values to compare. - * @param mixed $current The other value to compare if not just true. - * @param bool $display Whether to echo or just return the string. - * @param string $type The type of checked|selected|disabled|readonly we are doing. - * @return string HTML attribute or empty string. - */ - function __checked_selected_helper($helper, $current, $display, $type) - { - } /** * Assigns a visual indicator for required form fields. * @@ -106789,26 +103443,6 @@ function wp_theme_has_theme_json() function wp_clean_theme_json_cache() { } - /** - * Core HTTP Request API - * - * Standardizes the HTTP requests for WordPress. Handles cookies, gzip encoding and decoding, chunk - * decoding, if HTTP 1.1 and various other difficult HTTP protocol implementations. - * - * @package WordPress - * @subpackage HTTP - */ - /** - * Returns the initialized WP_Http Object - * - * @since 2.7.0 - * @access private - * - * @return WP_Http HTTP Transport object. - */ - function _wp_http_get_object() - { - } /** * Retrieve the raw response from a safe HTTP request. * @@ -107211,44 +103845,6 @@ function ms_allowed_http_request_hosts($is_external, $host) function wp_parse_url($url, $component = -1) { } - /** - * Retrieve a specific component from a parsed URL array. - * - * @internal - * - * @since 4.7.0 - * @access private - * - * @link https://www.php.net/manual/en/function.parse-url.php - * - * @param array|false $url_parts The parsed URL. Can be false if the URL failed to parse. - * @param int $component The specific component to retrieve. Use one of the PHP - * predefined constants to specify which one. - * Defaults to -1 (= return all parts as an array). - * @return mixed False on parse failure; Array of URL components on success; - * When a specific component has been requested: null if the component - * doesn't exist in the given URL; a string or - in the case of - * PHP_URL_PORT - integer when it does. See parse_url()'s return values. - */ - function _get_component_from_parsed_url_array($url_parts, $component = -1) - { - } - /** - * Translate a PHP_URL_* constant to the named array keys PHP uses. - * - * @internal - * - * @since 4.7.0 - * @access private - * - * @link https://www.php.net/manual/en/url.constants.php - * - * @param int $constant PHP_URL_* constant. - * @return string|false The named key or false. - */ - function _wp_translate_php_url_constant_to_key($constant) - { - } /** * HTTPS detection functions. * @@ -107304,56 +103900,6 @@ function wp_is_site_url_using_https() function wp_is_https_supported() { } - /** - * Runs a remote HTTPS request to detect whether HTTPS supported, and stores potential errors. - * - * This internal function is called by a regular Cron hook to ensure HTTPS support is detected and maintained. - * - * @since 5.7.0 - * @access private - */ - function wp_update_https_detection_errors() - { - } - /** - * Schedules the Cron hook for detecting HTTPS support. - * - * @since 5.7.0 - * @access private - */ - function wp_schedule_https_detection() - { - } - /** - * Disables SSL verification if the 'cron_request' arguments include an HTTPS URL. - * - * This prevents an issue if HTTPS breaks, where there would be a failed attempt to verify HTTPS. - * - * @since 5.7.0 - * @access private - * - * @param array $request The cron request arguments. - * @return array The filtered cron request arguments. - */ - function wp_cron_conditionally_prevent_sslverify($request) - { - } - /** - * Checks whether a given HTML string is likely an output from this WordPress site. - * - * This function attempts to check for various common WordPress patterns whether they are included in the HTML string. - * Since any of these actions may be disabled through third-party code, this function may also return null to indicate - * that it was not possible to determine ownership. - * - * @since 5.7.0 - * @access private - * - * @param string $html Full HTML output string, e.g. from a HTTP response. - * @return bool|null True/false for whether HTML was generated by this site, null if unable to determine. - */ - function wp_is_local_html_output($html) - { - } /** * HTTPS migration functions. * @@ -107401,22 +103947,6 @@ function wp_replace_insecure_home_url($content) function wp_update_urls_to_https() { } - /** - * Updates the 'https_migration_required' option if needed when the given URL has been updated from HTTP to HTTPS. - * - * If this is a fresh site, a migration will not be required, so the option will be set as `false`. - * - * This is hooked into the {@see 'update_option_home'} action. - * - * @since 5.7.0 - * @access private - * - * @param mixed $old_url Previous value of the URL option. - * @param mixed $new_url New value of the URL option. - */ - function wp_update_https_migration_required($old_url, $new_url) - { - } function get_file($path) { } @@ -107542,49 +104072,6 @@ function wp_kses_split($content, $allowed_html, $allowed_protocols) function wp_kses_uri_attributes() { } - /** - * Callback for `wp_kses_split()`. - * - * @since 3.1.0 - * @access private - * @ignore - * - * @global array[]|string $pass_allowed_html An array of allowed HTML elements and attributes, - * or a context name such as 'post'. - * @global string[] $pass_allowed_protocols Array of allowed URL protocols. - * - * @param array $matches preg_replace regexp matches - * @return string - */ - function _wp_kses_split_callback($matches) - { - } - /** - * Callback for `wp_kses_split()` for fixing malformed HTML tags. - * - * This function does a lot of work. It rejects some very malformed things like - * `<:::>`. It returns an empty string, if the element isn't allowed (look ma, no - * `strip_tags()`!). Otherwise it splits the tag into an element and an attribute - * list. - * - * After the tag is split into an element and an attribute list, it is run - * through another filter which will remove illegal attributes and once that is - * completed, will be returned. - * - * @access private - * @ignore - * @since 1.0.0 - * - * @param string $content Content to filter. - * @param array[]|string $allowed_html An array of allowed HTML elements and attributes, - * or a context name such as 'post'. See wp_kses_allowed_html() - * for the list of accepted context names. - * @param string[] $allowed_protocols Array of allowed URL protocols. - * @return string Fixed HTML element - */ - function wp_kses_split2($content, $allowed_html, $allowed_protocols) - { - } /** * Removes all attributes, if none are allowed for this element. * @@ -107788,24 +104275,6 @@ function wp_kses_html_error($attr) function wp_kses_bad_protocol_once($content, $allowed_protocols, $count = 1) { } - /** - * Callback for `wp_kses_bad_protocol_once()` regular expression. - * - * This function processes URL protocols, checks to see if they're in the - * list of allowed protocols or not, and returns different data depending - * on the answer. - * - * @access private - * @ignore - * @since 1.0.0 - * - * @param string $scheme URI scheme to check against the list of allowed protocols. - * @param string[] $allowed_protocols Array of allowed URL protocols. - * @return string Sanitized content. - */ - function wp_kses_bad_protocol_once2($scheme, $allowed_protocols) - { - } /** * Converts and fixes HTML entities. * @@ -107860,38 +104329,6 @@ function wp_kses_named_entities($matches) function wp_kses_xml_named_entities($matches) { } - /** - * Callback for `wp_kses_normalize_entities()` regular expression. - * - * This function helps `wp_kses_normalize_entities()` to only accept 16-bit - * values and nothing more for `&#number;` entities. - * - * @access private - * @ignore - * @since 1.0.0 - * - * @param array $matches `preg_replace_callback()` matches array. - * @return string Correctly encoded entity. - */ - function wp_kses_normalize_entities2($matches) - { - } - /** - * Callback for `wp_kses_normalize_entities()` for regular expression. - * - * This function helps `wp_kses_normalize_entities()` to only accept valid Unicode - * numeric entities in hex form. - * - * @since 2.7.0 - * @access private - * @ignore - * - * @param array $matches `preg_replace_callback()` matches array. - * @return string Correctly encoded entity. - */ - function wp_kses_normalize_entities3($matches) - { - } /** * Determines if a Unicode codepoint is valid. * @@ -107918,32 +104355,6 @@ function valid_unicode($i) function wp_kses_decode_entities($content) { } - /** - * Regex callback for `wp_kses_decode_entities()`. - * - * @since 2.9.0 - * @access private - * @ignore - * - * @param array $matches preg match - * @return string - */ - function _wp_kses_decode_entities_chr($matches) - { - } - /** - * Regex callback for `wp_kses_decode_entities()`. - * - * @since 2.9.0 - * @access private - * @ignore - * - * @param array $matches preg match - * @return string - */ - function _wp_kses_decode_entities_chr_hexdec($matches) - { - } /** * Sanitize content with allowed HTML KSES rules. * @@ -108109,35 +104520,6 @@ function kses_init() function safecss_filter_attr($css, $deprecated = '') { } - /** - * Helper function to add global attributes to a tag in the allowed HTML list. - * - * @since 3.5.0 - * @since 5.0.0 Added support for `data-*` wildcard attributes. - * @since 6.0.0 Added `dir`, `lang`, and `xml:lang` to global attributes. - * - * @access private - * @ignore - * - * @param array $value An array of attributes. - * @return array The array of attributes with global attributes added. - */ - function _wp_add_global_attributes($value) - { - } - /** - * Helper function to check if this is a safe PDF URL. - * - * @since 5.9.0 - * @access private - * @ignore - * - * @param string $url The URL to check. - * @return bool True if the URL is safe, false otherwise. - */ - function _wp_kses_allow_pdf_objects($url) - { - } /** * Core Translation API * @@ -108740,25 +105122,6 @@ function load_script_textdomain($handle, $domain = 'default', $path = '') function load_script_translations($file, $handle, $domain) { } - /** - * Loads plugin and theme text domains just-in-time. - * - * When a textdomain is encountered for the first time, we try to load - * the translation file from `wp-content/languages`, removing the need - * to call load_plugin_textdomain() or load_theme_textdomain(). - * - * @since 4.6.0 - * @access private - * - * @global MO[] $l10n_unloaded An array of all text domains that have been unloaded again. - * @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry. - * - * @param string $domain Text domain. Unique identifier for retrieving translated strings. - * @return bool True when the textdomain is successfully loaded, false otherwise. - */ - function _load_textdomain_just_in_time($domain) - { - } /** * Returns the Translations instance for a text domain. * @@ -108976,21 +105339,6 @@ function restore_current_locale() function is_locale_switched() { } - /** - * Translates the provided settings value using its i18n schema. - * - * @since 5.9.0 - * @access private - * - * @param string|string[]|array[]|object $i18n_schema I18n schema for the setting. - * @param string|string[]|array[] $settings Value for the settings. - * @param string $textdomain Textdomain to use with translations. - * - * @return string|string[]|array[] Translated settings. - */ - function translate_settings_using_i18n_schema($i18n_schema, $settings, $textdomain) - { - } /** * Retrieves the list item separator based on the locale. * @@ -109143,25 +105491,6 @@ function get_post_permalink($post = 0, $leavename = \false, $sample = \false) function get_page_link($post = \false, $leavename = \false, $sample = \false) { } - /** - * Retrieves the page permalink. - * - * Ignores page_on_front. Internal use only. - * - * @since 2.1.0 - * @access private - * - * @global WP_Rewrite $wp_rewrite WordPress rewrite component. - * - * @param int|WP_Post $post Optional. Post ID or object. Default uses the global `$post`. - * @param bool $leavename Optional. Whether to keep the page name. Default false. - * @param bool $sample Optional. Whether it should be treated as a sample permalink. - * Default false. - * @return string The page permalink. - */ - function _get_page_link($post = \false, $leavename = \false, $sample = \false) - { - } /** * Retrieves the permalink for an attachment. * @@ -110206,25 +106535,6 @@ function get_the_posts_pagination($args = array()) function the_posts_pagination($args = array()) { } - /** - * Wraps passed links in navigational markup. - * - * @since 4.1.0 - * @since 5.3.0 Added the `aria_label` parameter. - * @access private - * - * @param string $links Navigational links. - * @param string $css_class Optional. Custom class for the nav element. - * Default 'posts-navigation'. - * @param string $screen_reader_text Optional. Screen reader text for the nav element. - * Default 'Posts navigation'. - * @param string $aria_label Optional. ARIA label for the nav element. - * Defaults to the value of `$screen_reader_text`. - * @return string Navigation template tag. - */ - function _navigation_markup($links, $css_class = 'posts-navigation', $screen_reader_text = '', $aria_label = '') - { - } /** * Retrieves the comments page number link. * @@ -110990,18 +107300,6 @@ function wp_is_internal_link($link) function wp_get_server_protocol() { } - /** - * Fix `$_SERVER` variables for various setups. - * - * @since 3.0.0 - * @access private - * - * @global string $PHP_SELF The filename of the currently executing script, - * relative to the document root. - */ - function wp_fix_server_vars() - { - } /** * Populates the Basic Auth server details from the Authorization header. * @@ -111014,21 +107312,6 @@ function wp_fix_server_vars() function wp_populate_basic_auth_from_authorization_header() { } - /** - * Check for the required PHP version, and the MySQL extension or - * a database drop-in. - * - * Dies if requirements are not met. - * - * @since 3.0.0 - * @access private - * - * @global string $required_php_version The required PHP version string. - * @global string $wp_version The WordPress version string. - */ - function wp_check_php_mysql_versions() - { - } /** * Retrieves the current environment type. * @@ -111058,18 +107341,6 @@ function wp_get_environment_type() function wp_favicon_request() { } - /** - * Die with a maintenance message when conditions are met. - * - * The default message can be replaced by using a drop-in (maintenance.php in - * the wp-content directory). - * - * @since 3.0.0 - * @access private - */ - function wp_maintenance() - { - } /** * Check if maintenance mode is enabled. * @@ -111099,20 +107370,6 @@ function wp_is_maintenance_mode() function timer_float() { } - /** - * Start the WordPress micro-timer. - * - * @since 0.71 - * @access private - * - * @global float $timestart Unix timestamp set at the beginning of the page load. - * @see timer_stop() - * - * @return bool Always returns true. - */ - function timer_start() - { - } /** * Retrieve or display the time from the page start to when function is called. * @@ -111131,57 +107388,6 @@ function timer_start() function timer_stop($display = 0, $precision = 3) { } - /** - * Set PHP error reporting based on WordPress debug settings. - * - * Uses three constants: `WP_DEBUG`, `WP_DEBUG_DISPLAY`, and `WP_DEBUG_LOG`. - * All three can be defined in wp-config.php. By default, `WP_DEBUG` and - * `WP_DEBUG_LOG` are set to false, and `WP_DEBUG_DISPLAY` is set to true. - * - * When `WP_DEBUG` is true, all PHP notices are reported. WordPress will also - * display internal notices: when a deprecated WordPress function, function - * argument, or file is used. Deprecated code may be removed from a later - * version. - * - * It is strongly recommended that plugin and theme developers use `WP_DEBUG` - * in their development environments. - * - * `WP_DEBUG_DISPLAY` and `WP_DEBUG_LOG` perform no function unless `WP_DEBUG` - * is true. - * - * When `WP_DEBUG_DISPLAY` is true, WordPress will force errors to be displayed. - * `WP_DEBUG_DISPLAY` defaults to true. Defining it as null prevents WordPress - * from changing the global configuration setting. Defining `WP_DEBUG_DISPLAY` - * as false will force errors to be hidden. - * - * When `WP_DEBUG_LOG` is true, errors will be logged to `wp-content/debug.log`. - * When `WP_DEBUG_LOG` is a valid path, errors will be logged to the specified file. - * - * Errors are never displayed for XML-RPC, REST, `ms-files.php`, and Ajax requests. - * - * @since 3.0.0 - * @since 5.1.0 `WP_DEBUG_LOG` can be a file path. - * @access private - */ - function wp_debug_mode() - { - } - /** - * Set the location of the language directory. - * - * To set directory manually, define the `WP_LANG_DIR` constant - * in wp-config.php. - * - * If the language directory exists within `WP_CONTENT_DIR`, it - * is used. Otherwise the language directory is assumed to live - * in `WPINC`. - * - * @since 3.0.0 - * @access private - */ - function wp_set_lang_dir() - { - } /** * Load the database class file and instantiate the `$wpdb` global. * @@ -111192,21 +107398,6 @@ function wp_set_lang_dir() function require_wp_db() { } - /** - * Set the database table prefix and the format specifiers for database - * table columns. - * - * Columns not listed here default to `%s`. - * - * @since 3.0.0 - * @access private - * - * @global wpdb $wpdb WordPress database abstraction object. - * @global string $table_prefix The database table prefix. - */ - function wp_set_wpdb_vars() - { - } /** * Toggle `$_wp_using_ext_object_cache` on and off without directly * touching global. @@ -111221,63 +107412,6 @@ function wp_set_wpdb_vars() function wp_using_ext_object_cache($using = \null) { } - /** - * Start the WordPress object cache. - * - * If an object-cache.php file exists in the wp-content directory, - * it uses that drop-in as an external object cache. - * - * @since 3.0.0 - * @access private - * - * @global array $wp_filter Stores all of the filters. - */ - function wp_start_object_cache() - { - } - /** - * Redirect to the installer if WordPress is not installed. - * - * Dies with an error message when Multisite is enabled. - * - * @since 3.0.0 - * @access private - */ - function wp_not_installed() - { - } - /** - * Retrieve an array of must-use plugin files. - * - * The default directory is wp-content/mu-plugins. To change the default - * directory manually, define `WPMU_PLUGIN_DIR` and `WPMU_PLUGIN_URL` - * in wp-config.php. - * - * @since 3.0.0 - * @access private - * - * @return string[] Array of absolute paths of files to include. - */ - function wp_get_mu_plugins() - { - } - /** - * Retrieve an array of active and valid plugin files. - * - * While upgrading or installing WordPress, no plugins are returned. - * - * The default directory is `wp-content/plugins`. To change the default - * directory manually, define `WP_PLUGIN_DIR` and `WP_PLUGIN_URL` - * in `wp-config.php`. - * - * @since 3.0.0 - * @access private - * - * @return string[] Array of paths to plugin files relative to the plugins directory. - */ - function wp_get_active_and_valid_plugins() - { - } /** * Filters a given list of plugins, removing any paused plugins from it. * @@ -111289,21 +107423,6 @@ function wp_get_active_and_valid_plugins() function wp_skip_paused_plugins(array $plugins) { } - /** - * Retrieves an array of active and valid themes. - * - * While upgrading or installing WordPress, no themes are returned. - * - * @since 5.1.0 - * @access private - * - * @global string $pagenow The filename of the current screen. - * - * @return string[] Array of absolute paths to theme directories. - */ - function wp_get_active_and_valid_themes() - { - } /** * Filters a given list of themes, removing any paused themes from it. * @@ -111349,39 +107468,6 @@ function is_protected_endpoint() function is_protected_ajax_action() { } - /** - * Set internal encoding. - * - * In most cases the default internal encoding is latin1, which is - * of no use, since we want to use the `mb_` functions for `utf-8` strings. - * - * @since 3.0.0 - * @access private - */ - function wp_set_internal_encoding() - { - } - /** - * Add magic quotes to `$_GET`, `$_POST`, `$_COOKIE`, and `$_SERVER`. - * - * Also forces `$_REQUEST` to be `$_GET + $_POST`. If `$_SERVER`, - * `$_COOKIE`, or `$_ENV` are needed, use those superglobals directly. - * - * @since 3.0.0 - * @access private - */ - function wp_magic_quotes() - { - } - /** - * Runs just before PHP shuts down execution. - * - * @since 1.2.0 - * @access private - */ - function shutdown_action_hook() - { - } /** * Copy an object. * @@ -111511,25 +107597,6 @@ function get_current_blog_id() function get_current_network_id() { } - /** - * Attempt an early load of translations. - * - * Used for errors encountered during the initial loading process, before - * the locale has been properly detected and loaded. - * - * Designed for unusual load sequences (like setup-config.php) or for when - * the script will then terminate with an error, otherwise there is a risk - * that a file can be double-included. - * - * @since 3.4.0 - * @access private - * - * @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry. - * @global WP_Locale $wp_locale WordPress date and time locale object. - */ - function wp_load_translations_early() - { - } /** * Check or set whether WordPress is in "installation" mode. * @@ -112194,42 +108261,6 @@ function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = \f function wp_get_attachment_image_url($attachment_id, $size = 'thumbnail', $icon = \false) { } - /** - * Gets the attachment path relative to the upload directory. - * - * @since 4.4.1 - * @access private - * - * @param string $file Attachment file name. - * @return string Attachment path relative to the upload directory. - */ - function _wp_get_attachment_relative_path($file) - { - } - /** - * Gets the image size as array from its meta data. - * - * Used for responsive images. - * - * @since 4.4.0 - * @access private - * - * @param string $size_name Image size. Accepts any registered image size name. - * @param array $image_meta The image meta data. - * @return array|false { - * Array of width and height or false if the size isn't present in the meta data. - * - * @type int $0 Image width. - * @type int $1 Image height. - * } - * @phpstan-return false|array{ - * 0: int, - * 1: int, - * } - */ - function _wp_get_image_size_from_meta($size_name, $image_meta) - { - } /** * Retrieves the value for an image attachment's 'srcset' attribute. * @@ -113267,22 +109298,6 @@ function wp_register_media_personal_data_exporter($exporters) function wp_media_personal_data_exporter($email_address, $page = 1) { } - /** - * Adds additional default image sub-sizes. - * - * These sizes are meant to enhance the way WordPress displays images on the front-end on larger, - * high-density devices. They make it possible to generate more suitable `srcset` and `sizes` attributes - * when the users upload large images. - * - * The sizes can be changed or removed by themes and plugins but that is not recommended. - * The size "names" reflect the image dimensions, so changing the sizes would be quite misleading. - * - * @since 5.3.0 - * @access private - */ - function _wp_add_additional_image_sizes() - { - } /** * Callback to enable showing of the user error when uploading .heic images. * @@ -113369,18 +109384,6 @@ function wp_get_loading_attr_default($context) function wp_omit_loading_attr_threshold($force = \false) { } - /** - * Increases an internal content media count variable. - * - * @since 5.9.0 - * @access private - * - * @param int $amount Optional. Amount to increase by. Default 1. - * @return int The latest content media count, after the increase. - */ - function wp_increase_content_media_count($amount = 1) - { - } /** * Core Metadata API * @@ -113843,22 +109846,6 @@ function get_registered_meta_keys($object_type, $object_subtype = '') function get_registered_metadata($object_type, $object_id, $meta_key = '') { } - /** - * Filters out `register_meta()` args based on an allowed list. - * - * `register_meta()` args may change over time, so requiring the allowed list - * to be explicitly turned off is a warranty seal of sorts. - * - * @access private - * @since 5.5.0 - * - * @param array $args Arguments from `register_meta()`. - * @param array $default_args Default arguments for `register_meta()`. - * @return array Filtered arguments. - */ - function _wp_register_meta_args_allowed_list($args, $default_args) - { - } /** * Returns the object subtype for a given object ID of a specific type. * @@ -115647,20 +111634,6 @@ function wp_network_admin_email_change_notification($option_name, $new_email, $o function is_subdomain_install() { } - /** - * Returns array of network plugin files to be included in global scope. - * - * The default directory is wp-content/plugins. To change the default directory - * manually, define `WP_PLUGIN_DIR` and `WP_PLUGIN_URL` in `wp-config.php`. - * - * @access private - * @since 3.1.0 - * - * @return string[] Array of absolute paths to files to include. - */ - function wp_get_active_network_plugins() - { - } /** * Checks status of current blog. * @@ -115715,89 +111688,6 @@ function get_network_by_path($domain, $path, $segments = \null) function get_site_by_path($domain, $path, $segments = \null) { } - /** - * Identifies the network and site of a requested domain and path and populates the - * corresponding network and site global objects as part of the multisite bootstrap process. - * - * Prior to 4.6.0, this was a procedural block in `ms-settings.php`. It was wrapped into - * a function to facilitate unit tests. It should not be used outside of core. - * - * Usually, it's easier to query the site first, which then declares its network. - * In limited situations, we either can or must find the network first. - * - * If a network and site are found, a `true` response will be returned so that the - * request can continue. - * - * If neither a network or site is found, `false` or a URL string will be returned - * so that either an error can be shown or a redirect can occur. - * - * @since 4.6.0 - * @access private - * - * @global WP_Network $current_site The current network. - * @global WP_Site $current_blog The current site. - * - * @param string $domain The requested domain. - * @param string $path The requested path. - * @param bool $subdomain Optional. Whether a subdomain (true) or subdirectory (false) configuration. - * Default false. - * @return bool|string True if bootstrap successfully populated `$current_blog` and `$current_site`. - * False if bootstrap could not be properly completed. - * Redirect URL if parts exist, but the request as a whole can not be fulfilled. - */ - function ms_load_current_site_and_network($domain, $path, $subdomain = \false) - { - } - /** - * Displays a failure message. - * - * Used when a blog's tables do not exist. Checks for a missing $wpdb->site table as well. - * - * @access private - * @since 3.0.0 - * @since 4.4.0 The `$domain` and `$path` parameters were added. - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $domain The requested domain for the error to reference. - * @param string $path The requested path for the error to reference. - */ - function ms_not_installed($domain, $path) - { - } - /** - * This deprecated function formerly set the site_name property of the $current_site object. - * - * This function simply returns the object, as before. - * The bootstrap takes care of setting site_name. - * - * @access private - * @since 3.0.0 - * @deprecated 3.9.0 Use get_current_site() instead. - * - * @param WP_Network $current_site - * @return WP_Network - */ - function get_current_site_name($current_site) - { - } - /** - * This deprecated function managed much of the site and network loading in multisite. - * - * The current bootstrap code is now responsible for parsing the site and network load as - * well as setting the global $current_site object. - * - * @access private - * @since 3.0.0 - * @deprecated 3.9.0 - * - * @global WP_Network $current_site - * - * @return WP_Network - */ - function wpmu_current_site() - { - } /** * Retrieves an object containing information about the requested network. * @@ -116431,20 +112321,6 @@ function wp_check_site_meta_support_prefilter($check) function wp_nav_menu($args = array()) { } - /** - * Adds the class property classes for the current context, if applicable. - * - * @access private - * @since 3.0.0 - * - * @global WP_Query $wp_query WordPress Query object. - * @global WP_Rewrite $wp_rewrite WordPress rewrite component. - * - * @param array $menu_items The current menu item objects to which to add the class property information. - */ - function _wp_menu_item_classes_by_context(&$menu_items) - { - } /** * Retrieves the HTML list content for nav menu items. * @@ -116459,19 +112335,6 @@ function _wp_menu_item_classes_by_context(&$menu_items) function walk_nav_menu_tree($items, $depth, $args) { } - /** - * Prevents a menu item ID from being used more than once. - * - * @since 3.0.1 - * @access private - * - * @param string $id - * @param object $item - * @return string - */ - function _nav_menu_item_id_use_once($id, $item) - { - } /** * Remove the `menu-item-has-children` class from bottom level menu items. * @@ -116687,20 +112550,6 @@ function wp_update_nav_menu_item($menu_id = 0, $menu_item_db_id = 0, $menu_item_ function wp_get_nav_menus($args = array()) { } - /** - * Determines whether a menu item is valid. - * - * @link https://core.trac.wordpress.org/ticket/13958 - * - * @since 3.2.0 - * @access private - * - * @param object $item The menu item to check. - * @return bool False if invalid, otherwise true. - */ - function _is_valid_nav_menu_item($item) - { - } /** * Retrieves all menu items of a navigation menu. * @@ -116797,63 +112646,6 @@ function wp_setup_nav_menu_item($menu_item) function wp_get_associated_nav_menu_items($object_id = 0, $object_type = 'post_type', $taxonomy = '') { } - /** - * Callback for handling a menu item when its original object is deleted. - * - * @since 3.0.0 - * @access private - * - * @param int $object_id The ID of the original object being trashed. - */ - function _wp_delete_post_menu_item($object_id) - { - } - /** - * Serves as a callback for handling a menu item when its original object is deleted. - * - * @since 3.0.0 - * @access private - * - * @param int $object_id The ID of the original object being trashed. - * @param int $tt_id Term taxonomy ID. Unused. - * @param string $taxonomy Taxonomy slug. - */ - function _wp_delete_tax_menu_item($object_id, $tt_id, $taxonomy) - { - } - /** - * Automatically add newly published page objects to menus with that as an option. - * - * @since 3.0.0 - * @access private - * - * @param string $new_status The new status of the post object. - * @param string $old_status The old status of the post object. - * @param WP_Post $post The post object being transitioned from one status to another. - */ - function _wp_auto_add_pages_to_menu($new_status, $old_status, $post) - { - } - /** - * Deletes auto-draft posts associated with the supplied changeset. - * - * @since 4.8.0 - * @access private - * - * @param int $post_id Post ID for the customize_changeset. - */ - function _wp_delete_customize_changeset_dependent_auto_drafts($post_id) - { - } - /** - * Handles menu config after theme change. - * - * @access private - * @since 4.9.0 - */ - function _wp_menus_changed() - { - } /** * Maps nav menu locations according to assignments in previously active theme. * @@ -116866,21 +112658,6 @@ function _wp_menus_changed() function wp_map_nav_menu_locations($new_nav_menu_locations, $old_nav_menu_locations) { } - /** - * Prevents menu items from being their own parent. - * - * Resets menu_item_parent to 0 when the parent is set to the item itself. - * For use before saving `_menu_item_menu_item_parent` in nav-menus.php. - * - * @since 6.2.0 - * @access private - * - * @param array $menu_item_data The menu item data array. - * @return array The menu item data with reset menu_item_parent. - */ - function _wp_reset_invalid_menu_item_parent($menu_item_data) - { - } /** * Option API * @@ -117205,21 +112982,6 @@ function delete_user_setting($names) function get_all_user_settings() { } - /** - * Private. Sets all user interface settings. - * - * @since 2.8.0 - * @access private - * - * @global array $_updated_user_settings - * - * @param array $user_settings User settings. - * @return bool|null True if set successfully, false if the current user could not be found. - * Null if the current user is not a member of the site. - */ - function wp_set_all_user_settings($user_settings) - { - } /** * Deletes the user settings of the current user. * @@ -117950,21 +113712,6 @@ function wp_redirect($location, $status = 302, $x_redirect_by = 'WordPress') function wp_sanitize_redirect($location) { } - /** - * URL encodes UTF-8 characters in a URL. - * - * @ignore - * @since 4.2.0 - * @access private - * - * @see wp_sanitize_redirect() - * - * @param array $matches RegEx matches against the redirect location. - * @return string URL-encoded version of the first RegEx match. - */ - function _wp_sanitize_utf8_in_redirect($matches) - { - } /** * Performs a safe (local) redirect, using wp_redirect(). * @@ -118952,63 +114699,6 @@ function register_deactivation_hook($file, $callback) function register_uninstall_hook($file, $callback) { } - /** - * Calls the 'all' hook, which will process the functions hooked into it. - * - * The 'all' hook passes all of the arguments or parameters that were used for - * the hook, which this function was called for. - * - * This function is used internally for apply_filters(), do_action(), and - * do_action_ref_array() and is not meant to be used from outside those - * functions. This function does not check for the existence of the all hook, so - * it will fail unless the all hook exists prior to this function call. - * - * @since 2.5.0 - * @access private - * - * @global WP_Hook[] $wp_filter Stores all of the filters and actions. - * - * @param array $args The collected parameters from the hook that was called. - */ - function _wp_call_all_hook($args) - { - } - /** - * Builds Unique ID for storage and retrieval. - * - * The old way to serialize the callback caused issues and this function is the - * solution. It works by checking for objects and creating a new property in - * the class to keep track of the object and new objects of the same class that - * need to be added. - * - * It also allows for the removal of actions and filters for objects after they - * change class properties. It is possible to include the property $wp_filter_id - * in your class and set it to "null" or a number to bypass the workaround. - * However this will prevent you from adding new classes and any new classes - * will overwrite the previous hook by the same class. - * - * Functions and static method callbacks are just returned as strings and - * shouldn't have any speed penalty. - * - * @link https://core.trac.wordpress.org/ticket/3875 - * - * @since 2.2.3 - * @since 5.3.0 Removed workarounds for spl_object_hash(). - * `$hook_name` and `$priority` are no longer used, - * and the function always returns a string. - * - * @access private - * - * @param string $hook_name Unused. The name of the filter to build ID for. - * @param callable|string|array $callback The callback to generate ID for. The callback may - * or may not exist. - * @param int $priority Unused. The order in which the functions - * associated with a particular action are executed. - * @return string Unique function ID for usage as array key. - */ - function _wp_filter_build_unique_id($hook_name, $callback, $priority) - { - } /** * Post format functions. * @@ -119093,72 +114783,6 @@ function get_post_format_string($slug) function get_post_format_link($format) { } - /** - * Filters the request to allow for the format prefix. - * - * @access private - * @since 3.1.0 - * - * @param array $qvs - * @return array - */ - function _post_format_request($qvs) - { - } - /** - * Filters the post format term link to remove the format prefix. - * - * @access private - * @since 3.1.0 - * - * @global WP_Rewrite $wp_rewrite WordPress rewrite component. - * - * @param string $link - * @param WP_Term $term - * @param string $taxonomy - * @return string - */ - function _post_format_link($link, $term, $taxonomy) - { - } - /** - * Remove the post format prefix from the name property of the term object created by get_term(). - * - * @access private - * @since 3.1.0 - * - * @param object $term - * @return object - */ - function _post_format_get_term($term) - { - } - /** - * Remove the post format prefix from the name property of the term objects created by get_terms(). - * - * @access private - * @since 3.1.0 - * - * @param array $terms - * @param string|array $taxonomies - * @param array $args - * @return array - */ - function _post_format_get_terms($terms, $taxonomies, $args) - { - } - /** - * Remove the post format prefix from the name property of the term objects created by wp_get_object_terms(). - * - * @access private - * @since 3.1.0 - * - * @param array $terms - * @return array - */ - function _post_format_wp_get_object_terms($terms) - { - } /** * WordPress Post Template Functions. * @@ -119474,20 +115098,6 @@ function post_password_required($post = \null) function wp_link_pages($args = '') { } - /** - * Helper function for wp_link_pages(). - * - * @since 3.1.0 - * @access private - * - * @global WP_Rewrite $wp_rewrite WordPress rewrite component. - * - * @param int $i Page number. - * @return string Link. - */ - function _wp_link_page($i) - { - } // // Post-meta: Custom per-post fields. // @@ -120119,20 +115729,6 @@ function get_attached_file($attachment_id, $unfiltered = \false) function update_attached_file($attachment_id, $file) { } - /** - * Returns relative path to an uploaded file. - * - * The path is relative to the current upload dir. - * - * @since 2.9.0 - * @access private - * - * @param string $path Full path to the file. - * @return string Relative path on success, unchanged path on failure. - */ - function _wp_relative_upload_path($path) - { - } /** * Retrieves all children of the post parent ID. * @@ -120330,17 +115926,6 @@ function get_post_statuses() function get_page_statuses() { } - /** - * Returns statuses for privacy requests. - * - * @since 4.9.6 - * @access private - * - * @return array - */ - function _wp_privacy_statuses() - { - } /** * Registers a post status. Do not use before init. * @@ -120796,118 +116381,6 @@ function unregister_post_type($post_type) function get_post_type_capabilities($args) { } - /** - * Stores or returns a list of post type meta caps for map_meta_cap(). - * - * @since 3.1.0 - * @access private - * - * @global array $post_type_meta_caps Used to store meta capabilities. - * - * @param string[] $capabilities Post type meta capabilities. - */ - function _post_type_meta_capabilities($capabilities = \null) - { - } - /** - * Builds an object with all post type labels out of a post type object. - * - * Accepted keys of the label array in the post type object: - * - * - `name` - General name for the post type, usually plural. The same and overridden - * by `$post_type_object->label`. Default is 'Posts' / 'Pages'. - * - `singular_name` - Name for one object of this post type. Default is 'Post' / 'Page'. - * - `add_new` - Default is 'Add New' for both hierarchical and non-hierarchical types. - * When internationalizing this string, please use a {@link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#disambiguation-by-context gettext context} - * matching your post type. Example: `_x( 'Add New', 'product', 'textdomain' );`. - * - `add_new_item` - Label for adding a new singular item. Default is 'Add New Post' / 'Add New Page'. - * - `edit_item` - Label for editing a singular item. Default is 'Edit Post' / 'Edit Page'. - * - `new_item` - Label for the new item page title. Default is 'New Post' / 'New Page'. - * - `view_item` - Label for viewing a singular item. Default is 'View Post' / 'View Page'. - * - `view_items` - Label for viewing post type archives. Default is 'View Posts' / 'View Pages'. - * - `search_items` - Label for searching plural items. Default is 'Search Posts' / 'Search Pages'. - * - `not_found` - Label used when no items are found. Default is 'No posts found' / 'No pages found'. - * - `not_found_in_trash` - Label used when no items are in the Trash. Default is 'No posts found in Trash' / - * 'No pages found in Trash'. - * - `parent_item_colon` - Label used to prefix parents of hierarchical items. Not used on non-hierarchical - * post types. Default is 'Parent Page:'. - * - `all_items` - Label to signify all items in a submenu link. Default is 'All Posts' / 'All Pages'. - * - `archives` - Label for archives in nav menus. Default is 'Post Archives' / 'Page Archives'. - * - `attributes` - Label for the attributes meta box. Default is 'Post Attributes' / 'Page Attributes'. - * - `insert_into_item` - Label for the media frame button. Default is 'Insert into post' / 'Insert into page'. - * - `uploaded_to_this_item` - Label for the media frame filter. Default is 'Uploaded to this post' / - * 'Uploaded to this page'. - * - `featured_image` - Label for the featured image meta box title. Default is 'Featured image'. - * - `set_featured_image` - Label for setting the featured image. Default is 'Set featured image'. - * - `remove_featured_image` - Label for removing the featured image. Default is 'Remove featured image'. - * - `use_featured_image` - Label in the media frame for using a featured image. Default is 'Use as featured image'. - * - `menu_name` - Label for the menu name. Default is the same as `name`. - * - `filter_items_list` - Label for the table views hidden heading. Default is 'Filter posts list' / - * 'Filter pages list'. - * - `filter_by_date` - Label for the date filter in list tables. Default is 'Filter by date'. - * - `items_list_navigation` - Label for the table pagination hidden heading. Default is 'Posts list navigation' / - * 'Pages list navigation'. - * - `items_list` - Label for the table hidden heading. Default is 'Posts list' / 'Pages list'. - * - `item_published` - Label used when an item is published. Default is 'Post published.' / 'Page published.' - * - `item_published_privately` - Label used when an item is published with private visibility. - * Default is 'Post published privately.' / 'Page published privately.' - * - `item_reverted_to_draft` - Label used when an item is switched to a draft. - * Default is 'Post reverted to draft.' / 'Page reverted to draft.' - * - `item_scheduled` - Label used when an item is scheduled for publishing. Default is 'Post scheduled.' / - * 'Page scheduled.' - * - `item_updated` - Label used when an item is updated. Default is 'Post updated.' / 'Page updated.' - * - `item_link` - Title for a navigation link block variation. Default is 'Post Link' / 'Page Link'. - * - `item_link_description` - Description for a navigation link block variation. Default is 'A link to a post.' / - * 'A link to a page.' - * - * Above, the first default value is for non-hierarchical post types (like posts) - * and the second one is for hierarchical post types (like pages). - * - * Note: To set labels used in post type admin notices, see the {@see 'post_updated_messages'} filter. - * - * @since 3.0.0 - * @since 4.3.0 Added the `featured_image`, `set_featured_image`, `remove_featured_image`, - * and `use_featured_image` labels. - * @since 4.4.0 Added the `archives`, `insert_into_item`, `uploaded_to_this_item`, `filter_items_list`, - * `items_list_navigation`, and `items_list` labels. - * @since 4.6.0 Converted the `$post_type` parameter to accept a `WP_Post_Type` object. - * @since 4.7.0 Added the `view_items` and `attributes` labels. - * @since 5.0.0 Added the `item_published`, `item_published_privately`, `item_reverted_to_draft`, - * `item_scheduled`, and `item_updated` labels. - * @since 5.7.0 Added the `filter_by_date` label. - * @since 5.8.0 Added the `item_link` and `item_link_description` labels. - * - * @access private - * - * @param object|WP_Post_Type $post_type_object Post type object. - * @return object Object with all the labels as member variables. - */ - function get_post_type_labels($post_type_object) - { - } - /** - * Builds an object with custom-something object (post type, taxonomy) labels - * out of a custom-something object - * - * @since 3.0.0 - * @access private - * - * @param object $data_object A custom-something object. - * @param array $nohier_vs_hier_defaults Hierarchical vs non-hierarchical default labels. - * @return object Object containing labels for the given custom-something object. - */ - function _get_custom_object_labels($data_object, $nohier_vs_hier_defaults) - { - } - /** - * Adds submenus for post types. - * - * @access private - * @since 3.1.0 - */ - function _add_post_type_submenus() - { - } /** * Registers support of certain features for a post type. * @@ -121435,19 +116908,6 @@ function stick_post($post_id) function unstick_post($post_id) { } - /** - * Returns the cache key for wp_count_posts() based on the passed arguments. - * - * @since 3.9.0 - * @access private - * - * @param string $type Optional. Post type to retrieve count Default 'post'. - * @param string $perm Optional. 'readable' or empty. Default empty. - * @return string The cache key. - */ - function _count_posts_cache_key($type = 'post', $perm = '') - { - } /** * Counts number of posts of a post type and if user has permissions to view. * @@ -121555,20 +117015,6 @@ function wp_post_mime_type_where($post_mime_types, $table_alias = '') function wp_delete_post($postid = 0, $force_delete = \false) { } - /** - * Resets the page_on_front, show_on_front, and page_for_post settings when - * a linked page is deleted or trashed. - * - * Also ensures the post is no longer sticky. - * - * @since 3.7.0 - * @access private - * - * @param int $post_id Post ID. - */ - function _reset_front_page_settings_for_post($post_id) - { - } /** * Moves a post or page to the Trash * @@ -122018,21 +117464,6 @@ function wp_resolve_post_date($post_date = '', $post_date_gmt = '') function wp_unique_post_slug($slug, $post_id, $post_status, $post_type, $post_parent) { } - /** - * Truncates a post slug. - * - * @since 3.6.0 - * @access private - * - * @see utf8_uri_encode() - * - * @param string $slug The slug to truncate. - * @param int $length Optional. Max length of the slug. Default 200 (characters). - * @return string The truncated slug. - */ - function _truncate_post_slug($slug, $length = 200) - { - } /** * Adds tags to a post. * @@ -122287,23 +117718,6 @@ function get_page_children($page_id, $pages) function get_page_hierarchy(&$pages, $page_id = 0) { } - /** - * Traverses and return all the nested children post names of a root page. - * - * $children contains parent-children relations - * - * @since 2.9.0 - * @access private - * - * @see _page_traverse_name() - * - * @param int $page_id Page ID. - * @param array $children Parent-children relations (passed by reference). - * @param string[] $result Array of page names keyed by ID (passed by reference). - */ - function _page_traverse_name($page_id, &$children, &$result) - { - } /** * Builds the URI path for a page. * @@ -122709,24 +118123,6 @@ function get_lastpostdate($timezone = 'server', $post_type = 'any') function get_lastpostmodified($timezone = 'server', $post_type = 'any') { } - /** - * Gets the timestamp of the last time any post was modified or published. - * - * @since 3.1.0 - * @since 4.4.0 The `$post_type` argument was added. - * @access private - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $timezone The timezone for the timestamp. See get_lastpostdate(). - * for information on accepted values. - * @param string $field Post field to check. Accepts 'date' or 'modified'. - * @param string $post_type Optional. The post type to check. Default 'any'. - * @return string|false The timestamp in 'Y-m-d H:i:s' format, or false on failure. - */ - function _get_last_post_time($timezone, $field, $post_type = 'any') - { - } /** * Updates posts in cache. * @@ -122821,54 +118217,6 @@ function update_postmeta_cache($post_ids) function clean_attachment_cache($id, $clean_terms = \false) { } - // - // Hooks. - // - /** - * Hook for managing future post transitions to published. - * - * @since 2.3.0 - * @access private - * - * @see wp_clear_scheduled_hook() - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $new_status New post status. - * @param string $old_status Previous post status. - * @param WP_Post $post Post object. - */ - function _transition_post_status($new_status, $old_status, $post) - { - } - /** - * Hook used to schedule publication for a post marked for the future. - * - * The $post properties used and must exist are 'ID' and 'post_date_gmt'. - * - * @since 2.3.0 - * @access private - * - * @param int $deprecated Not used. Can be set to null. Never implemented. Not marked - * as deprecated with _deprecated_argument() as it conflicts with - * wp_transition_post_status() and the default filter for _future_post_hook(). - * @param WP_Post $post Post object. - */ - function _future_post_hook($deprecated, $post) - { - } - /** - * Hook to schedule pings and enclosures when a post is published. - * - * Uses XMLRPC_REQUEST and WP_IMPORTING constants. - * - * @since 2.3.0 - * @access private - * - * @param int $post_id The ID of the post being published. - */ - function _publish_post_hook($post_id) - { - } /** * Returns the ID of the post's parent. * @@ -122942,22 +118290,6 @@ function wp_delete_auto_drafts() function wp_queue_posts_for_term_meta_lazyload($posts) { } - /** - * Updates the custom taxonomies' term counts when a post's status is changed. - * - * For example, default posts term counts (for custom taxonomies) don't include - * private / draft posts. - * - * @since 3.3.0 - * @access private - * - * @param string $new_status New post status. - * @param string $old_status Old post status. - * @param WP_Post $post Post object. - */ - function _update_term_count_on_transition_post_status($new_status, $old_status, $post) - { - } /** * Adds any posts from the given IDs to the cache that do not already exist in cache. * @@ -122977,42 +118309,6 @@ function _update_term_count_on_transition_post_status($new_status, $old_status, function _prime_post_caches($ids, $update_term_cache = \true, $update_meta_cache = \true) { } - /** - * Adds a suffix if any trashed posts have a given slug. - * - * Store its desired (i.e. current) slug so it can try to reclaim it - * if the post is untrashed. - * - * For internal use. - * - * @since 4.5.0 - * @access private - * - * @param string $post_name Post slug. - * @param int $post_id Optional. Post ID that should be ignored. Default 0. - */ - function wp_add_trashed_suffix_to_post_name_for_trashed_posts($post_name, $post_id = 0) - { - } - /** - * Adds a trashed suffix for a given post. - * - * Store its desired (i.e. current) slug so it can try to reclaim it - * if the post is untrashed. - * - * For internal use. - * - * @since 4.5.0 - * @access private - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param WP_Post $post The post. - * @return string New slug for the post. - */ - function wp_add_trashed_suffix_to_post_name_for_post($post) - { - } /** * Sets the last changed time for the 'posts' cache group. * @@ -123856,36 +119152,6 @@ function the_comment() function wp_old_slug_redirect() { } - /** - * Find the post ID for redirecting an old slug. - * - * @since 4.9.3 - * @access private - * - * @see wp_old_slug_redirect() - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $post_type The current post type based on the query vars. - * @return int The Post ID. - */ - function _find_post_by_old_slug($post_type) - { - } - /** - * Find the post ID for redirecting an old date. - * - * @since 4.9.3 - * @access private - * - * @see wp_old_slug_redirect() - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $post_type The current post type based on the query vars. - * @return int The Post ID. - */ - function _find_post_by_old_date($post_type) - { - } /** * Set up global post data. * @@ -124995,42 +120261,6 @@ function rest_get_endpoint_args_for_schema($schema, $method = \WP_REST_Server::C function rest_convert_error_to_response($error) { } - /** - * Post revision functions. - * - * @package WordPress - * @subpackage Post_Revisions - */ - /** - * Determines which fields of posts are to be saved in revisions. - * - * @since 2.6.0 - * @since 4.5.0 A `WP_Post` object can now be passed to the `$post` parameter. - * @since 4.5.0 The optional `$autosave` parameter was deprecated and renamed to `$deprecated`. - * @access private - * - * @param array|WP_Post $post Optional. A post array or a WP_Post object being processed - * for insertion as a post revision. Default empty array. - * @param bool $deprecated Not used. - * @return string[] Array of fields that can be versioned. - */ - function _wp_post_revision_fields($post = array(), $deprecated = \false) - { - } - /** - * Returns a post array ready to be inserted into the posts table as a post revision. - * - * @since 4.5.0 - * @access private - * - * @param array|WP_Post $post Optional. A post array or a WP_Post object to be processed - * for insertion as a post revision. Default empty array. - * @param bool $autosave Optional. Is the revision an autosave? Default false. - * @return array Post array ready to be inserted as a post revision. - */ - function _wp_post_revision_data($post = array(), $autosave = \false) - { - } /** * Creates a revision for the current version of a post. * @@ -125085,20 +120315,6 @@ function wp_is_post_revision($post) function wp_is_post_autosave($post) { } - /** - * Inserts post data into the posts table as a post revision. - * - * @since 2.6.0 - * @access private - * - * @param int|WP_Post|array|null $post Post ID, post object OR post array. - * @param bool $autosave Optional. Whether the revision is an autosave or not. - * Default false. - * @return int|WP_Error WP_Error or 0 if error, new revision ID if success. - */ - function _wp_put_post_revision($post = \null, $autosave = \false) - { - } /** * Gets a post revision. * @@ -125214,82 +120430,6 @@ function wp_revisions_enabled($post) function wp_revisions_to_keep($post) { } - /** - * Sets up the post object for preview based on the post autosave. - * - * @since 2.7.0 - * @access private - * - * @param WP_Post $post - * @return WP_Post|false - */ - function _set_preview($post) - { - } - /** - * Filters the latest content for preview from the post autosave. - * - * @since 2.7.0 - * @access private - */ - function _show_post_preview() - { - } - /** - * Filters terms lookup to set the post format. - * - * @since 3.6.0 - * @access private - * - * @param array $terms - * @param int $post_id - * @param string $taxonomy - * @return array - */ - function _wp_preview_terms_filter($terms, $post_id, $taxonomy) - { - } - /** - * Filters post thumbnail lookup to set the post thumbnail. - * - * @since 4.6.0 - * @access private - * - * @param null|array|string $value The value to return - a single metadata value, or an array of values. - * @param int $post_id Post ID. - * @param string $meta_key Meta key. - * @return null|array The default return value or the post thumbnail meta array. - */ - function _wp_preview_post_thumbnail_filter($value, $post_id, $meta_key) - { - } - /** - * Gets the post revision version. - * - * @since 3.6.0 - * @access private - * - * @param WP_Post $revision - * @return int|false - */ - function _wp_get_post_revision_version($revision) - { - } - /** - * Upgrades the revisions author, adds the current post as a revision and sets the revisions version to 1. - * - * @since 3.6.0 - * @access private - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param WP_Post $post Post object. - * @param array $revisions Current revisions of the post. - * @return bool true if the revisions were upgraded, false if problems. - */ - function _wp_upgrade_revisions_of_post($post, $revisions) - { - } /** * Adds a rewrite rule that transforms a URL structure to a set of query vars. * @@ -125460,20 +120600,6 @@ function flush_rewrite_rules($hard = \true) function add_rewrite_endpoint($name, $places, $query_var = \true) { } - /** - * Filters the URL base for taxonomies. - * - * To remove any manually prepended /index.php/. - * - * @access private - * @since 2.6.0 - * - * @param string $base The taxonomy base that we're going to filter - * @return string - */ - function _wp_filter_taxonomy_base($base) - { - } /** * Resolves numeric slugs that collide with date permalinks. * @@ -126216,20 +121342,6 @@ function wp_print_inline_script_tag($javascript, $attributes = array()) function wp_maybe_inline_styles() { } - /** - * Makes URLs relative to the WordPress installation. - * - * @since 5.9.0 - * @access private - * - * @param string $css The CSS to make URLs relative to the WordPress installation. - * @param string $stylesheet_url The URL to the stylesheet. - * - * @return string The CSS with URLs made relative to the WordPress installation. - */ - function _wp_normalize_relative_css_links($css, $stylesheet_url) - { - } /** * Function that enqueues the CSS Custom Properties coming from theme.json. * @@ -126294,37 +121406,6 @@ function wp_enqueue_stored_styles($options = array()) function wp_enqueue_block_style($block_name, $args) { } - /** - * Runs the theme.json webfonts handler. - * - * Using `WP_Theme_JSON_Resolver`, it gets the fonts defined - * in the `theme.json` for the current selection and style - * variations, validates the font-face properties, generates - * the '@font-face' style declarations, and then enqueues the - * styles for both the editor and front-end. - * - * Design Notes: - * This is not a public API, but rather an internal handler. - * A future public Webfonts API will replace this stopgap code. - * - * This code design is intentional. - * a. It hides the inner-workings. - * b. It does not expose API ins or outs for consumption. - * c. It only works with a theme's `theme.json`. - * - * Why? - * a. To avoid backwards-compatibility issues when - * the Webfonts API is introduced in Core. - * b. To make `fontFace` declarations in `theme.json` work. - * - * @link https://github.com/WordPress/gutenberg/issues/40472 - * - * @since 6.0.0 - * @access private - */ - function _wp_theme_json_webfonts_handler() - { - } /** * Loads classic theme styles on classic themes in the frontend. * @@ -126484,22 +121565,6 @@ function do_shortcode($content, $ignore_html = \false) function get_shortcode_regex($tagnames = \null) { } - /** - * Regular Expression callable for do_shortcode() for calling shortcode hook. - * - * @see get_shortcode_regex() for details of the match array contents. - * - * @since 2.5.0 - * @access private - * - * @global array $shortcode_tags - * - * @param array $m Regular expression match array. - * @return string|false Shortcode output on success, false on failure. - */ - function do_shortcode_tag($m) - { - } /** * Searches only inside HTML elements for shortcodes and process them. * @@ -128176,60 +123241,6 @@ function update_object_term_cache($object_ids, $object_type) function update_term_cache($terms, $taxonomy = '') { } - // - // Private. - // - /** - * Retrieves children of taxonomy as term IDs. - * - * @access private - * @since 2.3.0 - * - * @param string $taxonomy Taxonomy name. - * @return array Empty if $taxonomy isn't hierarchical or returns children as term IDs. - */ - function _get_term_hierarchy($taxonomy) - { - } - /** - * Gets the subset of $terms that are descendants of $term_id. - * - * If `$terms` is an array of objects, then _get_term_children() returns an array of objects. - * If `$terms` is an array of IDs, then _get_term_children() returns an array of IDs. - * - * @access private - * @since 2.3.0 - * - * @param int $term_id The ancestor term: all returned terms should be descendants of `$term_id`. - * @param array $terms The set of terms - either an array of term objects or term IDs - from which those that - * are descendants of $term_id will be chosen. - * @param string $taxonomy The taxonomy which determines the hierarchy of the terms. - * @param array $ancestors Optional. Term ancestors that have already been identified. Passed by reference, to keep - * track of found terms when recursing the hierarchy. The array of located ancestors is used - * to prevent infinite recursion loops. For performance, `term_ids` are used as array keys, - * with 1 as value. Default empty array. - * @return array|WP_Error The subset of $terms that are descendants of $term_id. - */ - function _get_term_children($term_id, $terms, $taxonomy, &$ancestors = array()) - { - } - /** - * Adds count of children to parent count. - * - * Recalculates term counts by including items from child terms. Assumes all - * relevant children are already in the $terms argument. - * - * @access private - * @since 2.3.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param object[]|WP_Term[] $terms List of term objects (passed by reference). - * @param string $taxonomy Term context. - */ - function _pad_term_counts(&$terms, $taxonomy) - { - } /** * Adds any terms from the given IDs to the cache that do not already exist in cache. * @@ -128244,26 +123255,6 @@ function _pad_term_counts(&$terms, $taxonomy) function _prime_term_caches($term_ids, $update_meta_cache = \true) { } - // - // Default callbacks. - // - /** - * Updates term count based on object types of the current taxonomy. - * - * Private function for the default callback for post_tag and category - * taxonomies. - * - * @access private - * @since 2.3.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param int[] $terms List of term taxonomy IDs. - * @param WP_Taxonomy $taxonomy Current taxonomy object of terms. - */ - function _update_post_term_count($terms, $taxonomy) - { - } /** * Updates term count based on number of objects. * @@ -129083,42 +124074,6 @@ function load_template($_template_file, $load_once = \true, $args = array()) function wp_set_unique_slug_on_create_template_part($post_id) { } - /** - * Generates a unique slug for templates. - * - * @access private - * @since 5.8.0 - * - * @param string $override_slug The filtered value of the slug (starts as `null` from apply_filter). - * @param string $slug The original/un-filtered slug (post_name). - * @param int $post_id Post ID. - * @param string $post_status No uniqueness checks are made if the post is still draft or pending. - * @param string $post_type Post type. - * @return string The original, desired slug. - */ - function wp_filter_wp_template_unique_post_slug($override_slug, $slug, $post_id, $post_status, $post_type) - { - } - /** - * Prints the skip-link script & styles. - * - * @access private - * @since 5.8.0 - * - * @global string $_wp_current_template_content - */ - function the_block_template_skip_link() - { - } - /** - * Enables the block templates (editor mode) for themes with theme.json by default. - * - * @access private - * @since 5.8.0 - */ - function wp_enable_block_templates() - { - } /** * Theme, template, and stylesheet functions. * @@ -129585,20 +124540,6 @@ function get_header_image_tag($attr = array()) function the_header_image_tag($attr = array()) { } - /** - * Gets random header image data from registered images in theme. - * - * @since 3.4.0 - * - * @access private - * - * @global array $_wp_default_headers - * - * @return object - */ - function _get_random_header_data() - { - } /** * Gets random header image URL from registered images in theme. * @@ -130002,27 +124943,6 @@ function get_theme_starter_content() function add_theme_support($feature, ...$args) { } - /** - * Registers the internal custom header and background routines. - * - * @since 3.4.0 - * @access private - * - * @global Custom_Image_Header $custom_image_header - * @global Custom_Background $custom_background - */ - function _custom_header_background_just_in_time() - { - } - /** - * Adds CSS to hide header text for custom logo, based on Customizer setting. - * - * @since 4.5.0 - * @access private - */ - function _custom_logo_header_styles() - { - } /** * Gets the theme support arguments passed when registering that support. * @@ -130062,23 +124982,6 @@ function get_theme_support($feature, ...$args) function remove_theme_support($feature) { } - /** - * Do not use. Removes theme support internally without knowledge of those not used - * by themes directly. - * - * @access private - * @since 3.1.0 - * @global array $_wp_theme_features - * @global Custom_Image_Header $custom_image_header - * @global Custom_Background $custom_background - * - * @param string $feature The feature being removed. See add_theme_support() for the list - * of possible values. - * @return bool True if support was removed, false if the feature was not registered. - */ - function _remove_theme_support($feature) - { - } /** * Checks a theme's support for a given feature. * @@ -130194,22 +125097,6 @@ function get_registered_theme_features() function get_registered_theme_feature($feature) { } - /** - * Checks an attachment being deleted to see if it's a header or background image. - * - * If true it removes the theme modification which would be pointing at the deleted - * attachment. - * - * @access private - * @since 3.0.0 - * @since 4.3.0 Also removes `header_image_data`. - * @since 4.5.0 Also removes custom logo theme mods. - * - * @param int $id The attachment ID. - */ - function _delete_attachment_theme_mod($id) - { - } /** * Checks if a theme has been changed and runs 'after_switch_theme' hook on the next WP load. * @@ -130236,22 +125123,6 @@ function check_theme_switched() function _wp_customize_include() { } - /** - * Publishes a snapshot's changes. - * - * @since 4.7.0 - * @access private - * - * @global wpdb $wpdb WordPress database abstraction object. - * @global WP_Customize_Manager $wp_customize Customizer instance. - * - * @param string $new_status New post status. - * @param string $old_status Old post status. - * @param WP_Post $changeset_post Changeset post object. - */ - function _wp_customize_publish_changeset($new_status, $old_status, $changeset_post) - { - } /** * Filters changeset post data upon insert to ensure post_name is intact. * @@ -130321,38 +125192,6 @@ function wp_customize_support_script() function is_customize_preview() { } - /** - * Makes sure that auto-draft posts get their post_date bumped or status changed - * to draft to prevent premature garbage-collection. - * - * When a changeset is updated but remains an auto-draft, ensure the post_date - * for the auto-draft posts remains the same so that it will be - * garbage-collected at the same time by `wp_delete_auto_drafts()`. Otherwise, - * if the changeset is updated to be a draft then update the posts - * to have a far-future post_date so that they will never be garbage collected - * unless the changeset post itself is deleted. - * - * When a changeset is updated to be a persistent draft or to be scheduled for - * publishing, then transition any dependent auto-drafts to a draft status so - * that they likewise will not be garbage-collected but also so that they can - * be edited in the admin before publishing since there is not yet a post/page - * editing flow in the Customizer. See #39752. - * - * @link https://core.trac.wordpress.org/ticket/39752 - * - * @since 4.8.0 - * @access private - * @see wp_delete_auto_drafts() - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $new_status Transition to this post status. - * @param string $old_status Previous post status. - * @param \WP_Post $post Post data. - */ - function _wp_keep_alive_customize_changeset_dependent_auto_drafts($new_status, $old_status, $post) - { - } /** * Creates the initial theme features when the 'setup_theme' action is fired. * @@ -130388,17 +125227,6 @@ function wp_is_block_theme() function wp_theme_get_element_class_name($element) { } - /** - * Adds default theme supports for block themes when the 'setup_theme' action fires. - * - * See {@see 'setup_theme'}. - * - * @since 5.9.0 - * @access private - */ - function _add_default_theme_supports() - { - } /** * A simple set of functions to check the WordPress.org Version Update service. * @@ -130504,31 +125332,6 @@ function wp_get_update_data() function _maybe_update_core() { } - /** - * Checks the last time plugins were run before checking plugin versions. - * - * This might have been backported to WordPress 2.6.1 for performance reasons. - * This is used for the wp-admin to check only so often instead of every page - * load. - * - * @since 2.7.0 - * @access private - */ - function _maybe_update_plugins() - { - } - /** - * Checks themes versions only after a duration of time. - * - * This is for performance reasons to make sure that on the theme version - * checker is not run on every page load. - * - * @since 2.7.0 - * @access private - */ - function _maybe_update_themes() - { - } /** * Schedules core, theme, and plugin update checks. * @@ -131460,21 +126263,6 @@ function wp_update_user($userdata) function wp_create_user($username, $password, $email = '') { } - /** - * Returns a list of meta keys to be (maybe) populated in wp_update_user(). - * - * The list of keys returned via this function are dependent on the presence - * of those keys in the user meta data to be set. - * - * @since 3.3.0 - * @access private - * - * @param WP_User $user WP_User instance. - * @return string[] List of user keys to be populated in wp_update_user(). - */ - function _get_additional_user_keys($user) - { - } /** * Sets up the user contact methods. * @@ -131488,20 +126276,6 @@ function _get_additional_user_keys($user) function wp_get_user_contact_methods($user = \null) { } - /** - * The old private function for setting up user contact methods. - * - * Use wp_get_user_contact_methods() instead. - * - * @since 2.9.0 - * @access private - * - * @param WP_User|null $user Optional. WP_User object. Default null. - * @return string[] Array of contact method labels keyed by contact method. - */ - function _wp_get_user_contactmethods($user = \null) - { - } /** * Gets the text suggesting how to create strong passwords. * @@ -131659,28 +126433,6 @@ function wp_destroy_all_sessions() function wp_get_users_with_no_role($site_id = \null) { } - /** - * Retrieves the current user object. - * - * Will set the current user, if the current user is not set. The current user - * will be set to the logged-in person. If no user is logged-in, then it will - * set the current user to 0, which is invalid and won't have any permissions. - * - * This function is used by the pluggable functions wp_get_current_user() and - * get_currentuserinfo(), the latter of which is deprecated but used for backward - * compatibility. - * - * @since 4.5.0 - * @access private - * - * @see wp_get_current_user() - * @global WP_User $current_user Checks if the current user is set. - * - * @return WP_User Current WP_User instance. - */ - function _wp_get_current_user() - { - } /** * Sends a confirmation request email when a change of user email address is attempted. * @@ -131704,17 +126456,6 @@ function send_confirmation_on_profile_email() function new_user_email_admin_notice() { } - /** - * Gets all personal data request types. - * - * @since 4.9.6 - * @access private - * - * @return string[] List of core privacy action types. - */ - function _wp_privacy_action_request_types() - { - } /** * Registers the personal data exporter for users. * @@ -131739,17 +126480,6 @@ function wp_register_user_personal_data_exporter($exporters) function wp_user_personal_data_exporter($email_address) { } - /** - * Updates log when privacy request is confirmed. - * - * @since 4.9.6 - * @access private - * - * @param int $request_id ID of the request. - */ - function _wp_privacy_account_request_confirmed($request_id) - { - } /** * Notifies the site administrator via email when a request is confirmed. * @@ -131775,18 +126505,6 @@ function _wp_privacy_send_request_confirmation_notification($request_id) function _wp_privacy_send_erasure_fulfillment_notification($request_id) { } - /** - * Returns request confirmation message HTML. - * - * @since 4.9.6 - * @access private - * - * @param int $request_id The request ID being confirmed. - * @return string The confirmation message. - */ - function _wp_privacy_account_request_confirmed_message($request_id) - { - } /** * Creates and logs a user request to perform a specific action. * @@ -131905,21 +126623,6 @@ function wp_is_application_passwords_available() function wp_is_application_passwords_available_for_user($user) { } - /** - * Registers the user meta property for persisted preferences. - * - * This property is used to store user preferences across page reloads and is - * currently used by the block editor for preferences like 'fullscreenMode' and - * 'fixedToolbar'. - * - * @since 6.1.0 - * @access private - * - * @global wpdb $wpdb WordPress database abstraction object. - */ - function wp_register_persisted_preferences_meta() - { - } /** * Test if the current browser runs on a mobile device (smart phone, tablet, etc.) * @@ -132356,27 +127059,6 @@ function is_dynamic_sidebar() function is_active_sidebar($index) { } - // - // Internal Functions. - // - /** - * Retrieve full list of sidebars and their widget instance IDs. - * - * Will upgrade sidebar widget list, if needed. Will also save updated list, if - * needed. - * - * @since 2.2.0 - * @access private - * - * @global array $_wp_sidebars_widgets - * @global array $sidebars_widgets - * - * @param bool $deprecated Not used (argument deprecated). - * @return array Upgraded list of widgets to version 3 array format when called from the admin. - */ - function wp_get_sidebars_widgets($deprecated = \true) - { - } /** * Retrieves the registered sidebar with the given ID. * @@ -132390,31 +127072,6 @@ function wp_get_sidebars_widgets($deprecated = \true) function wp_get_sidebar($id) { } - /** - * Set the sidebar widget option to update sidebars. - * - * @since 2.2.0 - * @access private - * - * @global array $_wp_sidebars_widgets - * @param array $sidebars_widgets Sidebar widgets and their settings. - */ - function wp_set_sidebars_widgets($sidebars_widgets) - { - } - /** - * Retrieve default registered sidebars list. - * - * @since 2.2.0 - * @access private - * - * @global array $wp_registered_sidebars Registered sidebars. - * - * @return array - */ - function wp_get_widget_defaults() - { - } /** * Converts the widget settings from single to multi-widget format. * @@ -132472,17 +127129,6 @@ function the_widget($widget, $instance = array(), $args = array()) function _get_widget_id_base($id) { } - /** - * Handle sidebars config after theme change - * - * @access private - * @since 3.3.0 - * - * @global array $sidebars_widgets - */ - function _wp_sidebars_changed() - { - } /** * Validates and remaps any "orphaned" widgets to wp_inactive_widgets sidebar, * and saves the widget settings. This has to run at least on each theme change. @@ -132591,17 +127237,6 @@ function wp_widget_rss_process($widget_rss, $check_feed = \true) function wp_widgets_init() { } - /** - * Enables the widgets block editor. This is hooked into 'after_setup_theme' so - * that the block editor is enabled by default but can be disabled by themes. - * - * @since 5.8.0 - * - * @access private - */ - function wp_setup_widgets_block_editor() - { - } /** * Whether or not to use the block editor to manage widgets. Defaults to true * unless a theme has removed support for widgets-block-editor or a plugin has @@ -132670,38 +127305,6 @@ function wp_render_widget($widget_id, $sidebar_id) function wp_render_widget_control($id) { } - /** - * Displays a _doing_it_wrong() message for conflicting widget editor scripts. - * - * The 'wp-editor' script module is exposed as window.wp.editor. This overrides - * the legacy TinyMCE editor module which is required by the widgets editor. - * Because of that conflict, these two shouldn't be enqueued together. - * See https://core.trac.wordpress.org/ticket/53569. - * - * There is also another conflict related to styles where the block widgets - * editor is hidden if a block enqueues 'wp-edit-post' stylesheet. - * See https://core.trac.wordpress.org/ticket/53569. - * - * @since 5.8.0 - * @access private - * - * @global WP_Scripts $wp_scripts - * @global WP_Styles $wp_styles - */ - function wp_check_widget_editor_deps() - { - } - /** - * Registers the previous theme's sidebars for the block themes. - * - * @since 6.2.0 - * @access private - * - * @global array $wp_registered_sidebars Registered sidebars. - */ - function _wp_block_theme_register_classic_sidebars() - { - } /** * Output the login page header. *