[wp-trac] [WordPress Trac] #59352: Inline images inserted in the block editor can erroneously get fetchpriority=high

WordPress Trac noreply at wordpress.org
Mon Apr 22 20:33:47 UTC 2024


#59352: Inline images inserted in the block editor can erroneously get
fetchpriority=high
---------------------------------------------+--------------------------
 Reporter:  westonruter                      |       Owner:  flixos90
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.5
Component:  Media                            |     Version:  6.3
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
---------------------------------------------+--------------------------

Comment (by audrasjb):

 In [changeset:"58033" 58033]:
 {{{
 #!CommitTicketReference repository="" revision="58033"
 Media: Prevent division by zero in
 `wp_img_tag_add_width_and_height_attr()`.

 This changesets adds a check for `$size_array` values to prevent a
 potential division by zero.
 Follow-up to [57294].

 Props jdekhtiar.
 Fixes #61054.
 See #59352.
 }}}

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


More information about the wp-trac mailing list