[wp-trac] [WordPress Trac] #59858: A typo in the parameter description of the wp_print_font_faces function

WordPress Trac noreply at wordpress.org
Thu Nov 9 04:16:30 UTC 2023


#59858: A typo in the parameter description of the wp_print_font_faces function
--------------------------+-----------------------------
 Reporter:  tmatsuur      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.4
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 I was looking at the newly added functions and found something strange.

 Line 25 of file wp-includes/fonts.php
 {{{
  *             @type string          $font_style              Optional.
 The font-style property. Default 'normal'.
 }}}

 Here it is `$font_style`, but I think the correct name is `$font-style`.

 For confirmation, "font_style" => "oblique 20deg 50deg" produces the
 output "font-style:normal;".

 On the other hand, when "font-style" => "oblique 20deg 50deg" is written,
 the output is changed to "font-style:oblique 20deg 50deg;" as expected.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59858>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list