Changeset 35235 for trunk/src/wp-includes/embed-functions.php
- Timestamp:
- 10/17/2015 01:20:19 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed-functions.php
r35228 r35235 465 465 $output = "<script type='text/javascript'>\n"; 466 466 if ( SCRIPT_DEBUG ) { 467 $output .= file_get_contents( ABSPATH . WPINC . '/js/wp- oembed.js' );467 $output .= file_get_contents( ABSPATH . WPINC . '/js/wp-embed.js' ); 468 468 } else { 469 469 /* 470 470 * If you're looking at a src version of this file, you'll see an "include" 471 471 * statement below. This is used by the `grunt build` process to directly 472 * include a minified version of wp- oembed.js, instead of using the472 * include a minified version of wp-embed.js, instead of using the 473 473 * file_get_contents() method from above. 474 474 * 475 475 * If you're looking at a build version of this file, you'll see a string of 476 476 * minified JavaScript. If you need to debug it, please turn on SCRIPT_DEBUG 477 * and edit wp- oembed.js directly.477 * and edit wp-embed.js directly. 478 478 */ 479 479 $output .=<<<JS 480 include "js/wp- oembed.min.js"480 include "js/wp-embed.min.js" 481 481 JS; 482 482 } … … 492 492 493 493 /** 494 * Filter the oEmbed HTML output.494 * Filter the embed HTML output for a given post. 495 495 * 496 496 * @since 4.4.0 … … 501 501 * @param int $height Height of the response. 502 502 */ 503 return apply_filters( ' oembed_html', $output, $post, $width, $height );503 return apply_filters( 'embed_html', $output, $post, $width, $height ); 504 504 } 505 505 … … 749 749 * @return string The modified excerpt. 750 750 */ 751 function wp_ oembed_excerpt_more( $more_string ) {751 function wp_embed_excerpt_more( $more_string ) { 752 752 if ( ! is_embed() ) { 753 753 return $more_string; … … 794 794 * @return string The modified post excerpt. 795 795 */ 796 function wp_ oembed_excerpt_attachment( $content ) {796 function wp_embed_excerpt_attachment( $content ) { 797 797 if ( is_attachment() ) { 798 798 return prepend_attachment( '' ); … … 807 807 * @since 4.4.0 808 808 */ 809 function print_ oembed_embed_styles() {809 function print_embed_styles() { 810 810 ?> 811 811 <style type="text/css"> 812 812 <?php 813 813 if ( SCRIPT_DEBUG ) { 814 readfile( ABSPATH . WPINC . "/css/wp- oembed-embed.css" );814 readfile( ABSPATH . WPINC . "/css/wp-embed-template.css" ); 815 815 } else { 816 816 /* … … 822 822 * If you're looking at a build version of this file, you'll see a string of 823 823 * minified CSS. If you need to debug it, please turn on SCRIPT_DEBUG 824 * and edit wp- oembed-embed.css directly.824 * and edit wp-embed-template.css directly. 825 825 */ 826 826 ?> 827 include "css/wp- oembed-embed.min.css"827 include "css/wp-embed-template.min.css" 828 828 <?php 829 829 } … … 838 838 * @since 4.4.0 839 839 */ 840 function print_ oembed_embed_scripts() {840 function print_embed_scripts() { 841 841 ?> 842 842 <script type="text/javascript"> 843 843 <?php 844 844 if ( SCRIPT_DEBUG ) { 845 readfile( ABSPATH . WPINC . "/js/wp- oembed-embed.js" );845 readfile( ABSPATH . WPINC . "/js/wp-embed-template.js" ); 846 846 } else { 847 847 /* 848 848 * If you're looking at a src version of this file, you'll see an "include" 849 849 * statement below. This is used by the `grunt build` process to directly 850 * include a minified version of wp- oembed-embed.js, instead of using the850 * include a minified version of wp-embed-template.js, instead of using the 851 851 * readfile() method from above. 852 852 * 853 853 * If you're looking at a build version of this file, you'll see a string of 854 854 * minified JavaScript. If you need to debug it, please turn on SCRIPT_DEBUG 855 * and edit wp- oembed-embed.js directly.855 * and edit wp-embed-template.js directly. 856 856 */ 857 857 ?> 858 include "js/wp- oembed-embed.min.js"858 include "js/wp-embed-template.min.js" 859 859 <?php 860 860 }
Note: See TracChangeset
for help on using the changeset viewer.