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 `