Make WordPress Core


Ignore:
Timestamp:
07/07/2014 06:33:23 AM (10 years ago)
Author:
DrewAPicture
Message:

Add phpDoc blocks for two WP_oEmbed methods added in [28846].

Fixes #28284.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r28950 r29012  
    199199    }
    200200
     201    /**
     202     * Add an oEmbed provider just-in-time when wp_oembed_add_provider() is called
     203     * before the 'plugins_loaded' hook.
     204     *
     205     * The just-in-time addition is for the benefit of the 'oembed_providers' filter.
     206     *
     207     * @since 4.0.0
     208     * @static
     209     *
     210     * @see wp_oembed_add_provider()
     211     *
     212     * @param string $format   The format of URL that this provider can handle. You can use
     213     *                         asterisks as wildcards.
     214     * @param string $provider The URL to the oEmbed provider..
     215     * @param bool   $regex    Optional. Whether the $format parameter is in a regex format.
     216     *                         Default false.
     217     */
    201218    public static function _add_provider_early( $format, $provider, $regex = false ) {
    202219        if ( empty( self::$early_providers['add'] ) ) {
     
    207224    }
    208225
     226    /**
     227     * Remove an oEmbed provider just-in-time when wp_oembed_remove_provider() is called
     228     * before the 'plugins_loaded' hook.
     229     *
     230     * The just-in-time removal is for the benefit of the 'oembed_providers' filter.
     231     *
     232     * @since 4.0.0
     233     * @static
     234     *
     235     * @see wp_oembed_remove_provider()
     236     *
     237     * @param string $format The format of URL that this provider can handle. You can use
     238     *                       asterisks as wildcards.
     239     */
    209240    public static function _remove_provider_early( $format ) {
    210241        if ( empty( self::$early_providers['remove'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.