Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MediaPlaceholder: Fix Regression with media URL input type to allow a…
… local URL path (#70043)

Co-authored-by: Mayank-Tripathi32 <mayanktripathi32@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: skierpage <skierpage@git.wordpress.org>
  • Loading branch information
5 people committed Jun 30, 2025
commit f52edfc2ff5d0d01dc41d5ce2b48a71962f7397f
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const InsertFromURLPopover = ( {
<InputControl
__next40pxDefaultSize
label={ __( 'URL' ) }
type="url"
type="text" // Use text instead of URL to allow relative paths (e.g., /image/image.jpg)
hideLabelFromVision
placeholder={ __( 'Paste or type URL' ) }
onChange={ onChange }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
@include break-small() {
width: 300px;
}

input {
// Targeting input as we're using text instead of URLs for relative paths.
/* rtl:ignore */
direction: ltr;
}
}