[wp-trac] [WordPress Trac] #60509: Font Collection: Font name and description are not translatable

WordPress Trac noreply at wordpress.org
Thu Feb 15 13:45:24 UTC 2024


#60509: Font Collection: Font name and description are not translatable
--------------------------+---------------------
 Reporter:  wildworks     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.5
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by mmaattiiaass):

 {{{
 wp_register_font_collection(
   $slug: string,
   $data: array<{ url?: string, name: string, description?: string,
 font_families?: array, categories?: array}>
 }}}

 Looks good, but, using this format the extenders could provide `url` and
 `font-families` at the same time. That would require extra checking and
 could be confusing.

 What do you think of removing `url` and make `font_families` accept both a
 string (an URL to a json file) or an array (a list of font families)?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60509#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list