Changeset 38361
- Timestamp:
- 08/26/2016 09:48:32 AM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r38028 r38361 480 480 $src = 'https://www.dailymotion.com/video/' . $src_matches[2]; 481 481 } else { 482 require_once( ABSPATH . WPINC . '/class-oembed.php' );483 482 $oembed = _wp_oembed_get_object(); 484 483 -
trunk/src/wp-includes/class-oembed.php
r38230 r38361 678 678 } 679 679 } 680 681 /**682 * Returns the initialized WP_oEmbed object.683 *684 * @since 2.9.0685 * @access private686 *687 * @staticvar WP_oEmbed $wp_oembed688 *689 * @return WP_oEmbed object.690 */691 function _wp_oembed_get_object() {692 static $wp_oembed = null;693 694 if ( is_null( $wp_oembed ) ) {695 $wp_oembed = new WP_oEmbed();696 }697 return $wp_oembed;698 } -
trunk/src/wp-includes/embed.php
r38321 r38361 95 95 */ 96 96 function wp_oembed_get( $url, $args = '' ) { 97 require_once( ABSPATH . WPINC . '/class-oembed.php' );98 97 $oembed = _wp_oembed_get_object(); 99 98 return $oembed->get_html( $url, $args ); 99 } 100 101 /** 102 * Returns the initialized WP_oEmbed object. 103 * 104 * @since 2.9.0 105 * @access private 106 * 107 * @staticvar WP_oEmbed $wp_oembed 108 * 109 * @return WP_oEmbed object. 110 */ 111 function _wp_oembed_get_object() { 112 static $wp_oembed = null; 113 114 if ( is_null( $wp_oembed ) ) { 115 $wp_oembed = new WP_oEmbed(); 116 } 117 return $wp_oembed; 100 118 } 101 119 … … 113 131 */ 114 132 function wp_oembed_add_provider( $format, $provider, $regex = false ) { 115 require_once( ABSPATH . WPINC . '/class-oembed.php' );116 117 133 if ( did_action( 'plugins_loaded' ) ) { 118 134 $oembed = _wp_oembed_get_object(); … … 134 150 */ 135 151 function wp_oembed_remove_provider( $format ) { 136 require_once( ABSPATH . WPINC . '/class-oembed.php' );137 138 152 if ( did_action( 'plugins_loaded' ) ) { 139 153 $oembed = _wp_oembed_get_object(); … … 707 721 } 708 722 709 require_once( ABSPATH . WPINC . '/class-oembed.php' );710 723 $wp_oembed = _wp_oembed_get_object(); 711 724 -
trunk/src/wp-settings.php
r38351 r38361 192 192 require( ABSPATH . WPINC . '/embed.php' ); 193 193 require( ABSPATH . WPINC . '/class-wp-embed.php' ); 194 require( ABSPATH . WPINC . '/class-oembed.php' ); 194 195 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' ); 195 196 require( ABSPATH . WPINC . '/media.php' );
Note: See TracChangeset
for help on using the changeset viewer.