diff options
Diffstat (limited to 'wp-includes/fonts')
-rw-r--r-- | wp-includes/fonts/class-wp-font-face.php | 2 | ||||
-rw-r--r-- | wp-includes/fonts/class-wp-font-utils.php | 6 |
2 files changed, 4 insertions, 4 deletions
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'; |