Make WordPress Core

Changeset 44782


Ignore:
Timestamp:
02/28/2019 09:43:04 PM (6 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.