[wp-trac] [WordPress Trac] #31502: Replace Youtube embed URL with error message if no video found
WordPress Trac
noreply at wordpress.org
Tue Mar 3 19:47:42 UTC 2015
#31502: Replace Youtube embed URL with error message if no video found
-------------------------------+------------------------------
Reporter: mbootsman | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 4.1.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by jesin):
Replying to [comment:5 mbootsman]:
> I mean in the front-end. In the editor a embed image is shown. I think
that if you try to embed something that does not exist, WordPress should
tell that something went wrong, and have this message be filterable.
I believe the `embed_maybe_make_link` can be used for this. It is present
in [source:tags/4.1/src/wp-includes/class-wp-embed.php#L332].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31502#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list