Embeds: Rename files, functions, and hooks added in [34903] to make it more clear what is oEmbed-specific and what isn't.
See https://core.trac.wordpress.org/ticket/34272#comment:7 for full list of renamed functions and hooks. Props swissspidy. Fixes #34272. Built from https://develop.svn.wordpress.org/trunk@35235 git-svn-id: http://core.svn.wordpress.org/trunk@35201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1157540283
commit
a908d2d4b1
|
@ -446,24 +446,24 @@ add_action( 'parse_query', 'wp_oembed_parse_query' );
|
|||
add_action( 'wp_head', 'wp_oembed_add_discovery_links' );
|
||||
add_action( 'wp_head', 'wp_oembed_add_host_js' );
|
||||
|
||||
add_action( 'oembed_head', 'print_emoji_detection_script' );
|
||||
add_action( 'oembed_head', 'print_emoji_styles' );
|
||||
add_action( 'oembed_head', 'print_oembed_embed_styles' );
|
||||
add_action( 'oembed_head', 'print_oembed_embed_scripts' );
|
||||
add_action( 'oembed_head', 'wp_print_head_scripts', 20 );
|
||||
add_action( 'oembed_head', 'wp_print_styles', 20 );
|
||||
add_action( 'oembed_head', 'wp_no_robots' );
|
||||
add_action( 'oembed_head', 'rel_canonical' );
|
||||
add_action( 'oembed_head', 'locale_stylesheet' );
|
||||
add_action( 'embed_head', 'print_emoji_detection_script' );
|
||||
add_action( 'embed_head', 'print_emoji_styles' );
|
||||
add_action( 'embed_head', 'print_embed_styles' );
|
||||
add_action( 'embed_head', 'print_embed_scripts' );
|
||||
add_action( 'embed_head', 'wp_print_head_scripts', 20 );
|
||||
add_action( 'embed_head', 'wp_print_styles', 20 );
|
||||
add_action( 'embed_head', 'wp_no_robots' );
|
||||
add_action( 'embed_head', 'rel_canonical' );
|
||||
add_action( 'embed_head', 'locale_stylesheet' );
|
||||
|
||||
add_action( 'oembed_footer', 'wp_print_footer_scripts', 20 );
|
||||
|
||||
add_filter( 'excerpt_more', 'wp_oembed_excerpt_more', 20 );
|
||||
add_filter( 'excerpt_more', 'wp_embed_excerpt_more', 20 );
|
||||
add_filter( 'the_excerpt_embed', 'wptexturize' );
|
||||
add_filter( 'the_excerpt_embed', 'convert_chars' );
|
||||
add_filter( 'the_excerpt_embed', 'wpautop' );
|
||||
add_filter( 'the_excerpt_embed', 'shortcode_unautop' );
|
||||
add_filter( 'the_excerpt_embed', 'wp_oembed_excerpt_attachment' );
|
||||
add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );
|
||||
|
||||
add_filter( 'oembed_dataparse', 'wp_filter_oembed_result', 10, 3 );
|
||||
add_filter( 'oembed_response_data', 'get_oembed_response_data_rich', 10, 4 );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
|
||||
if ( ! headers_sent() ) {
|
||||
header( 'X-WP-oembed: true' );
|
||||
header( 'X-WP-embed: true' );
|
||||
}
|
||||
|
||||
wp_enqueue_style( 'open-sans' );
|
||||
|
@ -28,7 +28,7 @@ wp_enqueue_style( 'open-sans' );
|
|||
*
|
||||
* @since 4.4.0
|
||||
*/
|
||||
do_action( 'oembed_head' );
|
||||
do_action( 'embed_head' );
|
||||
?>
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
|
@ -69,7 +69,7 @@ if ( have_posts() ) :
|
|||
*
|
||||
* @param string $image_size Thumbnail image size.
|
||||
*/
|
||||
$image_size = apply_filters( 'oembed_thumbnail_image_size', $image_size );
|
||||
$image_size = apply_filters( 'embed_thumbnail_image_size', $image_size );
|
||||
|
||||
$shape = $measurements[0] / $measurements[1] >= 1.75 ? 'rectangular' : 'square';
|
||||
|
||||
|
@ -83,7 +83,7 @@ if ( have_posts() ) :
|
|||
*
|
||||
* @param string $shape Thumbnail image shape. Either 'rectangular' or 'square'.
|
||||
*/
|
||||
$shape = apply_filters( 'oembed_thumbnail_image_shape', $shape );
|
||||
$shape = apply_filters( 'embed_thumbnail_image_shape', $shape );
|
||||
}
|
||||
?>
|
||||
<div <?php post_class( 'wp-embed' ); ?>>
|
||||
|
@ -117,7 +117,7 @@ if ( have_posts() ) :
|
|||
*
|
||||
* @since 4.4.0
|
||||
*/
|
||||
do_action( 'oembed_content' );
|
||||
do_action( 'embed_content' );
|
||||
?>
|
||||
|
||||
<div class="wp-embed-footer">
|
||||
|
@ -132,7 +132,7 @@ if ( have_posts() ) :
|
|||
*
|
||||
* @param string $site_icon_url The site icon URL.
|
||||
*/
|
||||
$site_icon_url = apply_filters( 'oembed_site_icon_url', $site_icon_url );
|
||||
$site_icon_url = apply_filters( 'embed_site_icon_url', $site_icon_url );
|
||||
|
||||
printf(
|
||||
'<a href="%s" target="_top"><img src="%s" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>',
|
||||
|
@ -150,7 +150,7 @@ if ( have_posts() ) :
|
|||
*
|
||||
* @since 4.4.0
|
||||
*/
|
||||
do_action( 'oembed_content_meta');
|
||||
do_action( 'embed_content_meta');
|
||||
?>
|
||||
<?php if ( get_comments_number() || comments_open() ) : ?>
|
||||
<div class="wp-embed-comments">
|
||||
|
@ -233,7 +233,7 @@ else :
|
|||
*
|
||||
* @param string $site_icon_url The site icon URL.
|
||||
*/
|
||||
$site_icon_url = apply_filters( 'oembed_site_icon_url', $site_icon_url );
|
||||
$site_icon_url = apply_filters( 'embed_site_icon_url', $site_icon_url );
|
||||
|
||||
printf(
|
||||
'<a href="%s" target="_top"><img src="%s" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>',
|
||||
|
@ -253,7 +253,7 @@ endif;
|
|||
*
|
||||
* @since 4.4.0
|
||||
*/
|
||||
do_action( 'oembed_footer' );
|
||||
do_action( 'embed_footer' );
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
var scriptElm = editor.dom.create( 'script', {
|
||||
id: scriptId,
|
||||
type: 'text/javascript',
|
||||
src: url + '/../../../wp-oembed.js'
|
||||
src: url + '/../../../wp-embed.js'
|
||||
} );
|
||||
|
||||
editor.getDoc().getElementsByTagName( 'head' )[ 0 ].appendChild( scriptElm );
|
||||
|
|
|
@ -1 +1 @@
|
|||
!function(a){"use strict";a.PluginManager.add("wpoembed",function(a,b){a.on("init",function(){var c=a.dom.uniqueId(),d=a.dom.create("script",{id:c,type:"text/javascript",src:b+"/../../../wp-oembed.js"});a.getDoc().getElementsByTagName("head")[0].appendChild(d)})})}(window.tinymce);
|
||||
!function(a){"use strict";a.PluginManager.add("wpoembed",function(a,b){a.on("init",function(){var c=a.dom.uniqueId(),d=a.dom.create("script",{id:c,type:"text/javascript",src:b+"/../../../wp-embed.js"});a.getDoc().getElementsByTagName("head")[0].appendChild(d)})})}(window.tinymce);
|
Binary file not shown.
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35234';
|
||||
$wp_version = '4.4-alpha-35235';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue