Skip to content

Commit f22b00c

Browse files
authored
Generate stubs for WordPress 6.3.2 (#108)
1 parent e53228e commit f22b00c

File tree

2 files changed

+133
-2
lines changed

2 files changed

+133
-2
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.0"
10+
"johnpbloch/wordpress": "6.3.2"
1111
},
1212
"minimum-stability": "stable",
1313
"config": {

wordpress-stubs.php

Lines changed: 132 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2996,6 +2996,8 @@ public function upgrade($plugin, $args = array())
29962996
* @since 2.8.0
29972997
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
29982998
*
2999+
* @global string $wp_version The WordPress version string.
3000+
*
29993001
* @param string[] $plugins Array of paths to plugin files relative to the plugins directory.
30003002
* @param array $args {
30013003
* Optional. Other arguments for upgrading several plugins at once.
@@ -19507,6 +19509,9 @@ public function register($hook, $callback, $priority = 0)
1950719509
public function dispatch($hook, $parameters = [])
1950819510
{
1950919511
}
19512+
public function __wakeup()
19513+
{
19514+
}
1951019515
}
1951119516
/**
1951219517
* IDNA URL encoder
@@ -19942,6 +19947,9 @@ protected function scheme_normalization()
1994219947
public function is_valid()
1994319948
{
1994419949
}
19950+
public function __wakeup()
19951+
{
19952+
}
1994519953
/**
1994619954
* Set the entire IRI. Returns true on success, false on failure (if there
1994719955
* are any invalid characters).
@@ -21205,6 +21213,9 @@ public function request($url, $headers = [], $data = [], $type = \WpOrg\Requests
2120521213
public function request_multiple($requests, $options = [])
2120621214
{
2120721215
}
21216+
public function __wakeup()
21217+
{
21218+
}
2120821219
/**
2120921220
* Merge a request's data with the default data
2121021221
*
@@ -31520,6 +31531,9 @@ public function get_all_registered($outside_init_only = \false)
3152031531
public function is_registered($pattern_name)
3152131532
{
3152231533
}
31534+
public function __wakeup()
31535+
{
31536+
}
3152331537
/**
3152431538
* Utility method to retrieve the main instance of the class.
3152531539
*
@@ -31965,6 +31979,9 @@ public function get_all_registered()
3196531979
public function is_registered($name)
3196631980
{
3196731981
}
31982+
public function __wakeup()
31983+
{
31984+
}
3196831985
/**
3196931986
* Utility method to retrieve the main instance of the class.
3197031987
*
@@ -32547,7 +32564,9 @@ class WP_Classic_To_Block_Menu_Converter
3254732564
* @since 6.3.0
3254832565
*
3254932566
* @param WP_Term $menu The Menu term object of the menu to convert.
32550-
* @return string the serialized and normalized parsed blocks.
32567+
* @return string|WP_Error The serialized and normalized parsed blocks on success,
32568+
* an empty string when there are no menus to convert,
32569+
* or WP_Error on invalid menu.
3255132570
*/
3255232571
public static function convert($menu)
3255332572
{
@@ -52355,6 +52374,7 @@ protected static function filter_slugs($node, $slugs)
5235552374
* Removes insecure data from theme.json.
5235652375
*
5235752376
* @since 5.9.0
52377+
* @since 6.3.2 Preserves global styles block variations when securing styles.
5235852378
*
5235952379
* @param array $theme_json Structure to sanitize.
5236052380
* @return array Sanitized structure.
@@ -52661,6 +52681,16 @@ public function exists()
5266152681
public function parent()
5266252682
{
5266352683
}
52684+
/**
52685+
* Perform reinitialization tasks.
52686+
*
52687+
* Prevents a callback from being injected during unserialization of an object.
52688+
*
52689+
* @return void
52690+
*/
52691+
public function __wakeup()
52692+
{
52693+
}
5266452694
/**
5266552695
* Clears the cache for the theme.
5266652696
*
@@ -62229,6 +62259,8 @@ public function __construct($start, $end)
6222962259
* unquoted values will appear in the output with double-quotes.
6223062260
*
6223162261
* @since 6.2.0
62262+
* @since 6.2.1 Fix: Support for various invalid comments; attribute updates are case-insensitive.
62263+
* @since 6.3.2 Fix: Skip HTML-like content inside rawtext elements such as STYLE.
6223262264
*/
6223362265
class WP_HTML_Tag_Processor
6223462266
{
@@ -86352,6 +86384,7 @@ function admin_created_user_email($text)
8635286384
*
8635386385
* @since 5.6.0
8635486386
* @since 6.2.0 Allow insecure HTTP connections for the local environment.
86387+
* @since 6.3.2 Validates the success and reject URLs to prevent javascript pseudo protocol being executed.
8635586388
*
8635686389
* @param array $request {
8635786390
* The array of request data. All arguments are optional and may be empty.
@@ -86373,6 +86406,18 @@ function admin_created_user_email($text)
8637386406
function wp_is_authorize_application_password_request_valid($request, $user)
8637486407
{
8637586408
}
86409+
/**
86410+
* Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript.
86411+
*
86412+
* @since 6.3.2
86413+
*
86414+
* @param string $url - The redirect URL to be validated.
86415+
*
86416+
* @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise.
86417+
*/
86418+
function wp_is_authorize_application_redirect_url_valid($url)
86419+
{
86420+
}
8637686421
/**
8637786422
* WordPress Widgets Administration API
8637886423
*
@@ -89311,6 +89356,63 @@ function build_comment_query_vars_from_block($block)
8931189356
function get_comments_pagination_arrow($block, $pagination_type = 'next')
8931289357
{
8931389358
}
89359+
/**
89360+
* Strips all HTML from the content of footnotes, and sanitizes the ID.
89361+
* This function expects slashed data on the footnotes content.
89362+
*
89363+
* @access private
89364+
* @since 6.3.2
89365+
*
89366+
* @param string $footnotes JSON encoded string of an array containing the content and ID of each footnote.
89367+
* @return string Filtered content without any HTML on the footnote content and with the sanitized id.
89368+
*/
89369+
function _wp_filter_post_meta_footnotes($footnotes)
89370+
{
89371+
}
89372+
/**
89373+
* Adds the filters to filter footnotes meta field.
89374+
*
89375+
* @access private
89376+
* @since 6.3.2
89377+
*/
89378+
function _wp_footnotes_kses_init_filters()
89379+
{
89380+
}
89381+
/**
89382+
* Removes the filters that filter footnotes meta field.
89383+
*
89384+
* @access private
89385+
* @since 6.3.2
89386+
*/
89387+
function _wp_footnotes_remove_filters()
89388+
{
89389+
}
89390+
/**
89391+
* Registers the filter of footnotes meta field if the user does not have unfiltered_html capability.
89392+
*
89393+
* @access private
89394+
* @since 6.3.2
89395+
*/
89396+
function _wp_footnotes_kses_init()
89397+
{
89398+
}
89399+
/**
89400+
* Initializes footnotes meta field filters when imported data should be filtered.
89401+
*
89402+
* This filter is the last being executed on force_filtered_html_on_import.
89403+
* If the input of the filter is true it means we are in an import situation and should
89404+
* enable kses, independently of the user capabilities.
89405+
* So in that case we call _wp_footnotes_kses_init_filters;
89406+
*
89407+
* @access private
89408+
* @since 6.3.2
89409+
*
89410+
* @param string $arg Input argument of the filter.
89411+
* @return string Input argument of the filter.
89412+
*/
89413+
function _wp_footnotes_force_filtered_html_on_import_filter($arg)
89414+
{
89415+
}
8931489416
/**
8931589417
* Server-side rendering of the `core/archives` block.
8931689418
*
@@ -90140,6 +90242,8 @@ function register_block_core_image()
9014090242
* avoids unnecessary logic and filesystem lookups in the other function.
9014190243
*
9014290244
* @since 6.3.0
90245+
*
90246+
* @global string $wp_version The WordPress version string.
9014390247
*/
9014490248
function register_core_block_style_handles()
9014590249
{
@@ -128516,6 +128620,22 @@ function shortcode_exists($tag)
128516128620
function has_shortcode($content, $tag)
128517128621
{
128518128622
}
128623+
/**
128624+
* Returns a list of registered shortcode names found in the given content.
128625+
*
128626+
* Example usage:
128627+
*
128628+
* get_shortcode_tags_in_content( '[audio src="file.mp3"][/audio] [foo] [gallery ids="1,2,3"]' );
128629+
* // array( 'audio', 'gallery' )
128630+
*
128631+
* @since 6.3.2
128632+
*
128633+
* @param string $content The content to check.
128634+
* @return string[] An array of registered shortcode names found in the content.
128635+
*/
128636+
function get_shortcode_tags_in_content($content)
128637+
{
128638+
}
128519128639
/**
128520128640
* Searches content for shortcodes and filter shortcodes through their hooks.
128521128641
*
@@ -131323,6 +131443,17 @@ function wp_attach_theme_preview_middleware()
131323131443
function wp_block_theme_activate_nonce()
131324131444
{
131325131445
}
131446+
/**
131447+
* Add filters and actions to enable Block Theme Previews in the Site Editor.
131448+
*
131449+
* The filters and actions should be added after `pluggable.php` is included as they may
131450+
* trigger code that uses `current_user_can()` which requires functionality from `pluggable.php`.
131451+
*
131452+
* @since 6.3.2
131453+
*/
131454+
function wp_initialize_theme_preview_hooks()
131455+
{
131456+
}
131326131457
/**
131327131458
* Sets a custom slug when creating auto-draft template parts.
131328131459
*

0 commit comments

Comments
 (0)