Skip to content

Commit

Permalink
Generate stubs for WordPress 6.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Nov 24, 2024
1 parent 9138eb6 commit 83448e9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-sodium": "*",
"johnpbloch/wordpress": "6.7.0"
"johnpbloch/wordpress": "6.7.1"
},
"minimum-stability": "stable",
"config": {
Expand Down
19 changes: 19 additions & 0 deletions wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, WP_Translations|NOOP_Translations> $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.
Expand All @@ -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<string, WP_Translations|NOOP_Translations> $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
Expand All @@ -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<string, WP_Translations|NOOP_Translations> $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.
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 83448e9

Please sign in to comment.