[wp-trac] [WordPress Trac] #60263: Fluid typography: PHP division by zero error when theme.json min and max viewport widths are equal

WordPress Trac noreply at wordpress.org
Tue Jan 23 05:56:05 UTC 2024


#60263: Fluid typography: PHP division by zero error when theme.json min and max
viewport widths are equal
-------------------------------------------------+-------------------------
 Reporter:  ramonopoly                           |       Owner:
                                                 |  isabel_brison
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.5
Component:  Editor                               |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests gutenberg-  |     Focuses:
  merge                                          |
-------------------------------------------------+-------------------------
Changes (by isabel_brison):

 * owner:  (none) => isabel_brison
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57329" 57329]:
 {{{
 #!CommitTicketReference repository="" revision="57329"
 Editor: fix fluid font division by zero error when min and max viewport
 widths are equal.

 Fixes a division error by returning null when `minViewportWidth` -
 `maxViewportWidth` is zero in `wp_get_computed_fluid_typography_value`.

 Props ramonopoly, mukesh27, andrewserong, audrasjb.
 Fixes #60263.
 }}}

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


More information about the wp-trac mailing list