mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Embeds: Remove support for Google Video.
While the service has been retired for years, it now has completely stopped working. Thus there is no reason to keep it. Props Viper007Bond. Fixes #36304. git-svn-id: https://develop.svn.wordpress.org/trunk@37744 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3740,3 +3740,20 @@ function popuplinks( $text ) {
|
||||
$text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);
|
||||
return $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* The Google Video embed handler callback.
|
||||
*
|
||||
* Deprecated function that previously assisted in turning Google Video URLs
|
||||
* into embeds but that service has since been shut down.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 4.6.0
|
||||
*
|
||||
* @return string An empty string.
|
||||
*/
|
||||
function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {
|
||||
_deprecated_function( __FUNCTION__, '4.6.0' );
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user