Skip to content

Commit 83448e9

Browse files
committed
Generate stubs for WordPress 6.7.1
1 parent 9138eb6 commit 83448e9

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

source/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ext-mbstring": "*",
88
"ext-openssl": "*",
99
"ext-sodium": "*",
10-
"johnpbloch/wordpress": "6.7.0"
10+
"johnpbloch/wordpress": "6.7.1"
1111
},
1212
"minimum-stability": "stable",
1313
"config": {

wordpress-stubs.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118184,6 +118184,9 @@ function load_default_textdomain($locale = \null)
118184118184
* @since 4.6.0 The function now tries to load the .mo file from the languages directory first.
118185118185
* @since 6.7.0 Translations are no longer immediately loaded, but handed off to the just-in-time loading mechanism.
118186118186
*
118187+
* @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry.
118188+
* @global array<string, WP_Translations|NOOP_Translations> $l10n An array of all currently loaded text domains.
118189+
*
118187118190
* @param string $domain Unique identifier for retrieving translated strings
118188118191
* @param string|false $deprecated Optional. Deprecated. Use the $plugin_rel_path parameter instead.
118189118192
* Default false.
@@ -118202,6 +118205,7 @@ function load_plugin_textdomain($domain, $deprecated = \false, $plugin_rel_path
118202118205
* @since 6.7.0 Translations are no longer immediately loaded, but handed off to the just-in-time loading mechanism.
118203118206
*
118204118207
* @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry.
118208+
* @global array<string, WP_Translations|NOOP_Translations> $l10n An array of all currently loaded text domains.
118205118209
*
118206118210
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
118207118211
* @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 = '')
118224118228
* @since 6.7.0 Translations are no longer immediately loaded, but handed off to the just-in-time loading mechanism.
118225118229
*
118226118230
* @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry.
118231+
* @global array<string, WP_Translations|NOOP_Translations> $l10n An array of all currently loaded text domains.
118227118232
*
118228118233
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
118229118234
* @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
122100122105
function wp_sizes_attribute_includes_valid_auto(string $sizes_attr) : bool
122101122106
{
122102122107
}
122108+
/**
122109+
* Prints a CSS rule to fix potential visual issues with images using `sizes=auto`.
122110+
*
122111+
* This rule overrides the similar rule in the default user agent stylesheet, to avoid images that use e.g.
122112+
* `width: auto` or `width: fit-content` to appear smaller.
122113+
*
122114+
* @since 6.7.1
122115+
* @see https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size
122116+
* @see https://core.trac.wordpress.org/ticket/62413
122117+
* @phpstan-return void
122118+
*/
122119+
function wp_print_auto_sizes_contain_css_fix()
122120+
{
122121+
}
122103122122
/**
122104122123
* Adds optimization attributes to an `img` HTML tag.
122105122124
*

0 commit comments

Comments
 (0)