diff --git a/admin/class-manage-fonts.php b/admin/class-manage-fonts.php index a3c1b147..a0bdf068 100644 --- a/admin/class-manage-fonts.php +++ b/admin/class-manage-fonts.php @@ -16,6 +16,7 @@ public function __construct() { } const ALLOWED_FONT_MIME_TYPES = array( + 'otf' => 'font/otf', 'ttf' => 'font/ttf', 'woff' => 'font/woff', 'woff2' => 'font/woff2', diff --git a/admin/manage-fonts/local-fonts-page.php b/admin/manage-fonts/local-fonts-page.php index 7c8e822d..21361bd2 100644 --- a/admin/manage-fonts/local-fonts-page.php +++ b/admin/manage-fonts/local-fonts-page.php @@ -37,10 +37,10 @@ function add_type_attribute( $tag, $handle, $src ) {