Make WordPress Core


Ignore:
Timestamp:
02/07/2023 12:57:52 PM (15 months ago)
Author:
youknowriad
Message:

Block Editor: Updates the WordPress packages with all the fixes targetted for WP 6.2 beta1.

Includes the following changes

  • Fix multi entities saved state in the post editor
  • Adds a global save button to the site editor
  • Shadow: move shadow to own panel
  • [Block Editor]: Lock experimentalBlockInspectorAnimation setting
  • useBlockSync: change subscribed.current on unsubscribe
  • [Block Library - Gallery]: Minor code quality update
  • [Patterns]: Reorder pattern categories
  • Fix inline preview infinite render
  • Show a pointer/hint in the settings tab informing the user about the styles tab
  • I18N: update string concatenation method in read more block
  • LocalAutosaveNotice: use stable notice id to prevent double notices
  • Navigation: Remove the IS_GUTENBERG_PLUGIN check around block_core_navigation_parse_blocks_from_menu_items

Props mamaduka, ntsekouras, kebbet.
See #57471.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/read-more.php

    r55246 r55257  
    1919    }
    2020
    21     $post_ID            = $block->context['postId'];
    22     $post_title         = get_the_title( $post_ID );
     21    $post_ID    = $block->context['postId'];
     22    $post_title = get_the_title( $post_ID );
     23    if ( '' === $post_title ) {
     24        $post_title = sprintf(
     25            /* translators: %s is post ID to describe the link for screen readers. */
     26            __( 'untitled post %s' ),
     27            $post_ID
     28        );
     29    }
    2330    $screen_reader_text = sprintf(
    2431        /* translators: %s is either the post title or post ID to describe the link for screen readers. */
    2532        __( ': %s' ),
    26         '' !== $post_title ? $post_title : __( 'untitled post ' ) . $post_ID
     33        $post_title
    2734    );
    2835    $justify_class_name = empty( $attributes['justifyContent'] ) ? '' : "is-justified-{$attributes['justifyContent']}";
Note: See TracChangeset for help on using the changeset viewer.