diff --git a/VERSION b/VERSION index 133cad2..f22d756 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.4.3 +6.5.0 diff --git a/wordpress-tests-stubs.php b/wordpress-tests-stubs.php index 0faab34..22ef512 100644 --- a/wordpress-tests-stubs.php +++ b/wordpress-tests-stubs.php @@ -1216,6 +1216,11 @@ public function stream_metadata($path, $option, $value) * Creates a directory. * * @see streamWrapper::mkdir + * + * @param string $path Directory which should be created. + * @param int $mode The value passed to mkdir(). + * @param int $options A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE. + * @return bool True on success, false on failure. */ public function mkdir($path, $mode, $options) { @@ -3568,7 +3573,7 @@ public static function forcingKnownBugs() { } } -/* +/** * Helper class for testing code that involves actions and filters. * * Typical use: @@ -3725,7 +3730,7 @@ public function __call($name, $arguments) { } } -/* +/** * A simple manually-instrumented profiler for WordPress. * * This records basic execution time, and a summary of the actions and SQL queries run within each block. @@ -3976,6 +3981,15 @@ function _wp_rest_server_class_filter() function _unhook_block_registration() { } +/** + * After the init action has been run once, trying to re-register font collections can cause + * errors. To avoid this, unhook the font registration functions. + * + * @since 6.5.0 + */ +function _unhook_font_registration() +{ +} /** * Helper method to return the global phpmailer instance defined in the bootstrap * @@ -4741,16 +4755,16 @@ function tests_make_plural_form_function($nplurals, $expression) * Returns a string of the required length containing random characters. Note that * the maximum possible string length is 32. * - * @param int $len Optional. The required length. Default 32. + * @param int $length Optional. The required length. Default 32. * @return string The string. */ -function rand_str($len = 32) +function rand_str($length = 32) { } /** * Returns a string of the required length containing random characters. * - * @param int $len The required length. + * @param int $length The required length. * @return string The string. */ function rand_long_str($length)