[wp-trac] [WordPress Trac] #56078: PHP Warning when adding fonts to fontFamilies in wp_global_styles post

WordPress Trac noreply at wordpress.org
Fri Nov 18 01:36:42 UTC 2022


#56078: PHP Warning when adding fonts to fontFamilies in wp_global_styles post
-----------------------------------+---------------------------------------
 Reporter:  domainsupport          |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  6.2
Component:  Editor                 |     Version:  6.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch needs-       |     Focuses:  administration, template
  testing                          |
-----------------------------------+---------------------------------------

Comment (by azaozz):

 Replying to [comment:9 domainsupport]:
 > Sure ... so here's the `post_content` of a...

 Thanks, this is helpful.

 I think what what @audrasjb meant was to show an example of the code that
 adds these extra fonts.

 > injecting additional Google Fonts to the Full Site Editor global styles
 by adding elements to ['settings']['typography']['fontFamilies'] of the
 wp_global_styles post type in the database

 Hmmm, not sure if this is supported/expected/documented way of adding more
 fonts? :)

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


More information about the wp-trac mailing list