Skip to:
Content

BuddyPress.org

Opened 6 months ago

Closed 6 months ago

#8115 closed defect (bug) (fixed)

class-oembed.php is deprecated in 5.3.0

Reported by: imath Owned by: imath
Milestone: 5.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch
Cc:

Description

Since WP45683 the WP_oEmbed has moved into a new file: ABSPATH . WPINC . '/class-wp-oembed.php'. We are included the deprecated file into our BP_Embed class.

I think we need to anticipate 5.3.0 and make sure to still use the deprecated file for the case when BuddyPress is installed in version < 5.3.0.

Attachments (1)

8115.patch (892 bytes) - added by imath 6 months ago.

Download all attachments as: .zip

Change History (2)

@imath
6 months ago

#1 @imath
6 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 12414:

BP Embeds: anticipate a deprecated notice to be introduced in WP 5.3.0

WordPress 5.3.0 has moved the WP_oEmbed class we are using into BP Embeds into a new file, deprecating the older one. To be ready for this next major version of WordPress we are now checking for this new file path to eventually use it if it exists and keeping on using the older one for previous version of WordPress if it is not the case.

Fixes #8115

Note: See TracTickets for help on using tickets.