WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#37602 closed defect (bug) (fixed)

Typo in WP_oEmbed::_add_provider_early() docs

Reported by: swissspidy Owned by: SergeyBiryukov
Milestone: 4.7 Priority: normal
Severity: minor Version: 4.0
Component: Embeds Keywords: good-first-bug has-patch
Focuses: docs Cc:
PR Number:

Description

Introduced in [29012], the description of the WP_oEmbed::_add_provider_early() method currently reads:

The provider is removed just-in-time when wp_oembed_add_provider() is called before the {@see 'plugins_loaded'} hook.

The just-in-time addition is for the benefit of the {@see 'oembed_providers'} filter.

Here, removed should be added. Looks like this was simply copied over from the _remove_provider_early() method.

Attachments (1)

37602.patch (563 bytes) - added by ivantedja 3 years ago.
fix typo in docs

Download all attachments as: .zip

Change History (4)

@ivantedja
3 years ago

fix typo in docs

#1 @ivantedja
3 years ago

my first contribution, let me know if I need to do something else other than uploading the .patch file

#2 @SergeyBiryukov
3 years ago

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Future Release to 4.7

#3 @SergeyBiryukov
3 years ago

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

In 38230:

Embeds: Fix copy/paste error in WP_oEmbed::_add_provider_early() description.

Props ivantedja.
Fixes #37602.

Note: See TracTickets for help on using tickets.