diff options
Diffstat (limited to '')
-rw-r--r-- | wp-includes/fonts.php | 6 | ||||
-rw-r--r-- | wp-includes/fonts/class-wp-font-face.php | 2 | ||||
-rw-r--r-- | wp-includes/fonts/class-wp-font-utils.php | 6 |
3 files changed, 8 insertions, 6 deletions
diff --git a/wp-includes/fonts.php b/wp-includes/fonts.php index 0d7cff5..4e286b7 100644 --- a/wp-includes/fonts.php +++ b/wp-includes/fonts.php @@ -15,11 +15,13 @@ * @param array[][] $fonts { * Optional. The font-families and their font faces. Default empty array. * - * @type array { + * @type array ...$0 { * An indexed or associative (keyed by font-family) array of font variations for this font-family. * Each font face has the following structure. * - * @type array { + * @type array ...$0 { + * The font face properties. + * * @type string $font-family The font-family property. * @type string|string[] $src The URL(s) to each resource containing the font data. * @type string $font-style Optional. The font-style property. Default 'normal'. diff --git a/wp-includes/fonts/class-wp-font-face.php b/wp-includes/fonts/class-wp-font-face.php index 974e13e..50d0268 100644 --- a/wp-includes/fonts/class-wp-font-face.php +++ b/wp-includes/fonts/class-wp-font-face.php @@ -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 ) { diff --git a/wp-includes/fonts/class-wp-font-utils.php b/wp-includes/fonts/class-wp-font-utils.php index 6e91440..0ec36ab 100644 --- a/wp-includes/fonts/class-wp-font-utils.php +++ b/wp-includes/fonts/class-wp-font-utils.php @@ -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'; |