IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 175 | 175 | |
| 176 | 176 | wp_embed_register_handler( 'youtube_embed_url', '#https?://(www.)?youtube\.com/(?:v|embed)/([^/]+)#i', 'wp_embed_handler_youtube' ); |
| 177 | 177 | |
| 178 | | wp_embed_register_handler( 'googlevideo', '#http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)#i', 'wp_embed_handler_googlevideo' ); |
| 179 | | |
| 180 | 178 | /** |
| 181 | 179 | * Filter the audio embed handler callback. |
| 182 | 180 | * |
| … |
… |
|
| 197 | 195 | } |
| 198 | 196 | |
| 199 | 197 | /** |
| 200 | | * The Google Video embed handler callback. |
| | 198 | * Deprecated function that previously assisted in turning Google Video URLs |
| | 199 | * into embeds but that service has since been shut down. |
| 201 | 200 | * |
| 202 | | * Google Video does not support oEmbed. |
| | 201 | * @deprecated 4.6.0 |
| 203 | 202 | * |
| 204 | | * @see WP_Embed::register_handler() |
| 205 | | * @see WP_Embed::shortcode() |
| 206 | | * |
| 207 | | * @param array $matches The RegEx matches from the provided regex when calling wp_embed_register_handler(). |
| 208 | | * @param array $attr Embed attributes. |
| 209 | | * @param string $url The original URL that was matched by the regex. |
| 210 | | * @param array $rawattr The original unmodified attributes. |
| 211 | | * @return string The embed HTML. |
| | 203 | * @return string An empty string. |
| 212 | 204 | */ |
| 213 | 205 | function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) { |
| 214 | | // If the user supplied a fixed width AND height, use it |
| 215 | | if ( !empty($rawattr['width']) && !empty($rawattr['height']) ) { |
| 216 | | $width = (int) $rawattr['width']; |
| 217 | | $height = (int) $rawattr['height']; |
| 218 | | } else { |
| 219 | | list( $width, $height ) = wp_expand_dimensions( 425, 344, $attr['width'], $attr['height'] ); |
| 220 | | } |
| | 206 | _deprecated_function( __FUNCTION__, '4.6.0' ); |
| 221 | 207 | |
| 222 | | /** |
| 223 | | * Filter the Google Video embed output. |
| 224 | | * |
| 225 | | * @since 2.9.0 |
| 226 | | * |
| 227 | | * @param string $html Google Video HTML embed markup. |
| 228 | | * @param array $matches The RegEx matches from the provided regex. |
| 229 | | * @param array $attr An array of embed attributes. |
| 230 | | * @param string $url The original URL that was matched by the regex. |
| 231 | | * @param array $rawattr The original unmodified attributes. |
| 232 | | */ |
| 233 | | return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&hl=en&fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr ); |
| | 208 | return ''; |
| 234 | 209 | } |
| 235 | 210 | |
| 236 | 211 | /** |