Make WordPress Core


Ignore:
Timestamp:
05/29/2015 03:42:40 PM (9 years ago)
Author:
wonderboymusic
Message:

Add @static* annotations where they are missing.
Initialize all static vars that are not, most to null.

See #32444.

File:
1 edited

Legend:

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

    r32533 r32650  
    2020class WP_oEmbed {
    2121    public $providers = array();
     22    /**
     23     * @static
     24     * @var array
     25     */
    2226    public static $early_providers = array();
    2327
     
    612616 * @access private
    613617 *
    614  * @see WP_oEmbed
     618 * @staticvar WP_oEmbed $wp_oembed
    615619 *
    616620 * @return WP_oEmbed object.
    617621 */
    618622function _wp_oembed_get_object() {
    619     static $wp_oembed;
    620 
    621     if ( is_null($wp_oembed) )
     623    static $wp_oembed = null;
     624
     625    if ( is_null( $wp_oembed ) ) {
    622626        $wp_oembed = new WP_oEmbed();
    623 
     627    }
    624628    return $wp_oembed;
    625629}
Note: See TracChangeset for help on using the changeset viewer.