[wp-trac] [WordPress Trac] #46290: Port from Gutenberg editor: Fix: Impossible to set empty array on editor-font-sizes.

WordPress Trac noreply at wordpress.org
Thu Feb 28 21:43:09 UTC 2019


#46290: Port from Gutenberg editor: Fix: Impossible to set empty array on editor-
font-sizes.
-------------------------------------------+----------------------
 Reporter:  jorgefilipecosta               |       Owner:  desrosj
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  5.1.1
Component:  Editor                         |     Version:  5.0
 Severity:  normal                         |  Resolution:  fixed
 Keywords:  has-patch commit dev-reviewed  |     Focuses:
-------------------------------------------+----------------------
Changes (by desrosj):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44782" 44782]:
 {{{
 #!CommitTicketReference repository="" revision="44782"
 Editor: Allow the default font size options to be removed.

 Similar to `editor-color-palette`, a theme or plugin should be able to set
 the theme support for `editor-font-sizes` to an empty array, indicating
 that no additional font sizes should be available in the block’s ‘Text
 Settings’. The current conditional was using `empty()`, which was
 incorrectly causing the default font sizes to be used instead.

 Props jorgefilipecosta, chrisvanpatten, SergeyBiryukov.
 Fixes #46290.
 }}}

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


More information about the wp-trac mailing list