Skip to content

Commit 4ad0128

Browse files
authored
Generate stubs for WordPress 6.4.2 (#155)
1 parent cd4db63 commit 4ad0128

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

source/composer.json

+1-1
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.4.1"
10+
"johnpbloch/wordpress": "6.4.2"
1111
},
1212
"minimum-stability": "stable",
1313
"config": {

wordpress-stubs.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -63331,7 +63331,7 @@ public function __construct()
6333163331
*
6333263332
* Example:
6333363333
*
63334-
* if ( $tags->next_tag( array( 'class' => 'wp-group-block' ) ) ) {
63334+
* if ( $tags->next_tag( array( 'class_name' => 'wp-group-block' ) ) ) {
6333563335
* $tags->set_attribute( 'title', 'This groups the contained content.' );
6333663336
* $tags->remove_attribute( 'data-test-id' );
6333763337
* }
@@ -64662,6 +64662,14 @@ public function __construct($bookmark_name, $node_name, $has_self_closing_flag,
6466264662
public function __destruct()
6466364663
{
6466464664
}
64665+
/**
64666+
* Wakeup magic method.
64667+
*
64668+
* @since 6.4.2
64669+
*/
64670+
public function __wakeup()
64671+
{
64672+
}
6466564673
}
6466664674
/**
6466764675
* HTML API: WP_HTML_Unsupported_Exception class
@@ -89923,7 +89931,7 @@ function _register_remote_theme_patterns()
8992389931
* @since 6.0.0
8992489932
* @since 6.1.0 The `postTypes` property was added.
8992589933
* @since 6.2.0 The `templateTypes` property was added.
89926-
* @since 6.4.0 Uses the `_wp_get_block_patterns` function.
89934+
* @since 6.4.0 Uses the `WP_Theme::get_block_patterns` method.
8992789935
* @access private
8992889936
* @phpstan-return void
8992989937
*/
@@ -119202,8 +119210,6 @@ function update_blog_option($id, $option, $value, $deprecated = \null)
119202119210
* @global array $_wp_switched_stack
119203119211
* @global bool $switched
119204119212
* @global string $table_prefix
119205-
* @global string $wp_template_path
119206-
* @global string $wp_stylesheet_path
119207119213
* @global WP_Object_Cache $wp_object_cache
119208119214
*
119209119215
* @param int $new_blog_id The ID of the blog to switch to. Default: current blog.
@@ -119224,8 +119230,6 @@ function switch_to_blog($new_blog_id, $deprecated = \null)
119224119230
* @global int $blog_id
119225119231
* @global bool $switched
119226119232
* @global string $table_prefix
119227-
* @global string $wp_template_path
119228-
* @global string $wp_stylesheet_path
119229119233
* @global WP_Object_Cache $wp_object_cache
119230119234
*
119231119235
* @return bool True on success, false if we're already on the current blog.
@@ -135031,8 +135035,7 @@ function get_stylesheet()
135031135035
*
135032135036
* @since 1.5.0
135033135037
* @since 6.4.0 Memoizes filter execution so that it only runs once for the current theme.
135034-
*
135035-
* @global string $wp_stylesheet_path Current theme stylesheet directory path.
135038+
* @since 6.4.2 Memoization removed.
135036135039
*
135037135040
* @return string Path to active theme's stylesheet directory.
135038135041
*/
@@ -135101,8 +135104,7 @@ function get_template()
135101135104
*
135102135105
* @since 1.5.0
135103135106
* @since 6.4.0 Memoizes filter execution so that it only runs once for the current theme.
135104-
*
135105-
* @global string $wp_template_path Current theme template directory path.
135107+
* @since 6.4.1 Memoization removed.
135106135108
*
135107135109
* @return string Path to active theme's template directory.
135108135110
*/
@@ -135230,8 +135232,6 @@ function locale_stylesheet()
135230135232
* @global WP_Customize_Manager $wp_customize
135231135233
* @global array $sidebars_widgets
135232135234
* @global array $wp_registered_sidebars
135233-
* @global string $wp_stylesheet_path
135234-
* @global string $wp_template_path
135235135235
*
135236135236
* @param string $stylesheet Stylesheet name.
135237135237
*/

0 commit comments

Comments
 (0)