` tags).
* @param string $type Optional. Message type, controls HTML class. Possible values include 'error',
* 'success', 'warning', 'info'. Default 'error'.
+ * @phpstan-return void
*/
function add_settings_error($setting, $code, $message, $type = 'error')
{
@@ -107749,6 +108652,7 @@ function settings_errors($setting = '', $sanitize = \false, $hide_on_update = \f
* @since 2.7.0
*
* @param string $found_action Optional. The value of the 'found_action' input field. Default empty string.
+ * @phpstan-return void
*/
function find_posts_div($found_action = '')
{
@@ -107759,6 +108663,7 @@ function find_posts_div($found_action = '')
* The password is passed through esc_attr() to ensure that it is safe for placing in an HTML attribute.
*
* @since 2.7.0
+ * @phpstan-return void
*/
function the_post_password()
{
@@ -107784,6 +108689,7 @@ function _draft_or_post_title($post = 0)
* should only be used when the_search_query() cannot.
*
* @since 2.7.0
+ * @phpstan-return void
*/
function _admin_search_query()
{
@@ -107801,6 +108707,7 @@ function _admin_search_query()
* @param string $title Optional. Title of the Iframe page. Default empty.
* @param bool $deprecated Not used.
* @phpstan-param false $deprecated
+ * @phpstan-return void
*/
function iframe_header($title = '', $deprecated = \false)
{
@@ -107809,6 +108716,7 @@ function iframe_header($title = '', $deprecated = \false)
* Generic Iframe footer for use with Thickbox.
*
* @since 2.7.0
+ * @phpstan-return void
*/
function iframe_footer()
{
@@ -107874,6 +108782,7 @@ function get_media_states($post)
* has to be deleted.
*
* @since 2.8.0
+ * @phpstan-return void
*/
function compression_test()
{
@@ -107899,6 +108808,7 @@ function compression_test()
* where attribute is the key. Attributes can also be provided as a string,
* e.g. `id="search-submit"`, though the array format is generally preferred.
* Default empty string.
+ * @phpstan-return void
*/
function submit_button($text = '', $type = 'primary', $name = 'submit', $wrap = \true, $other_attributes = '')
{
@@ -107934,6 +108844,7 @@ function get_submit_button($text = '', $type = 'primary large', $name = 'submit'
* @since 3.3.0
*
* @global bool $is_IE
+ * @phpstan-return void
*/
function _wp_admin_html_begin()
{
@@ -107954,6 +108865,7 @@ function convert_to_screen($hook_name)
*
* @since 3.6.0
* @access private
+ * @phpstan-return void
*/
function _local_storage_notice()
{
@@ -107995,6 +108907,7 @@ function wp_star_rating($args = array())
*
* @ignore
* @since 4.2.0
+ * @phpstan-return void
*/
function _wp_posts_page_notice()
{
@@ -108004,6 +108917,7 @@ function _wp_posts_page_notice()
*
* @ignore
* @since 5.8.0
+ * @phpstan-return void
*/
function _wp_block_editor_posts_page_notice()
{
@@ -108026,6 +108940,7 @@ function install_themes_feature_list()
* @since 2.8.0
*
* @param bool $type_selector
+ * @phpstan-return void
*/
function install_theme_search_form($type_selector = \true)
{
@@ -108034,6 +108949,7 @@ function install_theme_search_form($type_selector = \true)
* Displays tags filter for themes.
*
* @since 2.8.0
+ * @phpstan-return void
*/
function install_themes_dashboard()
{
@@ -108042,6 +108958,7 @@ function install_themes_dashboard()
* Displays a form to upload themes from zip files.
*
* @since 2.8.0
+ * @phpstan-return void
*/
function install_themes_upload()
{
@@ -108064,6 +108981,7 @@ function display_theme($theme)
* @since 2.8.0
*
* @global WP_Theme_Install_List_Table $wp_list_table
+ * @phpstan-return void
*/
function display_themes()
{
@@ -108131,6 +109049,7 @@ function _get_template_edit_filename($fullpath, $containingfolder)
* @see get_theme_update_available()
*
* @param WP_Theme $theme Theme data object.
+ * @phpstan-return void
*/
function theme_update_available($theme)
{
@@ -108320,6 +109239,7 @@ function wp_prepare_themes_for_js($themes = \null)
* Prints JS templates for the theme-browsing UI in the Customizer.
*
* @since 4.2.0
+ * @phpstan-return void
*/
function customize_themes_print_templates()
{
@@ -108477,6 +109397,7 @@ function wp_get_available_translations()
* @global string $wp_local_package Locale code of the package.
*
* @param array[] $languages Array of available languages (populated via the Translation API).
+ * @phpstan-return void
*/
function wp_install_language_form($languages)
{
@@ -108611,6 +109532,7 @@ function _redirect_to_about_wordpress($new_version)
*
* @global string[] $wp_theme_directories
* @global WP_Filesystem_Base $wp_filesystem
+ * @phpstan-return void
*/
function _upgrade_422_remove_genericons()
{
@@ -108630,6 +109552,7 @@ function _upgrade_422_find_genericons_files_in_folder($directory)
/**
* @ignore
* @since 4.4.0
+ * @phpstan-return void
*/
function _upgrade_440_force_deactivate_incompatible_plugins()
{
@@ -108642,6 +109565,7 @@ function _upgrade_440_force_deactivate_incompatible_plugins()
* @since 6.1.1 The minimum compatible version of Gutenberg is 14.1.
* @since 6.4.0 The minimum compatible version of Gutenberg is 16.5.
* @since 6.5.0 The minimum compatible version of Gutenberg is 17.6.
+ * @phpstan-return void
*/
function _upgrade_core_deactivate_incompatible_plugins()
{
@@ -108753,6 +109677,7 @@ function update_nag()
* Displays WordPress version and active theme in the 'At a Glance' dashboard widget.
*
* @since 2.5.0
+ * @phpstan-return void
*/
function update_right_now_message()
{
@@ -108846,6 +109771,7 @@ function maintenance_nag()
* @type string message The notice's message.
* @type string type The type of update the notice is for. Either 'plugin' or 'theme'.
* }
+ * @phpstan-return void
*/
function wp_print_admin_notice_templates()
{
@@ -108876,6 +109802,7 @@ function wp_print_admin_notice_templates()
* @type string name Plugin name.
* @type string colspan The number of table columns this row spans.
* }
+ * @phpstan-return void
*/
function wp_print_update_row_templates()
{
@@ -108982,6 +109909,7 @@ function wp_install(
* @global string $table_prefix The database table prefix.
*
* @param int $user_id User ID.
+ * @phpstan-return void
*/
function wp_install_defaults($user_id)
{
@@ -109013,6 +109941,7 @@ function wp_install_maybe_enable_pretty_permalinks()
* @param int $user_id Administrator's user ID.
* @param string $password Administrator's password. Note that a placeholder message is
* usually passed instead of the actual password.
+ * @phpstan-return void
*/
function wp_new_blog_notification(
$blog_title,
@@ -109060,6 +109989,7 @@ function upgrade_all()
* @since 1.0.0
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_100()
{
@@ -109071,6 +110001,7 @@ function upgrade_100()
* @since 1.0.1
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_101()
{
@@ -109083,6 +110014,7 @@ function upgrade_101()
* @since 6.8.0 User passwords are no longer hashed with md5.
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_110()
{
@@ -109094,6 +110026,7 @@ function upgrade_110()
* @since 1.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_130()
{
@@ -109106,6 +110039,7 @@ function upgrade_130()
*
* @global wpdb $wpdb WordPress database abstraction object.
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_160()
{
@@ -109118,6 +110052,7 @@ function upgrade_160()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_210()
{
@@ -109130,6 +110065,7 @@ function upgrade_210()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_230()
{
@@ -109141,6 +110077,7 @@ function upgrade_230()
* @since 2.3.0
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_230_options_table()
{
@@ -109152,6 +110089,7 @@ function upgrade_230_options_table()
* @since 2.3.0
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_230_old_tables()
{
@@ -109163,6 +110101,7 @@ function upgrade_230_old_tables()
* @since 2.2.0
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_old_slugs()
{
@@ -109174,6 +110113,7 @@ function upgrade_old_slugs()
* @since 2.5.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_250()
{
@@ -109185,6 +110125,7 @@ function upgrade_250()
* @since 2.5.2
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_252()
{
@@ -109196,6 +110137,7 @@ function upgrade_252()
* @since 2.6.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_260()
{
@@ -109208,6 +110150,7 @@ function upgrade_260()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_270()
{
@@ -109220,6 +110163,7 @@ function upgrade_270()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_280()
{
@@ -109231,6 +110175,7 @@ function upgrade_280()
* @since 2.9.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_290()
{
@@ -109243,6 +110188,7 @@ function upgrade_290()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_300()
{
@@ -109270,6 +110216,7 @@ function upgrade_330()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_340()
{
@@ -109282,6 +110229,7 @@ function upgrade_340()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_350()
{
@@ -109293,6 +110241,7 @@ function upgrade_350()
* @since 3.7.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_370()
{
@@ -109304,6 +110253,7 @@ function upgrade_370()
* @since 3.7.2
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_372()
{
@@ -109315,6 +110265,7 @@ function upgrade_372()
* @since 3.8.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_380()
{
@@ -109326,6 +110277,7 @@ function upgrade_380()
* @since 4.0.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_400()
{
@@ -109347,6 +110299,7 @@ function upgrade_420()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_430()
{
@@ -109368,6 +110321,7 @@ function upgrade_430_fix_comments()
*
* @ignore
* @since 4.3.1
+ * @phpstan-return void
*/
function upgrade_431()
{
@@ -109380,6 +110334,7 @@ function upgrade_431()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_440()
{
@@ -109392,6 +110347,7 @@ function upgrade_440()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_450()
{
@@ -109403,6 +110359,7 @@ function upgrade_450()
* @since 4.6.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_460()
{
@@ -109422,6 +110379,7 @@ function upgrade_500()
*
* @ignore
* @since 5.1.0
+ * @phpstan-return void
*/
function upgrade_510()
{
@@ -109431,6 +110389,7 @@ function upgrade_510()
*
* @ignore
* @since 5.3.0
+ * @phpstan-return void
*/
function upgrade_530()
{
@@ -109442,6 +110401,7 @@ function upgrade_530()
* @since 5.5.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_550()
{
@@ -109454,6 +110414,7 @@ function upgrade_550()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_560()
{
@@ -109465,6 +110426,7 @@ function upgrade_560()
* @since 5.9.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_590()
{
@@ -109476,6 +110438,7 @@ function upgrade_590()
* @since 6.0.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_600()
{
@@ -109487,6 +110450,7 @@ function upgrade_600()
* @since 6.3.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_630()
{
@@ -109498,6 +110462,7 @@ function upgrade_630()
* @since 6.4.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_640()
{
@@ -109510,6 +110475,7 @@ function upgrade_640()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_650()
{
@@ -109521,6 +110487,7 @@ function upgrade_650()
* @since 6.7.0
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_670()
{
@@ -109532,6 +110499,7 @@ function upgrade_670()
* @since 6.8.2
*
* @global int $wp_current_db_version The old (current) database version.
+ * @phpstan-return void
*/
function upgrade_682()
{
@@ -109544,6 +110512,7 @@ function upgrade_682()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_700()
{
@@ -109555,6 +110524,7 @@ function upgrade_700()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function upgrade_network()
{
@@ -109703,6 +110673,7 @@ function dbDelta($queries = '', $execute = \true)
* @uses dbDelta
*
* @param string $tables Optional. Which set of tables to update. Default is 'all'.
+ * @phpstan-return void
*/
function make_db_current($tables = 'all')
{
@@ -109718,6 +110689,7 @@ function make_db_current($tables = 'all')
* @see make_db_current()
*
* @param string $tables Optional. Which set of tables to update. Default is 'all'.
+ * @phpstan-return void
*/
function make_db_current_silent($tables = 'all')
{
@@ -109779,6 +110751,7 @@ function translate_level_to_role($level)
* @since 2.1.0
*
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function wp_check_mysql_version()
{
@@ -109787,6 +110760,7 @@ function wp_check_mysql_version()
* Disables the Automattic widgets plugin, which was merged into core.
*
* @since 2.2.0
+ * @phpstan-return void
*/
function maybe_disable_automattic_widgets()
{
@@ -109798,6 +110772,7 @@ function maybe_disable_automattic_widgets()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function maybe_disable_link_manager()
{
@@ -109809,6 +110784,7 @@ function maybe_disable_link_manager()
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
+ * @phpstan-return void
*/
function pre_schema_upgrade()
{
@@ -109928,6 +110904,7 @@ function wp_delete_user($id, $reassign = \null)
* @since 2.1.0
*
* @param int $id User ID.
+ * @phpstan-return void
*/
function wp_revoke_user($id)
{
@@ -109970,6 +110947,7 @@ function default_password_nag()
* @since 2.7.0
*
* @param WP_User $user User data object.
+ * @phpstan-return void
*/
function use_ssl_preference($user)
{
@@ -110031,6 +111009,7 @@ function wp_is_authorize_application_redirect_url_valid($url)
*
* @global array $wp_registered_widgets
* @global array $wp_registered_widget_controls
+ * @phpstan-return void
*/
function wp_list_widgets()
{
@@ -110056,6 +111035,7 @@ function _sort_name_callback($a, $b)
*
* @param string $sidebar Sidebar ID.
* @param string $sidebar_name Optional. Sidebar name. Default empty.
+ * @phpstan-return void
*/
function wp_list_widget_controls($sidebar, $sidebar_name = '')
{
@@ -110113,6 +111093,7 @@ function wp_widgets_access_body_class($classes)
* @since 2.5.0
*
* @param string $body_classes Class attribute values for the body tag.
+ * @phpstan-return void
*/
function display_header($body_classes = '')
{
@@ -110125,6 +111106,7 @@ function display_header($body_classes = '')
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string|null $error Error message to display, if any.
+ * @phpstan-return void
*/
function display_setup_form($error = \null)
{
@@ -110146,6 +111128,7 @@ function display_setup_form($error = \null)
* @param resource $parser XML Parser resource.
* @param string $tag_name XML element name.
* @param array $attrs XML element attributes.
+ * @phpstan-return void
*/
function startElement($parser, $tag_name, $attrs)
{
@@ -110160,6 +111143,7 @@ function startElement($parser, $tag_name, $attrs)
*
* @param resource $parser XML Parser resource.
* @param string $tag_name XML tag name.
+ * @phpstan-return void
*/
function endElement($parser, $tag_name)
{
@@ -110179,6 +111163,7 @@ function endElement($parser, $tag_name)
* @param array $menu
* @param array $submenu
* @param bool $submenu_as_parent
+ * @phpstan-return void
*/
function _wp_menu_output($menu, $submenu, $submenu_as_parent = \true)
{
@@ -110191,6 +111176,7 @@ function _wp_menu_output($menu, $submenu, $submenu_as_parent = \true)
* @since 3.0.0
* @since 5.9.0 Renamed 'Theme Editor' to 'Theme File Editor'.
* Relocates to Tools for block themes.
+ * @phpstan-return void
*/
function _add_themes_utility_last()
{
@@ -110229,6 +111215,7 @@ function wp_load_press_this()
* @since 2.3.0
*
* @param string|string[] $body_classes Class attribute values for the body tag.
+ * @phpstan-return void
*/
function setup_config_display_header($body_classes = array())
{
@@ -110265,6 +111252,7 @@ function wp_theme_auto_update_setting_template()
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param object $update
+ * @phpstan-return void
*/
function list_core_update($update)
{
@@ -110273,6 +111261,7 @@ function list_core_update($update)
* Display dismissed updates.
*
* @since 2.7.0
+ * @phpstan-return void
*/
function dismissed_updates()
{
@@ -110281,6 +111270,7 @@ function dismissed_updates()
* Display upgrade WordPress for downloading latest or upgrading automatically form.
*
* @since 2.7.0
+ * @phpstan-return void
*/
function core_upgrade_preamble()
{
@@ -110289,6 +111279,7 @@ function core_upgrade_preamble()
* Display WordPress auto-updates settings.
*
* @since 5.6.0
+ * @phpstan-return void
*/
function core_auto_updates_settings()
{
@@ -110969,6 +111960,7 @@ function wp_admin_bar_render()
* @since 3.3.0
*
* @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance.
+ * @phpstan-return void
*/
function wp_admin_bar_wp_menu($wp_admin_bar)
{
@@ -110979,6 +111971,7 @@ function wp_admin_bar_wp_menu($wp_admin_bar)
* @since 3.8.0
*
* @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance.
+ * @phpstan-return void
*/
function wp_admin_bar_sidebar_toggle($wp_admin_bar)
{
@@ -111170,6 +112163,7 @@ function wp_admin_bar_recovery_mode_menu($wp_admin_bar)
* @since 3.3.0
*
* @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance.
+ * @phpstan-return void
*/
function wp_admin_bar_add_secondary_groups($wp_admin_bar)
{
@@ -111203,6 +112197,7 @@ function wp_enqueue_admin_bar_bump_styles()
* @global bool $show_admin_bar
*
* @param bool $show Whether to allow the admin bar to show.
+ * @phpstan-return void
*/
function show_admin_bar($show)
{
@@ -111330,6 +112325,7 @@ function get_the_modified_author($post = \null)
* @since 2.8.0
*
* @see get_the_author()
+ * @phpstan-return void
*/
function the_modified_author()
{
@@ -111386,6 +112382,7 @@ function get_the_author_meta($field = '', $user_id = \false)
* @param int|false $user_id Optional. User ID. Defaults to the current post author.
*
* @see get_the_author_meta()
+ * @phpstan-return void
*/
function the_author_meta($field = '', $user_id = \false)
{
@@ -111422,6 +112419,7 @@ function get_the_author_link($use_title_attr = \true)
*
* @param bool $use_title_attr Optional. Whether to add a title attribute.
* Default true.
+ * @phpstan-return void
*/
function the_author_link($use_title_attr = \true)
{
@@ -111441,6 +112439,7 @@ function get_the_author_posts()
*
* @link https://developer.wordpress.org/reference/functions/the_author_posts/
* @since 0.71
+ * @phpstan-return void
*/
function the_author_posts()
{
@@ -111468,6 +112467,7 @@ function get_the_author_posts_link()
*
* @param string $deprecated Unused.
* @phpstan-param '' $deprecated
+ * @phpstan-return void
*/
function the_author_posts_link($deprecated = '')
{
@@ -111565,6 +112565,7 @@ function is_multi_author()
*
* @since 3.2.0
* @access private
+ * @phpstan-return void
*/
function __clear_multi_author_cache()
{
@@ -111723,6 +112724,7 @@ function _block_bindings_pattern_overrides_get_value(array $source_args, $block_
*
* @since 6.5.0
* @access private
+ * @phpstan-return void
*/
function _register_block_bindings_pattern_overrides_source()
{
@@ -111746,6 +112748,7 @@ function _block_bindings_post_data_get_value(array $source_args, $block_instance
*
* @since 6.9.0
* @access private
+ * @phpstan-return void
*/
function _register_block_bindings_post_data_source()
{
@@ -111769,6 +112772,7 @@ function _block_bindings_post_meta_get_value(array $source_args, $block_instance
*
* @since 6.5.0
* @access private
+ * @phpstan-return void
*/
function _register_block_bindings_post_meta_source()
{
@@ -111963,6 +112967,7 @@ function get_classic_theme_supports_block_editor_settings()
* This function sets IFRAME_REQUEST to true if the site preview parameter is set.
*
* @since 6.8.0
+ * @phpstan-return void
*/
function wp_initialize_site_preview_hooks()
{
@@ -112038,6 +113043,7 @@ function unregister_block_pattern_category($category_name)
* @since 5.5.0
* @since 6.3.0 Added source to core block patterns.
* @access private
+ * @phpstan-return void
*/
function _register_core_block_patterns_and_categories()
{
@@ -112119,6 +113125,7 @@ function _register_theme_block_patterns()
* @access private
*
* @param WP_Block_Type $block_type Block Type.
+ * @phpstan-return void
*/
function wp_register_alignment_support($block_type)
{
@@ -112264,6 +113271,7 @@ function wp_get_block_style_variation_name_from_class($class_string)
*
* @param array $variation_data Reference to the variation data being processed.
* @param array $theme_json Theme.json data to retrieve referenced values from.
+ * @phpstan-return void
*/
function wp_resolve_block_style_variation_ref_values(&$variation_data, $theme_json)
{
@@ -112311,6 +113319,7 @@ function wp_render_block_style_variation_class_name($block_content, $block)
*
* @since 6.6.0
* @access private
+ * @phpstan-return void
*/
function wp_enqueue_block_style_variation_styles()
{
@@ -112350,6 +113359,7 @@ function wp_render_block_visibility_support($block_content, $block)
* @access private
*
* @param WP_Block_Type $block_type Block Type.
+ * @phpstan-return void
*/
function wp_register_border_support($block_type)
{
@@ -112396,6 +113406,7 @@ function wp_has_border_feature_support($block_type, $feature, $default_value = \
* @access private
*
* @param WP_Block_Type $block_type Block Type.
+ * @phpstan-return void
*/
function wp_register_colors_support($block_type)
{
@@ -112424,6 +113435,7 @@ function wp_apply_colors_support($block_type, $block_attributes)
* @access private
*
* @param WP_Block_Type $block_type Block Type.
+ * @phpstan-return void
*/
function wp_register_custom_classname_support($block_type)
{
@@ -112482,6 +113494,7 @@ function wp_render_custom_css_support_styles($parsed_block)
* Enqueues the block custom CSS styles.
*
* @since 7.0.0
+ * @phpstan-return void
*/
function wp_enqueue_block_custom_css()
{
@@ -112540,6 +113553,7 @@ function wp_strip_custom_css_from_blocks($content)
*
* @since 7.0.0
* @access private
+ * @phpstan-return void
*/
function wp_custom_css_kses_init_filters()
{
@@ -112550,6 +113564,7 @@ function wp_custom_css_kses_init_filters()
*
* @since 7.0.0
* @access private
+ * @phpstan-return void
*/
function wp_custom_css_remove_filters()
{
@@ -112559,6 +113574,7 @@ function wp_custom_css_remove_filters()
*
* @since 7.0.0
* @access private
+ * @phpstan-return void
*/
function wp_custom_css_kses_init()
{
@@ -112832,6 +113848,7 @@ function wp_get_layout_definitions()
* @access private
*
* @param WP_Block_Type $block_type Block Type.
+ * @phpstan-return void
*/
function wp_register_layout_support($block_type)
{
@@ -112942,6 +113959,7 @@ function wp_restore_image_outer_container($block_content, $block)
* @access private
*
* @param WP_Block_Type $block_type Block Type.
+ * @phpstan-return void
*/
function wp_register_position_support($block_type)
{
@@ -113039,6 +114057,7 @@ function wp_apply_shadow_support($block_type, $block_attributes)
* @access private
*
* @param WP_Block_Type $block_type Block Type.
+ * @phpstan-return void
*/
function wp_register_spacing_support($block_type)
{
@@ -113136,6 +114155,7 @@ function wp_get_state_style_with_fallback_dimension_styles($state_style)
* @param array $groups Selector-keyed style groups.
* @param string|null $selector Block or feature selector.
* @param array $style Style fragment.
+ * @phpstan-return void
*/
function wp_add_state_style_group(&$groups, $selector, $style)
{
@@ -113629,6 +114649,7 @@ function _flatten_blocks(&$blocks)
* @access private
*
* @param array $block a parsed block.
+ * @phpstan-return void
*/
function _inject_theme_attribute_in_template_part_block(&$block)
{
@@ -113640,6 +114661,7 @@ function _inject_theme_attribute_in_template_part_block(&$block)
* @access private
*
* @param array $block a parsed block.
+ * @phpstan-return void
*/
function _remove_theme_attribute_from_template_part_block(&$block)
{
@@ -113796,6 +114818,7 @@ function block_template_part($part)
* Prints the header block template part.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function block_header_area()
{
@@ -113804,6 +114827,7 @@ function block_header_area()
* Prints the footer block template part.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function block_footer_area()
{
@@ -113877,6 +114901,7 @@ function inject_ignored_hooked_blocks_metadata_attributes($changes, $deprecated
*
* @access private
* @since 5.9.0
+ * @phpstan-return void
*/
function _add_template_loader_filters()
{
@@ -113933,6 +114958,7 @@ function resolve_block_template($template_type, $template_hierarchy, $fallback_t
* @since 5.8.0
*
* @see _wp_render_title_tag()
+ * @phpstan-return void
*/
function _block_template_render_title_tag()
{
@@ -113996,6 +115022,7 @@ function _block_template_add_skip_link(string $template_html): string
*
* @access private
* @since 5.8.0
+ * @phpstan-return void
*/
function _block_template_viewport_meta_tag()
{
@@ -114256,6 +115283,7 @@ function get_block_metadata_i18n_schema()
* @param string $manifest Optional. The absolute path to the manifest file containing the metadata collection, in
* order to register the collection. If this parameter is not provided, the `$path` parameter
* must reference a previously registered block metadata collection.
+ * @phpstan-return void
*/
function wp_register_block_types_from_metadata_collection($path, $manifest = '')
{
@@ -114271,6 +115299,7 @@ function wp_register_block_types_from_metadata_collection($path, $manifest = '')
*
* @param string $path The base path in which block files for the collection reside.
* @param string $manifest The path to the manifest file for the collection.
+ * @phpstan-return void
*/
function wp_register_block_metadata_collection($path, $manifest)
{
@@ -115268,6 +116297,7 @@ function _wp_filter_post_meta_footnotes($footnotes)
*
* @access private
* @since 6.3.2
+ * @phpstan-return void
*/
function _wp_footnotes_kses_init_filters()
{
@@ -115277,6 +116307,7 @@ function _wp_footnotes_kses_init_filters()
*
* @access private
* @since 6.3.2
+ * @phpstan-return void
*/
function _wp_footnotes_remove_filters()
{
@@ -115286,6 +116317,7 @@ function _wp_footnotes_remove_filters()
*
* @access private
* @since 6.3.2
+ * @phpstan-return void
*/
function _wp_footnotes_kses_init()
{
@@ -115315,6 +116347,7 @@ function _wp_footnotes_force_filtered_html_on_import_filter($arg)
*
* @access private
* @since 7.0.0
+ * @phpstan-return void
*/
function _wp_enqueue_auto_register_blocks()
{
@@ -115336,6 +116369,7 @@ function block_core_accordion_item_render(array $attributes, string $content): s
* Registers the `core/accordion-item` block on server.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function register_block_core_accordion_item()
{
@@ -115358,6 +116392,7 @@ function render_block_core_accordion($attributes, $content)
* Registers the `core/accordion` block on server.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function register_block_core_accordion()
{
@@ -115393,6 +116428,7 @@ function block_core_archives_build_dropdown_script($dropdown_id)
* Register archives block.
*
* @since 5.0.0
+ * @phpstan-return void
*/
function register_block_core_archives()
{
@@ -115426,6 +116462,7 @@ function get_block_core_avatar_border_attributes($attributes)
* Registers the `core/avatar` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_avatar()
{
@@ -115448,6 +116485,7 @@ function render_block_core_block($attributes, $content, $block_instance)
* Registers the `core/block` block.
*
* @since 5.3.0
+ * @phpstan-return void
*/
function register_block_core_block()
{
@@ -115577,6 +116615,7 @@ function block_core_breadcrumbs_get_terms_breadcrumbs($post_id, $post_type)
* Registers the `core/breadcrumbs` block on the server.
*
* @since 7.0.0
+ * @phpstan-return void
*/
function register_block_core_breadcrumbs()
{
@@ -115598,6 +116637,7 @@ function render_block_core_button($attributes, $content)
* Registers the `core/button` block on server.
*
* @since 6.6.0
+ * @phpstan-return void
*/
function register_block_core_button()
{
@@ -115621,6 +116661,7 @@ function render_block_core_calendar($attributes)
* Registers the `core/calendar` block on server.
*
* @since 5.2.0
+ * @phpstan-return void
*/
function register_block_core_calendar()
{
@@ -115708,6 +116749,7 @@ function build_dropdown_script_block_core_categories($dropdown_id)
* Registers the `core/categories` block on server.
*
* @since 5.0.0
+ * @phpstan-return void
*/
function register_block_core_categories()
{
@@ -115729,6 +116771,7 @@ function render_block_core_comment_author_name($attributes, $content, $block)
* Registers the `core/comment-author-name` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comment_author_name()
{
@@ -115750,6 +116793,7 @@ function render_block_core_comment_content($attributes, $content, $block)
* Registers the `core/comment-content` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comment_content()
{
@@ -115771,6 +116815,7 @@ function render_block_core_comment_date($attributes, $content, $block)
* Registers the `core/comment-date` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comment_date()
{
@@ -115793,6 +116838,7 @@ function render_block_core_comment_edit_link($attributes, $content, $block)
* Registers the `core/comment-edit-link` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comment_edit_link()
{
@@ -115814,6 +116860,7 @@ function render_block_core_comment_reply_link($attributes, $content, $block)
* Registers the `core/comment-reply-link` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comment_reply_link()
{
@@ -115851,6 +116898,7 @@ function render_block_core_comment_template($attributes, $content, $block)
* Registers the `core/comment-template` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comment_template()
{
@@ -115873,6 +116921,7 @@ function render_block_core_comments_pagination_next($attributes, $content, $bloc
* Registers the `core/comments-pagination-next` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comments_pagination_next()
{
@@ -115895,6 +116944,7 @@ function render_block_core_comments_pagination_numbers($attributes, $content, $b
* Registers the `core/comments-pagination-numbers` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comments_pagination_numbers()
{
@@ -115917,6 +116967,7 @@ function render_block_core_comments_pagination_previous($attributes, $content, $
* Registers the `core/comments-pagination-previous` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comments_pagination_previous()
{
@@ -115938,6 +116989,7 @@ function render_block_core_comments_pagination($attributes, $content)
* Registers the `core/comments-pagination` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comments_pagination()
{
@@ -115958,6 +117010,7 @@ function render_block_core_comments_title($attributes)
* Registers the `core/comments-title` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_comments_title()
{
@@ -115989,6 +117042,7 @@ function render_block_core_comments($attributes, $content, $block)
* Registers the `core/comments` block on the server.
*
* @since 6.1.0
+ * @phpstan-return void
*/
function register_block_core_comments()
{
@@ -116012,6 +117066,7 @@ function comments_block_form_defaults($fields)
* @since 6.1.0
*
* @param string $block_name Name of the new block type.
+ * @phpstan-return void
*/
function enqueue_legacy_post_comments_block_styles($block_name)
{
@@ -116027,6 +117082,7 @@ function enqueue_legacy_post_comments_block_styles($block_name)
*
* @see https://github.com/WordPress/gutenberg/pull/41807
* @see https://github.com/WordPress/gutenberg/pull/32514
+ * @phpstan-return void
*/
function register_legacy_post_comments_block()
{
@@ -116048,6 +117104,7 @@ function render_block_core_cover($attributes, $content)
* Registers the `core/cover` block renderer on server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_cover()
{
@@ -116071,6 +117128,7 @@ function block_core_details_set_img_fetchpriority_low($block_content, array $blo
* Registers the `core/details` block on server.
*
* @since 7.0.0
+ * @phpstan-return void
*/
function register_block_core_details()
{
@@ -116092,6 +117150,7 @@ function render_block_core_file($attributes, $content)
* Registers the `core/file` block on server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_file()
{
@@ -116114,6 +117173,7 @@ function render_block_core_footnotes($attributes, $content, $block)
* Registers the `core/footnotes` block on the server.
*
* @since 6.3.0
+ * @phpstan-return void
*/
function register_block_core_footnotes()
{
@@ -116122,6 +117182,7 @@ function register_block_core_footnotes()
* Registers the footnotes meta field required for footnotes to work.
*
* @since 6.5.0
+ * @phpstan-return void
*/
function register_block_core_footnotes_post_meta()
{
@@ -116264,6 +117325,7 @@ function block_core_gallery_render($attributes, $content, $block)
* Registers the `core/gallery` block on server.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_gallery()
{
@@ -116291,6 +117353,7 @@ function block_core_heading_render($attributes, $content)
* Registers the `core/heading` block on server.
*
* @since 6.2.0
+ * @phpstan-return void
*/
function register_block_core_heading()
{
@@ -116340,6 +117403,7 @@ function render_block_core_home_link($attributes, $content, $block)
*
* @uses render_block_core_home_link()
* @throws WP_Error An WP_Error exception parsing the block definition.
+ * @phpstan-return void
*/
function register_block_core_home_link()
{
@@ -116360,6 +117424,7 @@ function render_block_core_icon($attributes)
* Registers the `core/icon` block on server.
*
* @since 7.0.0
+ * @phpstan-return void
*/
function register_block_core_icon()
{
@@ -116409,6 +117474,7 @@ function block_core_image_render_lightbox($block_content, array $block, \WP_Bloc
}
/**
* @since 6.5.0
+ * @phpstan-return void
*/
function block_core_image_print_lightbox_overlay()
{
@@ -116417,6 +117483,7 @@ function block_core_image_print_lightbox_overlay()
* Registers the `core/image` block on server.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_image()
{
@@ -116429,6 +117496,7 @@ function register_block_core_image()
* avoids unnecessary logic and filesystem lookups in the other function.
*
* @since 6.3.0
+ * @phpstan-return void
*/
function register_core_block_style_handles()
{
@@ -116438,6 +117506,7 @@ function register_core_block_style_handles()
* Dynamic core blocks are registered separately.
*
* @since 5.5.0
+ * @phpstan-return void
*/
function register_core_block_types_from_metadata()
{
@@ -116450,6 +117519,7 @@ function register_core_block_types_from_metadata()
* block initialization that happens at priority 10.
*
* @since 6.7.0
+ * @phpstan-return void
*/
function wp_register_core_block_metadata_collection()
{
@@ -116495,6 +117565,7 @@ function render_block_core_latest_comments($attributes)
* Registers the `core/latest-comments` block.
*
* @since 5.3.0
+ * @phpstan-return void
*/
function register_block_core_latest_comments()
{
@@ -116533,6 +117604,7 @@ function render_block_core_latest_posts($attributes)
* Registers the `core/latest-posts` block on server.
*
* @since 5.0.0
+ * @phpstan-return void
*/
function register_block_core_latest_posts()
{
@@ -116576,6 +117648,7 @@ function render_block_core_legacy_widget($attributes)
* Registers the 'core/legacy-widget' block.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_legacy_widget()
{
@@ -116612,6 +117685,7 @@ function block_core_list_render($attributes, $content)
* Registers the `core/list` block on server.
*
* @since 6.6.0
+ * @phpstan-return void
*/
function register_block_core_list()
{
@@ -116633,6 +117707,7 @@ function render_block_core_loginout($attributes)
* Registers the `core/loginout` block on server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_loginout()
{
@@ -116654,6 +117729,7 @@ function render_block_core_media_text($attributes, $content)
* Registers the `core/media-text` block renderer on server.
*
* @since 6.6.0
+ * @phpstan-return void
*/
function register_block_core_media_text()
{
@@ -116770,6 +117846,7 @@ function block_core_navigation_link_build_variations()
*
* @uses render_block_core_navigation_link()
* @throws WP_Error An WP_Error exception parsing the block definition.
+ * @phpstan-return void
*/
function register_block_core_navigation_link()
{
@@ -116813,6 +117890,7 @@ function render_block_core_navigation_overlay_close($attributes)
* Registers the navigation overlay close block.
*
* @since 7.0.0
+ * @phpstan-return void
*/
function register_block_core_navigation_overlay_close()
{
@@ -116878,6 +117956,7 @@ function render_block_core_navigation_submenu($attributes, $content, $block)
*
* @uses render_block_core_navigation_submenu()
* @throws WP_Error An WP_Error exception parsing the block definition.
+ * @phpstan-return void
*/
function register_block_core_navigation_submenu()
{
@@ -117129,6 +118208,7 @@ function render_block_core_navigation($attributes, $content, $block)
*
* @uses render_block_core_navigation()
* @throws WP_Error An WP_Error exception parsing the block definition.
+ * @phpstan-return void
*/
function register_block_core_navigation()
{
@@ -117242,6 +118322,7 @@ function block_core_navigation_get_most_recently_published_navigation()
* Registers the `core/page-list-item` block on server.
*
* @since 6.3.0
+ * @phpstan-return void
*/
function register_block_core_page_list_item()
{
@@ -117324,6 +118405,7 @@ function render_block_core_page_list($attributes, $content, $block)
* Registers the `core/pages` block on server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_page_list()
{
@@ -117351,6 +118433,7 @@ function block_core_paragraph_add_class($block_content)
* Registers the `core/paragraph` block on server.
*
* @since 7.0.0
+ * @phpstan-return void
*/
function register_block_core_paragraph()
{
@@ -117359,6 +118442,7 @@ function register_block_core_paragraph()
* Registers the `core/pattern` block on the server.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_pattern()
{
@@ -117395,6 +118479,7 @@ function render_block_core_playlist_track($attributes, $content = '', $block = \
* Registers the `core/playlist-track` block on server.
*
* @since 7.1.0
+ * @phpstan-return void
*/
function register_block_core_playlist_track()
{
@@ -117417,6 +118502,7 @@ function render_block_core_playlist($attributes, $content, $block)
* Registers the `core/playlist` block on server.
*
* @since 7.1.0
+ * @phpstan-return void
*/
function register_block_core_playlist()
{
@@ -117438,6 +118524,7 @@ function render_block_core_post_author_biography($attributes, $content, $block)
* Registers the `core/post-author-biography` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_post_author_biography()
{
@@ -117459,6 +118546,7 @@ function render_block_core_post_author_name($attributes, $content, $block)
* Registers the `core/post-author-name` block on the server.
*
* @since 6.2.0
+ * @phpstan-return void
*/
function register_block_core_post_author_name()
{
@@ -117480,6 +118568,7 @@ function render_block_core_post_author($attributes, $content, $block)
* Registers the `core/post-author` block on the server.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_post_author()
{
@@ -117501,6 +118590,7 @@ function render_block_core_post_comments_count($attributes, $content, $block)
* Registers the `core/post-comments-count` block on the server.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function register_block_core_post_comments_count()
{
@@ -117522,6 +118612,7 @@ function render_block_core_post_comments_form($attributes, $content, $block)
* Registers the `core/post-comments-form` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_post_comments_form()
{
@@ -117555,6 +118646,7 @@ function render_block_core_post_comments_link($attributes, $content, $block)
* Registers the `core/post-comments-link` block on the server.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function register_block_core_post_comments_link()
{
@@ -117576,6 +118668,7 @@ function render_block_core_post_content($attributes, $content, $block)
* Registers the `core/post-content` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_post_content()
{
@@ -117598,6 +118691,7 @@ function render_block_core_post_date($attributes, $content, $block)
* Registers the `core/post-date` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_post_date()
{
@@ -117619,6 +118713,7 @@ function render_block_core_post_excerpt($attributes, $content, $block)
* Registers the `core/post-excerpt` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_post_excerpt()
{
@@ -117680,6 +118775,7 @@ function get_block_core_post_featured_image_border_attributes($attributes)
* Registers the `core/post-featured-image` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_post_featured_image()
{
@@ -117701,6 +118797,7 @@ function render_block_core_post_navigation_link($attributes, $content)
* Registers the `core/post-navigation-link` block on the server.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_post_navigation_link()
{
@@ -117737,6 +118834,7 @@ function render_block_core_post_template($attributes, $content, $block)
* Registers the `core/post-template` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_post_template()
{
@@ -117768,6 +118866,7 @@ function block_core_post_terms_build_variations()
* Registers the `core/post-terms` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_post_terms()
{
@@ -117814,6 +118913,7 @@ function render_block_core_post_time_to_read($attributes, $content, $block)
* Registers the `core/post-time-to-read` block on the server.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function register_block_core_post_time_to_read()
{
@@ -117836,6 +118936,7 @@ function render_block_core_post_title($attributes, $content, $block)
* Registers the `core/post-title` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_post_title()
{
@@ -117860,6 +118961,7 @@ function render_block_core_query_no_results($attributes, $content, $block)
* Registers the `core/query-no-results` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_query_no_results()
{
@@ -117884,6 +118986,7 @@ function render_block_core_query_pagination_next($attributes, $content, $block)
* Registers the `core/query-pagination-next` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_query_pagination_next()
{
@@ -117908,6 +119011,7 @@ function render_block_core_query_pagination_numbers($attributes, $content, $bloc
* Registers the `core/query-pagination-numbers` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_query_pagination_numbers()
{
@@ -117930,6 +119034,7 @@ function render_block_core_query_pagination_previous($attributes, $content, $blo
* Registers the `core/query-pagination-previous` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_query_pagination_previous()
{
@@ -117951,6 +119056,7 @@ function render_block_core_query_pagination($attributes, $content)
* Registers the `core/query-pagination` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_query_pagination()
{
@@ -117975,6 +119081,7 @@ function render_block_core_query_title($attributes, $content, $block)
* Registers the `core/query-title` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_query_title()
{
@@ -118000,6 +119107,7 @@ function render_block_core_query_total($attributes, $content, $block)
* Registers the `query-total` block.
*
* @since 6.8.0
+ * @phpstan-return void
*/
function register_block_core_query_total()
{
@@ -118022,6 +119130,7 @@ function render_block_core_query($attributes, $content, $block)
* Registers the `core/query` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_query()
{
@@ -118057,6 +119166,7 @@ function render_block_core_read_more($attributes, $content, $block)
* Registers the `core/read-more` block on the server.
*
* @since 6.0.0
+ * @phpstan-return void
*/
function register_block_core_read_more()
{
@@ -118078,6 +119188,7 @@ function render_block_core_rss($attributes)
* Registers the `core/rss` block on server.
*
* @since 5.2.0
+ * @phpstan-return void
*/
function register_block_core_rss()
{
@@ -118099,6 +119210,7 @@ function render_block_core_search($attributes)
* Registers the `core/search` block on the server.
*
* @since 5.2.0
+ * @phpstan-return void
*/
function register_block_core_search()
{
@@ -118146,6 +119258,7 @@ function apply_block_core_search_border_style($attributes, $property, $side, &$w
* @param array $wrapper_styles Current collection of wrapper styles.
* @param array $button_styles Current collection of button styles.
* @param array $input_styles Current collection of input styles.
+ * @phpstan-return void
*/
function apply_block_core_search_border_styles($attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles)
{
@@ -118232,6 +119345,7 @@ function render_block_core_shortcode($attributes, $content)
* Registers the `core/shortcode` block on server.
*
* @since 5.0.0
+ * @phpstan-return void
*/
function register_block_core_shortcode()
{
@@ -118253,6 +119367,7 @@ function render_block_core_site_logo($attributes)
* Register a core site setting for a site logo
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_site_logo_setting()
{
@@ -118261,6 +119376,7 @@ function register_block_core_site_logo_setting()
* Register a core site setting for a site icon
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_site_icon_setting()
{
@@ -118269,6 +119385,7 @@ function register_block_core_site_icon_setting()
* Registers the `core/site-logo` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_site_logo()
{
@@ -118328,6 +119445,7 @@ function _delete_site_logo_on_remove_theme_mods()
* Runs on `setup_theme` to account for dynamically-switched themes in the Customizer.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function _delete_site_logo_on_remove_custom_logo_on_setup_theme()
{
@@ -118338,6 +119456,7 @@ function _delete_site_logo_on_remove_custom_logo_on_setup_theme()
* @since 5.9.0
*
* @global array $_ignore_site_logo_changes
+ * @phpstan-return void
*/
function _delete_custom_logo_on_remove_site_logo()
{
@@ -118358,6 +119477,7 @@ function render_block_core_site_tagline($attributes)
* Registers the `core/site-tagline` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_site_tagline()
{
@@ -118378,6 +119498,7 @@ function render_block_core_site_title($attributes)
* Registers the `core/site-title` block on the server.
*
* @since 5.8.0
+ * @phpstan-return void
*/
function register_block_core_site_title()
{
@@ -118400,6 +119521,7 @@ function render_block_core_social_link($attributes, $content, $block)
* Registers the `core/social-link` blocks.
*
* @since 5.4.0
+ * @phpstan-return void
*/
function register_block_core_social_link()
{
@@ -118488,6 +119610,7 @@ function block_core_tab_list_render_callback(array $attributes, string $content,
* Registers the `core/tab-list` block on the server.
*
* @since 7.1.0
+ * @phpstan-return void
*/
function register_block_core_tab_list()
{
@@ -118512,6 +119635,7 @@ function block_core_tab_panel_render(array $attributes, string $content, \WP_Blo
* @hook init
*
* @since 7.1.0
+ * @phpstan-return void
*/
function register_block_core_tab_panel()
{
@@ -118562,6 +119686,7 @@ function block_core_tabs_render_block_callback(array $attributes, string $conten
* Registers the `core/tabs` block on the server.
*
* @since 7.1.0
+ * @phpstan-return void
*/
function register_block_core_tabs()
{
@@ -118582,6 +119707,7 @@ function render_block_core_tag_cloud($attributes)
* Registers the `core/tag-cloud` block on server.
*
* @since 5.2.0
+ * @phpstan-return void
*/
function register_block_core_tag_cloud()
{
@@ -118636,6 +119762,7 @@ function build_template_part_block_variations()
* Registers the `core/template-part` block on the server.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_template_part()
{
@@ -118658,6 +119785,7 @@ function render_block_core_term_count($attributes, $content, $block)
* Registers the `core/term-count` block on the server.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function register_block_core_term_count()
{
@@ -118680,6 +119808,7 @@ function render_block_core_term_description($attributes, $content, $block)
* Registers the `core/term-description` block on the server.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_term_description()
{
@@ -118702,6 +119831,7 @@ function render_block_core_term_name($attributes, $content, $block)
* Registers the `core/term-name` block on the server.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function register_block_core_term_name()
{
@@ -118724,6 +119854,7 @@ function render_block_core_term_template($attributes, $content, $block)
* Registers the `core/term-template` block on the server.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function register_block_core_term_template()
{
@@ -118772,6 +119903,7 @@ function render_block_core_widget_group($attributes, $content, $block)
* Registers the 'core/widget-group' block.
*
* @since 5.9.0
+ * @phpstan-return void
*/
function register_block_core_widget_group()
{
@@ -118786,6 +119918,7 @@ function register_block_core_widget_group()
* @global int|string $_sidebar_being_rendered
*
* @param int|string $index Index, name, or ID of the dynamic sidebar.
+ * @phpstan-return void
*/
function note_sidebar_being_rendered($index)
{
@@ -118797,6 +119930,7 @@ function note_sidebar_being_rendered($index)
* @since 5.9.0
*
* @global int|string $_sidebar_being_rendered
+ * @phpstan-return void
*/
function discard_sidebar_being_rendered()
{
@@ -119072,6 +120206,7 @@ function sanitize_bookmark_field($field, $value, $bookmark_id, $context)
* @since 2.7.0
*
* @param int $bookmark_id Bookmark ID.
+ * @phpstan-return void
*/
function clean_bookmark_cache($bookmark_id)
{
@@ -119082,6 +120217,7 @@ function clean_bookmark_cache($bookmark_id)
* @param string $path Route path (e.g., '/types/$type/edit/$id').
* @param string|null $content_module Script module ID for content (stage/inspector).
* @param string|null $route_module Script module ID for route lifecycle hooks.
+ * @phpstan-return void
*/
function wp_register_font_library_wp_admin_route($path, $content_module = \null, $route_module = \null)
{
@@ -119094,6 +120230,7 @@ function wp_register_font_library_wp_admin_route($path, $content_module = \null,
* @param string $label Display label.
* @param string $to Route path to navigate to.
* @param string $parent_id Optional. Parent menu item ID.
+ * @phpstan-return void
*/
function wp_register_font_library_wp_admin_menu_item($id, $label, $to, $parent_id = '')
{
@@ -119117,6 +120254,7 @@ function wp_get_font_library_wp_admin_menu_items()
/**
* Preload REST API data for the font-library-wp-admin page.
* Automatically called during page rendering.
+ * @phpstan-return void
*/
function wp_font_library_wp_admin_preload_data()
{
@@ -119126,6 +120264,7 @@ function wp_font_library_wp_admin_preload_data()
* Hooked to admin_enqueue_scripts.
*
* @param string $hook_suffix The current admin page.
+ * @phpstan-return void
*/
function wp_font_library_wp_admin_enqueue_scripts($hook_suffix)
{
@@ -119134,6 +120273,7 @@ function wp_font_library_wp_admin_enqueue_scripts($hook_suffix)
* Render the font-library-wp-admin page.
* Call this function from add_menu_page or add_submenu_page.
* This renders within the normal WordPress admin interface.
+ * @phpstan-return void
*/
function wp_font_library_wp_admin_render_page()
{
@@ -119144,6 +120284,7 @@ function wp_font_library_wp_admin_render_page()
* @param string $path Route path (e.g., '/types/$type/edit/$id').
* @param string|null $content_module Script module ID for content (stage/inspector).
* @param string|null $route_module Script module ID for route lifecycle hooks.
+ * @phpstan-return void
*/
function wp_register_font_library_route($path, $content_module = \null, $route_module = \null)
{
@@ -119157,6 +120298,7 @@ function wp_register_font_library_route($path, $content_module = \null, $route_m
* @param string $parent_id Optional. Parent menu item ID.
* @param string $parent_type Optional. Parent type: 'drilldown' or 'dropdown'.
* @phpstan-param 'drilldown'|'dropdown' $parent_type
+ * @phpstan-return void
*/
function wp_register_font_library_menu_item($id, $label, $to, $parent_id = '', $parent_type = '')
{
@@ -119180,6 +120322,7 @@ function wp_get_font_library_menu_items()
/**
* Preload REST API data for the font-library page.
* Automatically called during page rendering.
+ * @phpstan-return void
*/
function wp_font_library_preload_data()
{
@@ -119187,6 +120330,7 @@ function wp_font_library_preload_data()
/**
* Render the font-library page.
* Call this function from add_menu_page or add_submenu_page.
+ * @phpstan-return never
*/
function wp_font_library_render_page()
{
@@ -119194,6 +120338,7 @@ function wp_font_library_render_page()
/**
* Intercept admin_init to render the page early.
* This bypasses the default WordPress admin template.
+ * @phpstan-return void
*/
function wp_font_library_intercept_render()
{
@@ -119204,6 +120349,7 @@ function wp_font_library_intercept_render()
* @param string $path Route path (e.g., '/types/$type/edit/$id').
* @param string|null $content_module Script module ID for content (stage/inspector).
* @param string|null $route_module Script module ID for route lifecycle hooks.
+ * @phpstan-return void
*/
function wp_register_options_connectors_wp_admin_route($path, $content_module = \null, $route_module = \null)
{
@@ -119216,6 +120362,7 @@ function wp_register_options_connectors_wp_admin_route($path, $content_module =
* @param string $label Display label.
* @param string $to Route path to navigate to.
* @param string $parent_id Optional. Parent menu item ID.
+ * @phpstan-return void
*/
function wp_register_options_connectors_wp_admin_menu_item($id, $label, $to, $parent_id = '')
{
@@ -119239,6 +120386,7 @@ function wp_get_options_connectors_wp_admin_menu_items()
/**
* Preload REST API data for the options-connectors-wp-admin page.
* Automatically called during page rendering.
+ * @phpstan-return void
*/
function wp_options_connectors_wp_admin_preload_data()
{
@@ -119248,6 +120396,7 @@ function wp_options_connectors_wp_admin_preload_data()
* Hooked to admin_enqueue_scripts.
*
* @param string $hook_suffix The current admin page.
+ * @phpstan-return void
*/
function wp_options_connectors_wp_admin_enqueue_scripts($hook_suffix)
{
@@ -119256,6 +120405,7 @@ function wp_options_connectors_wp_admin_enqueue_scripts($hook_suffix)
* Render the options-connectors-wp-admin page.
* Call this function from add_menu_page or add_submenu_page.
* This renders within the normal WordPress admin interface.
+ * @phpstan-return void
*/
function wp_options_connectors_wp_admin_render_page()
{
@@ -119266,6 +120416,7 @@ function wp_options_connectors_wp_admin_render_page()
* @param string $path Route path (e.g., '/types/$type/edit/$id').
* @param string|null $content_module Script module ID for content (stage/inspector).
* @param string|null $route_module Script module ID for route lifecycle hooks.
+ * @phpstan-return void
*/
function wp_register_options_connectors_route($path, $content_module = \null, $route_module = \null)
{
@@ -119279,6 +120430,7 @@ function wp_register_options_connectors_route($path, $content_module = \null, $r
* @param string $parent_id Optional. Parent menu item ID.
* @param string $parent_type Optional. Parent type: 'drilldown' or 'dropdown'.
* @phpstan-param 'drilldown'|'dropdown' $parent_type
+ * @phpstan-return void
*/
function wp_register_options_connectors_menu_item($id, $label, $to, $parent_id = '', $parent_type = '')
{
@@ -119302,6 +120454,7 @@ function wp_get_options_connectors_menu_items()
/**
* Preload REST API data for the options-connectors page.
* Automatically called during page rendering.
+ * @phpstan-return void
*/
function wp_options_connectors_preload_data()
{
@@ -119309,6 +120462,7 @@ function wp_options_connectors_preload_data()
/**
* Render the options-connectors page.
* Call this function from add_menu_page or add_submenu_page.
+ * @phpstan-return never
*/
function wp_options_connectors_render_page()
{
@@ -119316,6 +120470,7 @@ function wp_options_connectors_render_page()
/**
* Intercept admin_init to render the page early.
* This bypasses the default WordPress admin template.
+ * @phpstan-return void
*/
function wp_options_connectors_intercept_render()
{
@@ -119325,30 +120480,35 @@ function wp_options_connectors_intercept_render()
*
* @param array $page_routes Array of route data for the page.
* @param string $register_function_name Name of the function to call for registering each route.
+ * @phpstan-return void
*/
function wp_register_page_routes($page_routes, $register_function_name)
{
}
/**
* Register routes for options-connectors page (full-page mode).
+ * @phpstan-return void
*/
function wp_register_options_connectors_page_routes()
{
}
/**
* Register routes for options-connectors page (wp-admin mode).
+ * @phpstan-return void
*/
function wp_register_options_connectors_wp_admin_page_routes()
{
}
/**
* Register routes for font-library page (full-page mode).
+ * @phpstan-return void
*/
function wp_register_font_library_page_routes()
{
}
/**
* Register routes for font-library page (wp-admin mode).
+ * @phpstan-return void
*/
function wp_register_font_library_wp_admin_page_routes()
{
@@ -119359,6 +120519,7 @@ function wp_register_font_library_wp_admin_page_routes()
* @since 2.0.0
*
* @global WP_Object_Cache $wp_object_cache
+ * @phpstan-return void
*/
function wp_cache_init()
{
@@ -119640,6 +120801,7 @@ function wp_cache_close()
* @global WP_Object_Cache $wp_object_cache Object cache global instance.
*
* @param string|string[] $groups A group or an array of groups to add.
+ * @phpstan-return void
*/
function wp_cache_add_global_groups($groups)
{
@@ -119650,6 +120812,7 @@ function wp_cache_add_global_groups($groups)
* @since 2.6.0
*
* @param string|string[] $groups A group or an array of groups to add.
+ * @phpstan-return void
*/
function wp_cache_add_non_persistent_groups($groups)
{
@@ -119665,6 +120828,7 @@ function wp_cache_add_non_persistent_groups($groups)
* @global WP_Object_Cache $wp_object_cache Object cache global instance.
*
* @param int $blog_id Site ID.
+ * @phpstan-return void
*/
function wp_cache_switch_to_blog($blog_id)
{
@@ -120013,6 +121177,7 @@ function add_role($role, $display_name, $capabilities = array())
* @since 2.0.0
*
* @param string $role Role name.
+ * @phpstan-return void
*/
function remove_role($role)
{
@@ -120232,6 +121397,7 @@ function in_category($category, $post = \null)
* @param string $parents Optional. How to display the parents. Accepts 'multiple', 'single', or empty.
* Default empty string.
* @param int|false $post_id Optional. ID of the post to retrieve categories for. Defaults to the current post.
+ * @phpstan-return void
*/
function the_category($separator = '', $parents = '', $post_id = \false)
{
@@ -120669,6 +121835,7 @@ function get_the_tag_list($before = '', $sep = '', $after = '', $post_id = 0)
* @param string $before Optional. String to use before the tags. Defaults to 'Tags:'.
* @param string $sep Optional. String to use between the tags. Default ', '.
* @param string $after Optional. String to use after the tags. Default empty.
+ * @phpstan-return void
*/
function the_tags($before = \null, $sep = ', ', $after = '')
{
@@ -121042,6 +122209,7 @@ function get_tag($tag, $output = \OBJECT, $filter = 'raw')
* @since 2.1.0
*
* @param int $id Category ID
+ * @phpstan-return void
*/
function clean_category_cache($id)
{
@@ -121065,6 +122233,7 @@ function clean_category_cache($id)
* @access private
*
* @param array|object|WP_Term $category Category row object or array.
+ * @phpstan-return void
*/
function _make_cat_compat(&$category)
{
@@ -121118,6 +122287,7 @@ function get_comment_author($comment_id = 0)
*
* @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author.
* Default current comment.
+ * @phpstan-return void
*/
function comment_author($comment_id = 0)
{
@@ -121149,6 +122319,7 @@ function get_comment_author_email($comment_id = 0)
*
* @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's email.
* Default current comment.
+ * @phpstan-return void
*/
function comment_author_email($comment_id = 0)
{
@@ -121170,6 +122341,7 @@ function comment_author_email($comment_id = 0)
* @param string $before Optional. Text or HTML to display before the email link. Default empty.
* @param string $after Optional. Text or HTML to display after the email link. Default empty.
* @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object. Default is the current comment.
+ * @phpstan-return void
*/
function comment_author_email_link($link_text = '', $before = '', $after = '', $comment = \null)
{
@@ -121221,6 +122393,7 @@ function get_comment_author_link($comment_id = 0)
*
* @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's link.
* Default current comment.
+ * @phpstan-return void
*/
function comment_author_link($comment_id = 0)
{
@@ -121246,6 +122419,7 @@ function get_comment_author_IP($comment_id = 0)
*
* @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's IP address.
* Default current comment.
+ * @phpstan-return void
*/
function comment_author_IP($comment_id = 0)
{
@@ -121271,6 +122445,7 @@ function get_comment_author_url($comment_id = 0)
*
* @param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to print the author's URL.
* Default current comment.
+ * @phpstan-return void
*/
function comment_author_url($comment_id = 0)
{
@@ -121315,6 +122490,7 @@ function get_comment_author_url_link($link_text = '', $before = '', $after = '',
* Default empty.
* @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object.
* Default is the current comment.
+ * @phpstan-return void
*/
function comment_author_url_link($link_text = '', $before = '', $after = '', $comment = 0)
{
@@ -121379,6 +122555,7 @@ function get_comment_date($format = '', $comment_id = 0)
* @param string $format Optional. PHP date format. Defaults to the 'date_format' option.
* @param int|WP_Comment $comment_id WP_Comment or ID of the comment for which to print the date.
* Default current comment.
+ * @phpstan-return void
*/
function comment_date($format = '', $comment_id = 0)
{
@@ -121406,6 +122583,7 @@ function get_comment_excerpt($comment_id = 0)
*
* @param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to print the excerpt.
* Default current comment.
+ * @phpstan-return void
*/
function comment_excerpt($comment_id = 0)
{
@@ -121424,6 +122602,7 @@ function get_comment_ID()
* Displays the comment ID of the current comment.
*
* @since 0.71
+ * @phpstan-return void
*/
function comment_ID()
{
@@ -121483,6 +122662,7 @@ function get_comments_link($post = 0)
* @param string $deprecated_2 Not Used.
* @phpstan-param '' $deprecated
* @phpstan-param '' $deprecated_2
+ * @phpstan-return void
*/
function comments_link($deprecated = '', $deprecated_2 = '')
{
@@ -121509,6 +122689,7 @@ function get_comments_number($post = 0)
* @param string|false $one Optional. Text for one comment. Default false.
* @param string|false $more Optional. Text for more than one comment. Default false.
* @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is the global `$post`.
+ * @phpstan-return void
*/
function comments_number($zero = \false, $one = \false, $more = \false, $post = 0)
{
@@ -121556,6 +122737,7 @@ function get_comment_text($comment_id = 0, $args = array())
* @param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to print the text.
* Default current comment.
* @param array $args Optional. An array of arguments. Default empty array.
+ * @phpstan-return void
*/
function comment_text($comment_id = 0, $args = array())
{
@@ -121586,6 +122768,7 @@ function get_comment_time($format = '', $gmt = \false, $translate = \true, $comm
* @param string $format Optional. PHP time format. Defaults to the 'time_format' option.
* @param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to print the time.
* Default current comment.
+ * @phpstan-return void
*/
function comment_time($format = '', $comment_id = 0)
{
@@ -121611,6 +122794,7 @@ function get_comment_type($comment_id = 0)
* @param string|false $comment_text Optional. String to display for comment type. Default false.
* @param string|false $trackback_text Optional. String to display for trackback type. Default false.
* @param string|false $pingback_text Optional. String to display for pingback type. Default false.
+ * @phpstan-return void
*/
function comment_type($comment_text = \false, $trackback_text = \false, $pingback_text = \false)
{
@@ -121699,6 +122883,7 @@ function pings_open($post = \null)
* Backported to 2.0.10.
*
* @since 2.1.3
+ * @phpstan-return void
*/
function wp_comment_form_unfiltered_html_nonce()
{
@@ -121816,6 +123001,7 @@ function get_comment_reply_link($args = array(), $comment = \null, $post = \null
* @param int|WP_Comment $comment Optional. Comment being replied to. Default current comment.
* @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on.
* Default current post.
+ * @phpstan-return void
*/
function comment_reply_link($args = array(), $comment = \null, $post = \null)
{
@@ -121864,6 +123050,7 @@ function get_post_reply_link($args = array(), $post = \null)
* @param array $args Optional. Override default options. Default empty array.
* @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on.
* Default current post.
+ * @phpstan-return void
*/
function post_reply_link($args = array(), $post = \null)
{
@@ -121890,6 +123077,7 @@ function get_cancel_comment_reply_link($link_text = '', $post = \null)
*
* @param string $link_text Optional. Text to display for cancel reply link. If empty,
* defaults to 'Click here to cancel reply'. Default empty.
+ * @phpstan-return void
*/
function cancel_comment_reply_link($link_text = '')
{
@@ -121922,6 +123110,7 @@ function get_comment_id_fields($post = \null)
*
* @param int|WP_Post|null $post Optional. The post the comment is being displayed for.
* Defaults to the current global post.
+ * @phpstan-return void
*/
function comment_id_fields($post = \null)
{
@@ -122554,6 +123743,7 @@ function wp_set_comment_cookies($comment, $user, $cookies_consent = \true)
* Mostly used after cookies had been sent to use elsewhere.
*
* @since 2.0.4
+ * @phpstan-return void
*/
function sanitize_comment_cookies()
{
@@ -122587,6 +123777,7 @@ function wp_allow_comment($commentdata, $wp_error = \false)
*
* @since 2.3.0
* @since 4.7.0 Converted to be an add_filter() wrapper.
+ * @phpstan-return void
*/
function check_comment_flood_db()
{
@@ -122858,6 +124049,7 @@ function wp_get_comment_status($comment_id)
* @param string $new_status New comment status.
* @param string $old_status Previous comment status.
* @param WP_Comment $comment Comment object.
+ * @phpstan-return void
*/
function wp_transition_comment_status($new_status, $old_status, $comment)
{
@@ -122873,6 +124065,7 @@ function wp_transition_comment_status($new_status, $old_status, $comment)
*
* @param string $new_status The new comment status.
* @param string $old_status The old comment status.
+ * @phpstan-return void
*/
function _clear_modified_cache_on_transition_comment_status($new_status, $old_status)
{
@@ -123100,6 +124293,7 @@ function wp_new_comment_notify_postauthor($comment_id)
* @since 6.9.0
*
* @param WP_Comment $comment The comment object.
+ * @phpstan-return void
*/
function wp_new_comment_via_rest_notify_postauthor($comment)
{
@@ -123276,6 +124470,7 @@ function discover_pingback_server_uri($url, $deprecated = '')
*
* @since 2.1.0
* @since 5.6.0 Introduced `do_all_pings` action hook for individual services.
+ * @phpstan-return void
*/
function do_all_pings()
{
@@ -123284,6 +124479,7 @@ function do_all_pings()
* Performs all pingbacks.
*
* @since 5.6.0
+ * @phpstan-return void
*/
function do_all_pingbacks()
{
@@ -123292,6 +124488,7 @@ function do_all_pingbacks()
* Performs all enclosures.
*
* @since 5.6.0
+ * @phpstan-return void
*/
function do_all_enclosures()
{
@@ -123300,6 +124497,7 @@ function do_all_enclosures()
* Performs all trackbacks.
*
* @since 5.6.0
+ * @phpstan-return void
*/
function do_all_trackbacks()
{
@@ -123350,6 +124548,7 @@ function wp_should_disable_pings_for_environment()
* priority 10 callbacks. Does not remove `do_all_enclosures`.
*
* @since 7.1.0
+ * @phpstan-return void
*/
function wp_maybe_disable_outgoing_pings_for_environment()
{
@@ -123362,6 +124561,7 @@ function wp_maybe_disable_outgoing_pings_for_environment()
* response and terminates the request.
*
* @since 7.1.0
+ * @phpstan-return void
*/
function wp_maybe_disable_trackback_for_environment()
{
@@ -123427,6 +124627,7 @@ function trackback($trackback_url, $title, $excerpt, $post_id)
*
* @param string $server Host of blog to connect to.
* @param string $path Path to send the ping.
+ * @phpstan-return void
*/
function weblog_ping($server = '', $path = '')
{
@@ -123466,6 +124667,7 @@ function xmlrpc_pingback_error($ixr_error)
* @since 2.3.0
*
* @param int|array $ids Comment ID or an array of comment IDs to remove from cache.
+ * @phpstan-return void
*/
function clean_comment_cache($ids)
{
@@ -123482,6 +124684,7 @@ function clean_comment_cache($ids)
*
* @param WP_Comment[] $comments Array of comment objects
* @param bool $update_meta_cache Whether to update commentmeta cache. Default true.
+ * @phpstan-return void
*/
function update_comment_cache($comments, $update_meta_cache = \true)
{
@@ -123498,6 +124701,7 @@ function update_comment_cache($comments, $update_meta_cache = \true)
*
* @param int[] $comment_ids Array of comment IDs.
* @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true.
+ * @phpstan-return void
*/
function _prime_comment_caches($comment_ids, $update_meta_cache = \true)
{
@@ -123635,6 +124839,7 @@ function wp_comments_personal_data_eraser($email_address, $page = 1)
* Sets the last changed time for the 'comment' cache group.
*
* @since 5.0.0
+ * @phpstan-return void
*/
function wp_cache_set_comments_last_changed()
{
@@ -123656,6 +124861,7 @@ function _wp_batch_update_comment_type()
*
* @ignore
* @since 5.5.0
+ * @phpstan-return void
*/
function _wp_check_for_scheduled_update_comment_type()
{
@@ -123664,6 +124870,7 @@ function _wp_check_for_scheduled_update_comment_type()
* Register initial note status meta.
*
* @since 6.9.0
+ * @phpstan-return void
*/
function wp_create_initial_comment_meta()
{
@@ -124655,6 +125862,7 @@ function _upgrade_cron_array($cron)
*
* @global int $blog_id The current site ID.
* @global string $wp_version The WordPress version string.
+ * @phpstan-return void
*/
function wp_initial_constants()
{
@@ -124665,6 +125873,7 @@ function wp_initial_constants()
* Defines must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
*
* @since 3.0.0
+ * @phpstan-return void
*/
function wp_plugin_directory_constants()
{
@@ -124675,6 +125884,7 @@ function wp_plugin_directory_constants()
* Defines constants after multisite is loaded.
*
* @since 3.0.0
+ * @phpstan-return void
*/
function wp_cookie_constants()
{
@@ -124683,6 +125893,7 @@ function wp_cookie_constants()
* Defines SSL-related WordPress constants.
*
* @since 3.0.0
+ * @phpstan-return void
*/
function wp_ssl_constants()
{
@@ -124691,6 +125902,7 @@ function wp_ssl_constants()
* Defines functionality-related WordPress constants.
*
* @since 3.0.0
+ * @phpstan-return void
*/
function wp_functionality_constants()
{
@@ -124699,6 +125911,7 @@ function wp_functionality_constants()
* Defines templating-related WordPress constants.
*
* @since 3.0.0
+ * @phpstan-return void
*/
function wp_templating_constants()
{
@@ -124770,7 +125983,6 @@ function the_category_head($before = '', $after = '')
* @param string $in_same_cat
* @param int $limitprev
* @param string $excluded_categories
- * @phpstan-return void
*/
function previous_post($format = '%', $previous = 'previous post: ', $title = 'yes', $in_same_cat = 'no', $limitprev = 1, $excluded_categories = '')
{
@@ -124788,7 +126000,6 @@ function previous_post($format = '%', $previous = 'previous post: ', $title = 'y
* @param string $in_same_cat
* @param int $limitnext
* @param string $excluded_categories
- * @phpstan-return void
*/
function next_post($format = '%', $next = 'next post: ', $title = 'yes', $in_same_cat = 'no', $limitnext = 1, $excluded_categories = '')
{
@@ -127430,7 +128641,6 @@ function noindex()
* @since 3.3.0
* @since 5.3.0 Echo `noindex,nofollow` if search engine visibility is discouraged.
* @deprecated 5.7.0 Use wp_robots_no_robots() instead on 'wp_robots' filter.
- * @phpstan-return void
*/
function wp_no_robots()
{
@@ -127961,7 +129171,6 @@ function wp_get_global_styles_svg_filters()
*
* @since 5.9.1
* @deprecated 6.3.0 SVG generation is handled on a per-block basis in block supports.
- * @phpstan-return void
*/
function wp_global_styles_render_svg_filters()
{
@@ -128029,7 +129238,6 @@ function print_embed_styles()
*
* @since 4.2.0
* @deprecated 6.4.0 Use wp_enqueue_emoji_styles() instead.
- * @phpstan-return void
*/
function print_emoji_styles()
{
@@ -128063,7 +129271,6 @@ function _admin_bar_bump_cb()
* update the `https_detection_errors` option, but this is no longer necessary as the errors are
* retrieved directly in Site Health and no longer used outside of Site Health.
* @access private
- * @phpstan-return void
*/
function wp_update_https_detection_errors()
{
@@ -128125,7 +129332,6 @@ function _remove_theme_attribute_in_block_template_content($template_content)
* @deprecated 6.4.0 Use wp_enqueue_block_template_skip_link() instead.
*
* @global string $_wp_current_template_content
- * @phpstan-return void
*/
function the_block_template_skip_link()
{
@@ -128206,7 +129412,6 @@ function wp_get_global_styles_custom_css()
*
* @since 6.2.0
* @deprecated 6.7.0 Use {@see 'wp_enqueue_global_styles'} instead.
- * @phpstan-return void
*/
function wp_enqueue_global_styles_custom_css()
{
@@ -128272,7 +129477,6 @@ function wp_add_editor_classic_theme_styles($editor_settings)
* @see https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size
* @see https://core.trac.wordpress.org/ticket/62413
* @see https://core.trac.wordpress.org/ticket/62731
- * @phpstan-return void
*/
function wp_print_auto_sizes_contain_css_fix()
{
@@ -128325,6 +129529,7 @@ function wp_sanitize_script_attributes($attributes)
* @param callable $callback The callback function that will be called if the regex is matched.
* @param int $priority Optional. Used to specify the order in which the registered handlers will
* be tested. Default 10.
+ * @phpstan-return void
*/
function wp_embed_register_handler($id, $regex, $callback, $priority = 10)
{
@@ -128338,6 +129543,7 @@ function wp_embed_register_handler($id, $regex, $callback, $priority = 10)
*
* @param string $id The handler ID that should be removed.
* @param int $priority Optional. The priority of the handler to be removed. Default 10.
+ * @phpstan-return void
*/
function wp_embed_unregister_handler($id, $priority = 10)
{
@@ -128420,6 +129626,7 @@ function _wp_oembed_get_object()
* as wildcards.
* @param string $provider The URL to the oEmbed provider.
* @param bool $regex Optional. Whether the `$format` parameter is in a RegEx format. Default false.
+ * @phpstan-return void
*/
function wp_oembed_add_provider($format, $provider, $regex = \false)
{
@@ -128502,6 +129709,7 @@ function wp_embed_handler_video($matches, $attr, $url, $rawattr)
* Registers the oEmbed REST API route.
*
* @since 4.4.0
+ * @phpstan-return void
*/
function wp_oembed_register_route()
{
@@ -128726,6 +129934,7 @@ function wp_embed_excerpt_more($more_string)
* Intended to be used in 'The Loop'.
*
* @since 4.4.0
+ * @phpstan-return void
*/
function the_excerpt_embed()
{
@@ -128752,6 +129961,7 @@ function wp_embed_excerpt_attachment($content)
* Runs first in oembed_head().
*
* @since 4.4.0
+ * @phpstan-return void
*/
function enqueue_embed_scripts()
{
@@ -128769,6 +129979,7 @@ function wp_enqueue_embed_styles()
* Prints the JavaScript in the embed iframe header.
*
* @since 4.4.0
+ * @phpstan-return void
*/
function print_embed_scripts()
{
@@ -128927,6 +130138,7 @@ function get_bloginfo_rss($show = '')
* @see get_bloginfo() For the list of possible values to display.
*
* @param string $show See get_bloginfo() for possible values.
+ * @phpstan-return void
*/
function bloginfo_rss($show = '')
{
@@ -128965,6 +130177,7 @@ function get_wp_title_rss($deprecated = '–')
*
* @param string $deprecated Unused.
* @phpstan-param '–' $deprecated
+ * @phpstan-return void
*/
function wp_title_rss($deprecated = '–')
{
@@ -128985,6 +130198,7 @@ function get_the_title_rss($post = 0)
* Displays the post title in the feed.
*
* @since 0.71
+ * @phpstan-return void
*/
function the_title_rss()
{
@@ -129008,6 +130222,7 @@ function get_the_content_feed($feed_type = \null)
* @since 2.9.0
*
* @param string $feed_type The type of feed. rss2 | atom | rss | rdf
+ * @phpstan-return void
*/
function the_content_feed($feed_type = \null)
{
@@ -129016,6 +130231,7 @@ function the_content_feed($feed_type = \null)
* Displays the post excerpt for the feed.
*
* @since 0.71
+ * @phpstan-return void
*/
function the_excerpt_rss()
{
@@ -129024,6 +130240,7 @@ function the_excerpt_rss()
* Displays the permalink to the post for use in feeds.
*
* @since 2.3.0
+ * @phpstan-return void
*/
function the_permalink_rss()
{
@@ -129032,6 +130249,7 @@ function the_permalink_rss()
* Outputs the link to the comments for the current post in an XML safe way.
*
* @since 3.0.0
+ * @phpstan-return void
*/
function comments_link_feed()
{
@@ -129042,6 +130260,7 @@ function comments_link_feed()
* @since 2.5.0
*
* @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object.
+ * @phpstan-return void
*/
function comment_guid($comment_id = \null)
{
@@ -129064,6 +130283,7 @@ function get_comment_guid($comment_id = \null)
* @since 4.4.0 Introduced the `$comment` argument.
*
* @param int|WP_Comment $comment Optional. Comment object or ID. Defaults to global comment object.
+ * @phpstan-return void
*/
function comment_link($comment = \null)
{
@@ -129082,6 +130302,7 @@ function get_comment_author_rss()
* Displays the current comment author in the feed.
*
* @since 1.0.0
+ * @phpstan-return void
*/
function comment_author_rss()
{
@@ -129090,6 +130311,7 @@ function comment_author_rss()
* Displays the current comment content for use in the feeds.
*
* @since 1.0.0
+ * @phpstan-return void
*/
function comment_text_rss()
{
@@ -129117,6 +130339,7 @@ function get_the_category_rss($type = \null)
* @see get_the_category_rss() For better explanation.
*
* @param string $type Optional, default is the type returned by get_default_feed().
+ * @phpstan-return void
*/
function the_category_rss($type = \null)
{
@@ -129127,6 +130350,7 @@ function the_category_rss($type = \null)
* The two possible values are either 'xhtml' or 'html'.
*
* @since 2.2.0
+ * @phpstan-return void
*/
function html_type_rss()
{
@@ -129193,6 +130417,7 @@ function prep_atom_text_construct($data)
* @since 4.3.0
*
* @see get_site_icon_url()
+ * @phpstan-return void
*/
function atom_site_icon()
{
@@ -129201,6 +130426,7 @@ function atom_site_icon()
* Displays Site Icon in RSS2.
*
* @since 4.3.0
+ * @phpstan-return void
*/
function rss2_site_icon()
{
@@ -129221,6 +130447,7 @@ function get_self_link()
* Generate a correct link for the atom:self element.
*
* @since 2.5.0
+ * @phpstan-return void
*/
function self_link()
{
@@ -129463,6 +130690,7 @@ function _wp_before_delete_font_face($post_id, $post)
*
* @access private
* @since 6.5.0
+ * @phpstan-return void
*/
function _wp_register_default_font_collections()
{
@@ -131238,6 +132466,7 @@ function map_deep($value, $callback)
* @param string $input_string The string to be parsed.
* @param array $result Variables will be stored in this array.
* @phpstan-param-out array