Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.3.0"
"johnpbloch/wordpress": "6.3.2"
},
"minimum-stability": "stable",
"config": {
Expand Down
133 changes: 132 additions & 1 deletion wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2996,6 +2996,8 @@ public function upgrade($plugin, $args = array())
* @since 2.8.0
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
*
* @global string $wp_version The WordPress version string.
*
* @param string[] $plugins Array of paths to plugin files relative to the plugins directory.
* @param array $args {
* Optional. Other arguments for upgrading several plugins at once.
Expand Down Expand Up @@ -19507,6 +19509,9 @@ public function register($hook, $callback, $priority = 0)
public function dispatch($hook, $parameters = [])
{
}
public function __wakeup()
{
}
}
/**
* IDNA URL encoder
Expand Down Expand Up @@ -19942,6 +19947,9 @@ protected function scheme_normalization()
public function is_valid()
{
}
public function __wakeup()
{
}
/**
* Set the entire IRI. Returns true on success, false on failure (if there
* are any invalid characters).
Expand Down Expand Up @@ -21205,6 +21213,9 @@ public function request($url, $headers = [], $data = [], $type = \WpOrg\Requests
public function request_multiple($requests, $options = [])
{
}
public function __wakeup()
{
}
/**
* Merge a request's data with the default data
*
Expand Down Expand Up @@ -31520,6 +31531,9 @@ public function get_all_registered($outside_init_only = \false)
public function is_registered($pattern_name)
{
}
public function __wakeup()
{
}
/**
* Utility method to retrieve the main instance of the class.
*
Expand Down Expand Up @@ -31965,6 +31979,9 @@ public function get_all_registered()
public function is_registered($name)
{
}
public function __wakeup()
{
}
/**
* Utility method to retrieve the main instance of the class.
*
Expand Down Expand Up @@ -32547,7 +32564,9 @@ class WP_Classic_To_Block_Menu_Converter
* @since 6.3.0
*
* @param WP_Term $menu The Menu term object of the menu to convert.
* @return string the serialized and normalized parsed blocks.
* @return string|WP_Error The serialized and normalized parsed blocks on success,
* an empty string when there are no menus to convert,
* or WP_Error on invalid menu.
*/
public static function convert($menu)
{
Expand Down Expand Up @@ -52355,6 +52374,7 @@ protected static function filter_slugs($node, $slugs)
* Removes insecure data from theme.json.
*
* @since 5.9.0
* @since 6.3.2 Preserves global styles block variations when securing styles.
*
* @param array $theme_json Structure to sanitize.
* @return array Sanitized structure.
Expand Down Expand Up @@ -52661,6 +52681,16 @@ public function exists()
public function parent()
{
}
/**
* Perform reinitialization tasks.
*
* Prevents a callback from being injected during unserialization of an object.
*
* @return void
*/
public function __wakeup()
{
}
/**
* Clears the cache for the theme.
*
Expand Down Expand Up @@ -62229,6 +62259,8 @@ public function __construct($start, $end)
* unquoted values will appear in the output with double-quotes.
*
* @since 6.2.0
* @since 6.2.1 Fix: Support for various invalid comments; attribute updates are case-insensitive.
* @since 6.3.2 Fix: Skip HTML-like content inside rawtext elements such as STYLE.
*/
class WP_HTML_Tag_Processor
{
Expand Down Expand Up @@ -86352,6 +86384,7 @@ function admin_created_user_email($text)
*
* @since 5.6.0
* @since 6.2.0 Allow insecure HTTP connections for the local environment.
* @since 6.3.2 Validates the success and reject URLs to prevent javascript pseudo protocol being executed.
*
* @param array $request {
* The array of request data. All arguments are optional and may be empty.
Expand All @@ -86373,6 +86406,18 @@ function admin_created_user_email($text)
function wp_is_authorize_application_password_request_valid($request, $user)
{
}
/**
* Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript.
*
* @since 6.3.2
*
* @param string $url - The redirect URL to be validated.
*
* @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise.
*/
function wp_is_authorize_application_redirect_url_valid($url)
{
}
/**
* WordPress Widgets Administration API
*
Expand Down Expand Up @@ -89311,6 +89356,63 @@ function build_comment_query_vars_from_block($block)
function get_comments_pagination_arrow($block, $pagination_type = 'next')
{
}
/**
* Strips all HTML from the content of footnotes, and sanitizes the ID.
* This function expects slashed data on the footnotes content.
*
* @access private
* @since 6.3.2
*
* @param string $footnotes JSON encoded string of an array containing the content and ID of each footnote.
* @return string Filtered content without any HTML on the footnote content and with the sanitized id.
*/
function _wp_filter_post_meta_footnotes($footnotes)
{
}
/**
* Adds the filters to filter footnotes meta field.
*
* @access private
* @since 6.3.2
*/
function _wp_footnotes_kses_init_filters()
{
}
/**
* Removes the filters that filter footnotes meta field.
*
* @access private
* @since 6.3.2
*/
function _wp_footnotes_remove_filters()
{
}
/**
* Registers the filter of footnotes meta field if the user does not have unfiltered_html capability.
*
* @access private
* @since 6.3.2
*/
function _wp_footnotes_kses_init()
{
}
/**
* Initializes footnotes meta field filters when imported data should be filtered.
*
* This filter is the last being executed on force_filtered_html_on_import.
* If the input of the filter is true it means we are in an import situation and should
* enable kses, independently of the user capabilities.
* So in that case we call _wp_footnotes_kses_init_filters;
*
* @access private
* @since 6.3.2
*
* @param string $arg Input argument of the filter.
* @return string Input argument of the filter.
*/
function _wp_footnotes_force_filtered_html_on_import_filter($arg)
{
}
/**
* Server-side rendering of the `core/archives` block.
*
Expand Down Expand Up @@ -90140,6 +90242,8 @@ function register_block_core_image()
* avoids unnecessary logic and filesystem lookups in the other function.
*
* @since 6.3.0
*
* @global string $wp_version The WordPress version string.
*/
function register_core_block_style_handles()
{
Expand Down Expand Up @@ -128516,6 +128620,22 @@ function shortcode_exists($tag)
function has_shortcode($content, $tag)
{
}
/**
* Returns a list of registered shortcode names found in the given content.
*
* Example usage:
*
* get_shortcode_tags_in_content( '[audio src="file.mp3"][/audio] [foo] [gallery ids="1,2,3"]' );
* // array( 'audio', 'gallery' )
*
* @since 6.3.2
*
* @param string $content The content to check.
* @return string[] An array of registered shortcode names found in the content.
*/
function get_shortcode_tags_in_content($content)
{
}
/**
* Searches content for shortcodes and filter shortcodes through their hooks.
*
Expand Down Expand Up @@ -131323,6 +131443,17 @@ function wp_attach_theme_preview_middleware()
function wp_block_theme_activate_nonce()
{
}
/**
* Add filters and actions to enable Block Theme Previews in the Site Editor.
*
* The filters and actions should be added after `pluggable.php` is included as they may
* trigger code that uses `current_user_can()` which requires functionality from `pluggable.php`.
*
* @since 6.3.2
*/
function wp_initialize_theme_preview_hooks()
{
}
/**
* Sets a custom slug when creating auto-draft template parts.
*
Expand Down