-
Notifications
You must be signed in to change notification settings - Fork 4.5k
BlockEditor: Resolve MediaReplaceFlow
UI text inconsistency
#69546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlockEditor: Resolve MediaReplaceFlow
UI text inconsistency
#69546
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
@im3dabasia, do we have an associated issue for this PR? Just checking; you don't have to create one for minor updates like this. |
Hey @Mamaduka, No, there is no direct issue created for this, but I found this while working on a related issue #58507 (comment). |
Thanks for the info. It looks like some failing e2e tests are related to the placeholder text change. Let's fix that, and then this is good to merge. |
c1947a5
to
f87459a
Compare
The same goes for unit tests 😅 |
Thanks 🚀 🚀 |
…ress#69546) Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What?
Related to this issue: #58507 (comment)
Changes the placeholder in MediaReplaceFlow from "Search or type URL" to "Paste or type URL" to accurately reflect current functionality.
Why?
The MediaReplaceFlow component currently doesn't support search functionality, but the placeholder text incorrectly suggests it does. This change brings the placeholder text in line with the actual available features and maintains consistency with other similar components. Like "Insert from URL"
Search is set to false illustrated in the code below
gutenberg/packages/block-editor/src/components/media-replace-flow/index.js
Lines 223 to 236 in 8b88ada
How?
Updated the placeholder text in the
MediaReplaceFlow
component to remove the reference to search functionality, as the "suggestions" option is set to false.Screenshots or screencast
The
MediaReplaceFlow
does not have the search functionality but still search is mentioned in the placeholderScreen.Recording.2025-03-12.at.7.13.46.PM.mov