diff -r be944660c56a -r 3d72ae0968f4 wp/wp-includes/formatting.php --- a/wp/wp-includes/formatting.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-includes/formatting.php Tue Sep 27 16:37:53 2022 +0200 @@ -371,11 +371,11 @@ } /** - * Search for disabled element tags. Push element to stack on tag open and pop - * on tag close. - * - * Assumes first char of $text is tag opening and last char is tag closing. - * Assumes second char of $text is optionally '/' to indicate closing as in . + * Searches for disabled element tags. Pushes element to stack on tag open + * and pops on tag close. + * + * Assumes first char of `$text` is tag opening and last char is tag closing. + * Assumes second char of `$text` is optionally `/` to indicate closing as in ``. * * @since 2.9.0 * @access private @@ -429,179 +429,179 @@ * * A group of regex replaces used to identify text formatted with newlines and * replace double line breaks with HTML paragraph tags. The remaining line breaks - * after conversion become <
> tags, unless $br is set to '0' or 'false'. + * after conversion become `
` tags, unless `$br` is set to '0' or 'false'. * * @since 0.71 * - * @param string $pee The text which has to be formatted. - * @param bool $br Optional. If set, this will convert all remaining line breaks - * after paragraphing. Line breaks within `' )` @@ -5372,7 +5453,7 @@ } /** - * Internal helper function to sanitize a string from user input or from the db + * Internal helper function to sanitize a string from user input or from the database. * * @since 4.7.0 * @access private @@ -5420,7 +5501,7 @@ } /** - * i18n friendly version of basename() + * i18n-friendly version of basename(). * * @since 3.1.0 * @@ -5463,12 +5544,12 @@ // phpcs:enable /** - * Sanitize a mime type + * Sanitizes a mime type * * @since 3.1.3 * - * @param string $mime_type Mime type - * @return string Sanitized mime type + * @param string $mime_type Mime type. + * @return string Sanitized mime type. */ function sanitize_mime_type( $mime_type ) { $sani_mime_type = preg_replace( '/[^-+*.a-zA-Z0-9\/]/', '', $mime_type ); @@ -5484,7 +5565,7 @@ } /** - * Sanitize space or carriage return separated URLs that are used to send trackbacks. + * Sanitizes space or carriage return separated URLs that are used to send trackbacks. * * @since 3.4.0 * @@ -5524,7 +5605,7 @@ * @since 5.5.0 Non-string values are left untouched. * * @param string|array $value String or array of data to slash. - * @return string|array Slashed $value. + * @return string|array Slashed `$value`. */ function wp_slash( $value ) { if ( is_array( $value ) ) { @@ -5547,14 +5628,14 @@ * @since 3.6.0 * * @param string|array $value String or array of data to unslash. - * @return string|array Unslashed $value. + * @return string|array Unslashed `$value`. */ function wp_unslash( $value ) { return stripslashes_deep( $value ); } /** - * Extract and return the first URL from passed content. + * Extracts and returns the first URL from passed content. * * @since 3.6.0 * @@ -5607,7 +5688,7 @@ } /** - * Print the important emoji-related styles. + * Prints the important emoji-related styles. * * @since 4.2.0 */ @@ -5630,7 +5711,7 @@ box-shadow: none !important; height: 1em !important; width: 1em !important; - margin: 0 .07em !important; + margin: 0 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; @@ -5640,7 +5721,7 @@ } /** - * Print the inline Emoji detection script if it is not already printed. + * Prints the inline Emoji detection script if it is not already printed. * * @since 4.2.0 */ @@ -5672,7 +5753,7 @@ * * @param string $url The emoji base URL for png images. */ - 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/13.1.0/72x72/' ), + 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/14.0.0/72x72/' ), /** * Filters the extension of the emoji png files. @@ -5690,7 +5771,7 @@ * * @param string $url The emoji base URL for svg images. */ - 'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/13.1.0/svg/' ), + 'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/14.0.0/svg/' ), /** * Filters the extension of the emoji SVG files. @@ -5702,8 +5783,7 @@ 'svgExt' => apply_filters( 'emoji_svg_ext', '.svg' ), ); - $version = 'ver=' . get_bloginfo( 'version' ); - $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/javascript"'; + $version = 'ver=' . get_bloginfo( 'version' ); if ( SCRIPT_DEBUG ) { $settings['source'] = array( @@ -5712,40 +5792,21 @@ /** This filter is documented in wp-includes/class.wp-scripts.php */ 'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ), ); - - ?> - > - window._wpemojiSettings = ; - - - apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ), ); - - /* - * If you're looking at a src version of this file, you'll see an "include" - * statement below. This is used by the `npm run build` process to directly - * include a minified version of wp-emoji-loader.js, instead of using the - * readfile() method from above. - * - * If you're looking at a build version of this file, you'll see a string of - * minified JavaScript. If you need to debug it, please turn on SCRIPT_DEBUG - * and edit wp-emoji-loader.js directly. - */ - ?> - > - window._wpemojiSettings = ; - !function(e,a,t){var n,r,o,i=a.createElement("canvas"),p=i.getContext&&i.getContext("2d");function s(e,t){var a=String.fromCharCode;p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,e),0,0);e=i.toDataURL();return p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,t),0,0),e===i.toDataURL()}function c(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(o=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},r=0;r -