[wp-trac] [WordPress Trac] #31502: Replace Youtube embed URL with error message if no video found

WordPress Trac noreply at wordpress.org
Wed Mar 4 08:29:15 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 mbootsman):

 Replying to [comment:6 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].

 Hmm, I missed that hook, seems usable! Thanks.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31502#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list