wp core update 6.6
This commit is contained in:
@@ -256,7 +256,7 @@ class WP_Font_Face {
|
||||
*
|
||||
* @since 6.4.0
|
||||
*
|
||||
* @param array $font_faces The font-faces to generate @font-face CSS styles.
|
||||
* @param array[] $font_faces The font-faces to generate @font-face CSS styles.
|
||||
* @return string The `@font-face` CSS styles.
|
||||
*/
|
||||
private function get_css( $font_faces ) {
|
||||
|
||||
@@ -221,8 +221,8 @@ class WP_Font_Utils {
|
||||
*
|
||||
* @since 6.5.0
|
||||
*
|
||||
* @param mixed $value The value to sanitize.
|
||||
* @param mixed $sanitizer The sanitizer function to apply.
|
||||
* @param mixed $value The value to sanitize.
|
||||
* @param callable $sanitizer The sanitizer function to apply.
|
||||
* @return mixed The sanitized value.
|
||||
*/
|
||||
private static function apply_sanitizer( $value, $sanitizer ) {
|
||||
@@ -244,7 +244,7 @@ class WP_Font_Utils {
|
||||
*
|
||||
* @access private
|
||||
*
|
||||
* @return array A collection of mime types keyed by file extension.
|
||||
* @return string[] A collection of mime types keyed by file extension.
|
||||
*/
|
||||
public static function get_allowed_font_mime_types() {
|
||||
$php_7_ttf_mime_type = PHP_VERSION_ID >= 70300 ? 'application/font-sfnt' : 'application/x-font-ttf';
|
||||
|
||||
Reference in New Issue
Block a user