Make WordPress Core

Opened 12 months ago

Closed 11 months ago

Last modified 11 months ago

#52449 closed defect (bug) (fixed)

Can't change font size with 5.6.1 paragraph block

Reported by: sterndata Owned by: desrosj
Milestone: 5.6.2 Priority: normal
Severity: major Version: 5.6.1
Component: Editor Keywords:
Focuses: Cc:


If I select a font size from the dropdown, it just reverts to "default". This seems to be a 5.6.1 issue. There are at least a couple of reports of this in the forums.


Attachments (1)

patch.diff (996 bytes) - added by inc2734 12 months ago.

Download all attachments as: .zip

Change History (20)

#1 @SergeyBiryukov
12 months ago

  • Milestone changed from Awaiting Review to 5.6.2

#3 follow-up: @hellofromTonya
12 months ago

Related to #52431 where a fix is ready for Twenty Twenty-One theme.

This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.

12 months ago

#5 @mwhiteley16
12 months ago

Is this specific to Twenty Twenty-One theme? I'm having this issue in 5.6.1 on all the sites I test (I use Genesis and register custom font sizes using add_theme_support editor-font-sizes).

#6 @hellofromTonya
12 months ago

Thank you for providing more information @mwhiteley16! It does appear to be a regression.

#7 @sterndata
12 months ago

This happens on twentyfourteen, as well, so I think it's a fairly general issue.

#8 @tmphoto2
12 months ago

This happened to me on my site using a different theme - All text which had been changed reverted back to default size and could not be edited by selecting different sizes. I contacted my host who rolled WordPress back to 5.5.3 and i can now edit text again! Good luck.

Last edited 12 months ago by tmphoto2 (previous) (diff)

12 months ago

#9 @inc2734
12 months ago

The reason why the text size is not reflected in the choices is that the first argument of min() is missing px.

The reason why the text does not reflect the font size when you select an option is that it refers to selectedItem.style.

For the first problem, I threw a pull request to Gutenberg.

The second problem has probably been fixed in the latest version of Gutenberg.

#10 @duncan1967
12 months ago

Confirmed happens on Astra as well. Tested on two different WordPress 5.6.1 installations using different themes.

Workaround: manually adding the required style in the block's "Advanced - Additional CSS" (e.g. has-medium-font-size for medium fonts) displays correctly on the front end, but the change is not visible in Gutenberg.

#11 @juanwp22
12 months ago

Good morning, the problem persists, is there any temporary solution?

#12 in reply to: ↑ 3 @SergeyBiryukov
12 months ago

Replying to hellofromTonya:

Related to #52431 where a fix is ready for Twenty Twenty-One theme.

Just to clarify, that Twenty Twenty-One ticket is about the code block and this one is about a regression in the paragraph block in 5.6.1, so I don't think they are related.

#13 @lurmadec
11 months ago

I'm using a child theme of Olsen-Light and am experiencing the same issue. If I try to change the font size to "Medium" it reverts back to "Default". As a workaround, I found if I enter 20 in the "Custom" pulldown, the font field changes to "Medium".

#14 @SergeyBiryukov
11 months ago

#52507 was marked as a duplicate.

#15 @SergeyBiryukov
11 months ago

#52508 was marked as a duplicate.

#16 @squarecandy
11 months ago

I also experienced this today trying out Gutenberg with a custom theme that was built around 4 years ago. Same as @lurmadec - the custom size number field works, but not the small/med/large/etc drop down. And if you hit the exact number for the named size, it fills it in.

#17 @audrasjb
11 months ago

#52522 was marked as a duplicate.

#18 @desrosj
11 months ago

  • Owner set to desrosj
  • Resolution set to fixed
  • Status changed from new to closed

In 50376:

Editor: Update block editor dependencies for 5.6.2.

This updates several packages to their latest patch versions to fix bugs discovered in the 5.6 branch.

@wordpress/block-directory to 1.17.8
@wordpress/block-editor to 5.1.7
@wordpress/block-library to 2.26.8
@wordpress/components to 11.1.5
@wordpress/core-data to 2.24.4
@wordpress/edit-post to 3.25.8
@wordpress/editor to 9.24.7
@wordpress/format-library to 1.25.7
@wordpress/list-reusable-blocks to 1.24.5
@wordpress/media-utils to 1.18.1
@wordpress/nux to 3.23.5
@wordpress/reusable-blocks to 1.0.7
@wordpress/server-side-render to 1.19.5

Props isabel_brison, talldanwp, youknowriad, freewebmentor, sterndata, inc2734, itsjonq, jorgefilipecosta, aristath, nosolosw, mattwiebe, addiestavlo, kevin940726, noisysocks, aaronrobertshaw, glendaviesnz, gwwar, bernhard-reiter, paaljoachim.
Fixes #52396, #52449, #52553.

#19 @desrosj
11 months ago

#52602 was marked as a duplicate.

Note: See TracTickets for help on using tickets.