Changeset 12414
- Timestamp:
- 07/25/2019 11:30:59 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-embed.php
r11763 r12414 139 139 140 140 // Set up a new WP oEmbed object to check URL with registered oEmbed providers. 141 require_once( ABSPATH . WPINC . '/class-oembed.php' ); 141 if ( file_exists( ABSPATH . WPINC . '/class-wp-oembed.php' ) ) { 142 require_once( ABSPATH . WPINC . '/class-wp-oembed.php' ); 143 } else { 144 // class-oembed.php is deprecated in WordPress 5.3.0. 145 require_once( ABSPATH . WPINC . '/class-oembed.php' ); 146 } 147 142 148 $oembed_obj = _wp_oembed_get_object(); 143 149
Note: See TracChangeset
for help on using the changeset viewer.