Make WordPress Core

Changeset 50647


Ignore:
Timestamp:
04/02/2021 04:06:37 PM (3 years ago)
Author:
davidbaumwald
Message:

Editor: Update the default writing prompt to match the block editor.

Recently merged, https://github.com/WordPress/gutenberg/pull/29611, changed the default writing prompt text. WordPress core offers the write_your_story filter with a default value using the same text. This change updates the default text to match the recent change in the block editor.

Props Joen, SergeyBiryukov.
Fixes #52948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r50620 r50647  
    302302 *
    303303 * @since 5.0.0
    304  *
    305  * @param string  $text Placeholder text. Default 'Start writing or type / to choose a block'.
     304 * @since 5.8.0 Changed the default placeholder text.
     305 *
     306 * @param string  $text Placeholder text. Default 'Type / to choose a block'.
    306307 * @param WP_Post $post Post object.
    307308 */
    308 $body_placeholder = apply_filters( 'write_your_story', __( 'Start writing or type / to choose a block' ), $post );
     309$body_placeholder = apply_filters( 'write_your_story', __( 'Type / to choose a block' ), $post );
    309310
    310311$editor_settings = array(
Note: See TracChangeset for help on using the changeset viewer.