From 83448e918bf06d1ed3d67ceb6a985fc266a02fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 24 Nov 2024 03:57:09 +0000 Subject: [PATCH] Generate stubs for WordPress 6.7.1 --- source/composer.json | 2 +- wordpress-stubs.php | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/source/composer.json b/source/composer.json index 17cff77..50ccd20 100644 --- a/source/composer.json +++ b/source/composer.json @@ -7,7 +7,7 @@ "ext-mbstring": "*", "ext-openssl": "*", "ext-sodium": "*", - "johnpbloch/wordpress": "6.7.0" + "johnpbloch/wordpress": "6.7.1" }, "minimum-stability": "stable", "config": { diff --git a/wordpress-stubs.php b/wordpress-stubs.php index 02f8f50..dfdcb3c 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -118184,6 +118184,9 @@ function load_default_textdomain($locale = \null) * @since 4.6.0 The function now tries to load the .mo file from the languages directory first. * @since 6.7.0 Translations are no longer immediately loaded, but handed off to the just-in-time loading mechanism. * + * @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry. + * @global array $l10n An array of all currently loaded text domains. + * * @param string $domain Unique identifier for retrieving translated strings * @param string|false $deprecated Optional. Deprecated. Use the $plugin_rel_path parameter instead. * Default false. @@ -118202,6 +118205,7 @@ function load_plugin_textdomain($domain, $deprecated = \false, $plugin_rel_path * @since 6.7.0 Translations are no longer immediately loaded, but handed off to the just-in-time loading mechanism. * * @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry. + * @global array $l10n An array of all currently loaded text domains. * * @param string $domain Text domain. Unique identifier for retrieving translated strings. * @param string $mu_plugin_rel_path Optional. Relative to `WPMU_PLUGIN_DIR` directory in which the .mo @@ -118224,6 +118228,7 @@ function load_muplugin_textdomain($domain, $mu_plugin_rel_path = '') * @since 6.7.0 Translations are no longer immediately loaded, but handed off to the just-in-time loading mechanism. * * @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry. + * @global array $l10n An array of all currently loaded text domains. * * @param string $domain Text domain. Unique identifier for retrieving translated strings. * @param string|false $path Optional. Path to the directory containing the .mo file. @@ -122100,6 +122105,20 @@ function wp_img_tag_add_auto_sizes(string $image) : string function wp_sizes_attribute_includes_valid_auto(string $sizes_attr) : bool { } + /** + * Prints a CSS rule to fix potential visual issues with images using `sizes=auto`. + * + * This rule overrides the similar rule in the default user agent stylesheet, to avoid images that use e.g. + * `width: auto` or `width: fit-content` to appear smaller. + * + * @since 6.7.1 + * @see https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size + * @see https://core.trac.wordpress.org/ticket/62413 + * @phpstan-return void + */ + function wp_print_auto_sizes_contain_css_fix() + { + } /** * Adds optimization attributes to an `img` HTML tag. *