From 57a7ad689b7c96c53ac02d4efeef145bc53ac3b7 Mon Sep 17 00:00:00 2001 From: David Baumwald Date: Fri, 2 Apr 2021 16:06:37 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@50647 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-blocks.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php index 3a61483be0..c2d6b8b965 100644 --- a/src/wp-admin/edit-form-blocks.php +++ b/src/wp-admin/edit-form-blocks.php @@ -301,11 +301,12 @@ if ( $user_id ) { * Filters the body placeholder text. * * @since 5.0.0 + * @since 5.8.0 Changed the default placeholder text. * - * @param string $text Placeholder text. Default 'Start writing or type / to choose a block'. + * @param string $text Placeholder text. Default 'Type / to choose a block'. * @param WP_Post $post Post object. */ -$body_placeholder = apply_filters( 'write_your_story', __( 'Start writing or type / to choose a block' ), $post ); +$body_placeholder = apply_filters( 'write_your_story', __( 'Type / to choose a block' ), $post ); $editor_settings = array( 'alignWide' => $align_wide,