Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #58815


Ignore:
Timestamp:
07/17/2023 03:57:58 AM (22 months ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58815

    • Property Component changed from General to Editor
  • Ticket #58815 – Description

    initial v2  
    1 Is add_theme_support('wp-block-styles') being deprecated in WP 6.3?  If not, maybe it needs to be updated.
     1Is `add_theme_support('wp-block-styles')` being deprecated in WP 6.3?  If not, maybe it needs to be updated.
    22
    33The extra block styles include margin settings, for example
     4{{{
    45.wp-block-image {
    56   margin: 0 0 1em;
    67}
     8}}}
    79
    810This is done for image, audio, embed, table or video blocks.
    911
    10 The top margin styling is overridden in WP 6.2 by styles with targetting such as
     12The top margin styling is overridden in WP 6.2 by styles with targeting such as
     13{{{
    1114body .is-layout-flow > * + * {
    1215   margin-block-start: var(–wp–preset–spacing–normal);
    1316}
    14 so the blocks get the margin-top which they require as per the page layout.
     17}}}
     18so the blocks get the `margin-top` which they require as per the page layout.
    1519
    16 However, WP 6.3 changes the targetting of these styles to, for example
     20However, WP 6.3 changes the targeting of these styles to, for example
     21{{{
    1722:where(body .is-layout-flow) > * {
    1823   margin-block-start: var(–wp–preset–spacing–normal);
    1924}
    20 This is less specific, with the result that the wp-block-styles margin setting overrides it and will set the margin-tops to 0 for the above blocks.
     25}}}
     26This is less specific, with the result that the `wp-block-styles` margin setting overrides it and will set the margin-tops to 0 for the above blocks.
    2127
    22 This will affect existing content on many sites which use this add_theme_support and these blocks.
     28This will affect existing content on many sites which use this `add_theme_support` and these blocks.
    2329
    2430Twenty twenty-two theme is an example.