Changeset 35235 for trunk/src/wp-includes/embed-template.php
- Timestamp:
- 10/17/2015 01:20:19 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed-template.php
r35096 r35235 12 12 13 13 if ( ! headers_sent() ) { 14 header( 'X-WP- oembed: true' );14 header( 'X-WP-embed: true' ); 15 15 } 16 16 … … 29 29 * @since 4.4.0 30 30 */ 31 do_action( ' oembed_head' );31 do_action( 'embed_head' ); 32 32 ?> 33 33 </head> … … 67 67 * 68 68 * @since 4.4.0 69 * 69 * 70 70 * @param string $image_size Thumbnail image size. 71 71 */ 72 $image_size = apply_filters( ' oembed_thumbnail_image_size', $image_size );72 $image_size = apply_filters( 'embed_thumbnail_image_size', $image_size ); 73 73 74 74 $shape = $measurements[0] / $measurements[1] >= 1.75 ? 'rectangular' : 'square'; … … 84 84 * @param string $shape Thumbnail image shape. Either 'rectangular' or 'square'. 85 85 */ 86 $shape = apply_filters( ' oembed_thumbnail_image_shape', $shape );86 $shape = apply_filters( 'embed_thumbnail_image_shape', $shape ); 87 87 } 88 88 ?> … … 118 118 * @since 4.4.0 119 119 */ 120 do_action( ' oembed_content' );120 do_action( 'embed_content' ); 121 121 ?> 122 122 … … 133 133 * @param string $site_icon_url The site icon URL. 134 134 */ 135 $site_icon_url = apply_filters( ' oembed_site_icon_url', $site_icon_url );135 $site_icon_url = apply_filters( 'embed_site_icon_url', $site_icon_url ); 136 136 137 137 printf( … … 151 151 * @since 4.4.0 152 152 */ 153 do_action( ' oembed_content_meta');153 do_action( 'embed_content_meta'); 154 154 ?> 155 155 <?php if ( get_comments_number() || comments_open() ) : ?> … … 234 234 * @param string $site_icon_url The site icon URL. 235 235 */ 236 $site_icon_url = apply_filters( ' oembed_site_icon_url', $site_icon_url );236 $site_icon_url = apply_filters( 'embed_site_icon_url', $site_icon_url ); 237 237 238 238 printf( … … 254 254 * @since 4.4.0 255 255 */ 256 do_action( ' oembed_footer' );256 do_action( 'embed_footer' ); 257 257 ?> 258 258 </body>
Note: See TracChangeset
for help on using the changeset viewer.