Skip to content

Commit 3fed45f

Browse files
committed
Generate stubs for WordPress 6.3.3
1 parent 96fb51f commit 3fed45f

File tree

2 files changed

+138
-9
lines changed

2 files changed

+138
-9
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.3.1"
10+
"johnpbloch/wordpress": "6.3.3"
1111
},
1212
"minimum-stability": "stable",
1313
"config": {

wordpress-stubs.php

Lines changed: 137 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3018,6 +3018,8 @@ public function upgrade($plugin, $args = array())
30183018
* @since 2.8.0
30193019
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
30203020
*
3021+
* @global string $wp_version The WordPress version string.
3022+
*
30213023
* @param string[] $plugins Array of paths to plugin files relative to the plugins directory.
30223024
* @param array $args {
30233025
* Optional. Other arguments for upgrading several plugins at once.
@@ -19593,6 +19595,9 @@ public function register($hook, $callback, $priority = 0)
1959319595
public function dispatch($hook, $parameters = [])
1959419596
{
1959519597
}
19598+
public function __wakeup()
19599+
{
19600+
}
1959619601
}
1959719602
/**
1959819603
* IDNA URL encoder
@@ -20028,6 +20033,9 @@ protected function scheme_normalization()
2002820033
public function is_valid()
2002920034
{
2003020035
}
20036+
public function __wakeup()
20037+
{
20038+
}
2003120039
/**
2003220040
* Set the entire IRI. Returns true on success, false on failure (if there
2003320041
* are any invalid characters).
@@ -21292,6 +21300,9 @@ public function request($url, $headers = [], $data = [], $type = \WpOrg\Requests
2129221300
public function request_multiple($requests, $options = [])
2129321301
{
2129421302
}
21303+
public function __wakeup()
21304+
{
21305+
}
2129521306
/**
2129621307
* Merge a request's data with the default data
2129721308
*
@@ -31622,6 +31633,9 @@ public function get_all_registered($outside_init_only = \false)
3162231633
public function is_registered($pattern_name)
3162331634
{
3162431635
}
31636+
public function __wakeup()
31637+
{
31638+
}
3162531639
/**
3162631640
* Utility method to retrieve the main instance of the class.
3162731641
*
@@ -32067,6 +32081,9 @@ public function get_all_registered()
3206732081
public function is_registered($name)
3206832082
{
3206932083
}
32084+
public function __wakeup()
32085+
{
32086+
}
3207032087
/**
3207132088
* Utility method to retrieve the main instance of the class.
3207232089
*
@@ -52515,6 +52532,7 @@ protected static function filter_slugs($node, $slugs)
5251552532
* Removes insecure data from theme.json.
5251652533
*
5251752534
* @since 5.9.0
52535+
* @since 6.3.2 Preserves global styles block variations when securing styles.
5251852536
*
5251952537
* @param array $theme_json Structure to sanitize.
5252052538
* @return array Sanitized structure.
@@ -52822,6 +52840,16 @@ public function exists()
5282252840
public function parent()
5282352841
{
5282452842
}
52843+
/**
52844+
* Perform reinitialization tasks.
52845+
*
52846+
* Prevents a callback from being injected during unserialization of an object.
52847+
*
52848+
* @return void
52849+
*/
52850+
public function __wakeup()
52851+
{
52852+
}
5282552853
/**
5282652854
* Clears the cache for the theme.
5282752855
*
@@ -62421,6 +62449,8 @@ public function __construct($start, $end)
6242162449
* unquoted values will appear in the output with double-quotes.
6242262450
*
6242362451
* @since 6.2.0
62452+
* @since 6.2.1 Fix: Support for various invalid comments; attribute updates are case-insensitive.
62453+
* @since 6.3.2 Fix: Skip HTML-like content inside rawtext elements such as STYLE.
6242462454
*/
6242562455
class WP_HTML_Tag_Processor
6242662456
{
@@ -67470,16 +67500,16 @@ public function get_collection_params()
6747067500
}
6747167501
}
6747267502
/**
67473-
* Reusable blocks REST API: WP_REST_Blocks_Controller class
67503+
* Synced patterns REST API: WP_REST_Blocks_Controller class
6747467504
*
6747567505
* @package WordPress
6747667506
* @subpackage REST_API
6747767507
* @since 5.0.0
6747867508
*/
6747967509
/**
6748067510
* Controller which provides a REST endpoint for the editor to read, create,
67481-
* edit and delete reusable blocks. Blocks are stored as posts with the wp_block
67482-
* post type.
67511+
* edit, and delete synced patterns (formerly called reusable blocks).
67512+
* Patterns are stored as posts with the wp_block post type.
6748367513
*
6748467514
* @since 5.0.0
6748567515
*
@@ -67489,12 +67519,12 @@ public function get_collection_params()
6748967519
class WP_REST_Blocks_Controller extends \WP_REST_Posts_Controller
6749067520
{
6749167521
/**
67492-
* Checks if a block can be read.
67522+
* Checks if a pattern can be read.
6749367523
*
6749467524
* @since 5.0.0
6749567525
*
6749667526
* @param WP_Post $post Post object that backs the block.
67497-
* @return bool Whether the block can be read.
67527+
* @return bool Whether the pattern can be read.
6749867528
*/
6749967529
public function check_read_permission($post)
6750067530
{
@@ -67513,7 +67543,7 @@ public function filter_response_by_context($data, $context)
6751367543
{
6751467544
}
6751567545
/**
67516-
* Retrieves the block's schema, conforming to JSON Schema.
67546+
* Retrieves the pattern's schema, conforming to JSON Schema.
6751767547
*
6751867548
* @since 5.0.0
6751967549
*
@@ -86712,6 +86742,7 @@ function admin_created_user_email($text)
8671286742
*
8671386743
* @since 5.6.0
8671486744
* @since 6.2.0 Allow insecure HTTP connections for the local environment.
86745+
* @since 6.3.2 Validates the success and reject URLs to prevent javascript pseudo protocol being executed.
8671586746
*
8671686747
* @param array $request {
8671786748
* The array of request data. All arguments are optional and may be empty.
@@ -86733,6 +86764,18 @@ function admin_created_user_email($text)
8673386764
function wp_is_authorize_application_password_request_valid($request, $user)
8673486765
{
8673586766
}
86767+
/**
86768+
* Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript.
86769+
*
86770+
* @since 6.3.2
86771+
*
86772+
* @param string $url - The redirect URL to be validated.
86773+
*
86774+
* @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise.
86775+
*/
86776+
function wp_is_authorize_application_redirect_url_valid($url)
86777+
{
86778+
}
8673686779
/**
8673786780
* WordPress Widgets Administration API
8673886781
*
@@ -89321,7 +89364,8 @@ function has_blocks($post = \null)
8932189364
*
8932289365
* This test optimizes for performance rather than strict accuracy, detecting
8932389366
* whether the block type exists but not validating its structure and not checking
89324-
* reusable blocks. For strict accuracy, you should use the block parser on post content.
89367+
* synced patterns (formerly called reusable blocks). For strict accuracy,
89368+
* you should use the block parser on post content.
8932589369
*
8932689370
* @since 5.0.0
8932789371
*
@@ -89705,6 +89749,63 @@ function build_comment_query_vars_from_block($block)
8970589749
function get_comments_pagination_arrow($block, $pagination_type = 'next')
8970689750
{
8970789751
}
89752+
/**
89753+
* Strips all HTML from the content of footnotes, and sanitizes the ID.
89754+
* This function expects slashed data on the footnotes content.
89755+
*
89756+
* @access private
89757+
* @since 6.3.2
89758+
*
89759+
* @param string $footnotes JSON encoded string of an array containing the content and ID of each footnote.
89760+
* @return string Filtered content without any HTML on the footnote content and with the sanitized id.
89761+
*/
89762+
function _wp_filter_post_meta_footnotes($footnotes)
89763+
{
89764+
}
89765+
/**
89766+
* Adds the filters to filter footnotes meta field.
89767+
*
89768+
* @access private
89769+
* @since 6.3.2
89770+
*/
89771+
function _wp_footnotes_kses_init_filters()
89772+
{
89773+
}
89774+
/**
89775+
* Removes the filters that filter footnotes meta field.
89776+
*
89777+
* @access private
89778+
* @since 6.3.2
89779+
*/
89780+
function _wp_footnotes_remove_filters()
89781+
{
89782+
}
89783+
/**
89784+
* Registers the filter of footnotes meta field if the user does not have unfiltered_html capability.
89785+
*
89786+
* @access private
89787+
* @since 6.3.2
89788+
*/
89789+
function _wp_footnotes_kses_init()
89790+
{
89791+
}
89792+
/**
89793+
* Initializes footnotes meta field filters when imported data should be filtered.
89794+
*
89795+
* This filter is the last being executed on force_filtered_html_on_import.
89796+
* If the input of the filter is true it means we are in an import situation and should
89797+
* enable kses, independently of the user capabilities.
89798+
* So in that case we call _wp_footnotes_kses_init_filters;
89799+
*
89800+
* @access private
89801+
* @since 6.3.2
89802+
*
89803+
* @param string $arg Input argument of the filter.
89804+
* @return string Input argument of the filter.
89805+
*/
89806+
function _wp_footnotes_force_filtered_html_on_import_filter($arg)
89807+
{
89808+
}
8970889809
/**
8970989810
* Server-side rendering of the `core/archives` block.
8971089811
*
@@ -90538,7 +90639,8 @@ function register_block_core_image()
9053890639
* avoids unnecessary logic and filesystem lookups in the other function.
9053990640
*
9054090641
* @since 6.3.0
90541-
* @phpstan-return void
90642+
*
90643+
* @global string $wp_version The WordPress version string.
9054290644
*/
9054390645
function register_core_block_style_handles()
9054490646
{
@@ -129194,6 +129296,22 @@ function shortcode_exists($tag)
129194129296
function has_shortcode($content, $tag)
129195129297
{
129196129298
}
129299+
/**
129300+
* Returns a list of registered shortcode names found in the given content.
129301+
*
129302+
* Example usage:
129303+
*
129304+
* get_shortcode_tags_in_content( '[audio src="file.mp3"][/audio] [foo] [gallery ids="1,2,3"]' );
129305+
* // array( 'audio', 'gallery' )
129306+
*
129307+
* @since 6.3.2
129308+
*
129309+
* @param string $content The content to check.
129310+
* @return string[] An array of registered shortcode names found in the content.
129311+
*/
129312+
function get_shortcode_tags_in_content($content)
129313+
{
129314+
}
129197129315
/**
129198129316
* Searches content for shortcodes and filter shortcodes through their hooks.
129199129317
*
@@ -132024,6 +132142,17 @@ function wp_attach_theme_preview_middleware()
132024132142
function wp_block_theme_activate_nonce()
132025132143
{
132026132144
}
132145+
/**
132146+
* Add filters and actions to enable Block Theme Previews in the Site Editor.
132147+
*
132148+
* The filters and actions should be added after `pluggable.php` is included as they may
132149+
* trigger code that uses `current_user_can()` which requires functionality from `pluggable.php`.
132150+
*
132151+
* @since 6.3.2
132152+
*/
132153+
function wp_initialize_theme_preview_hooks()
132154+
{
132155+
}
132027132156
/**
132028132157
* Sets a custom slug when creating auto-draft template parts.
132029132158
*

0 commit comments

Comments
 (0)