wp/lib/blobcommon.php
protected static function check_plugin($key=null) {
		if (\is_null(static::$_plugin)) {
			// Pull the remote info and store it for later.
			if (false === ($remote = static::get_release_info('Info URI', static::PLUGIN_TEMPLATE))) {
				static::$_plugin = false;
				return static::$_plugin;
			}

			// Use the main plugin headers as the basis.
			static::$_plugin = \get_plugin_data(\BLOBCOMMON_INDEX, false, false);

			// And add in what we pulled remotely.
			static::$_plugin['InfoURI'] = $remote['json_uri'];
			static::$_plugin['DownloadVersion'] = $remote['Version'];
			static::$_plugin['DownloadURI'] = $remote['DownloadURI'];
		}

		// Requesting just one key?
		if (! \is_null($key)) {
			return \array_key_exists($key, static::$_plugin) ? static::$_plugin[$key] : false;
		}

		// Send everything!
		return static::$_plugin;
	}
protected static function check_plugin($key=null) {
		if (\is_null(static::$_plugin)) {
			// Pull the remote info and store it for later.
			if (false === ($remote = static::get_release_info('Info URI', static::PLUGIN_TEMPLATE))) {
				static::$_plugin = false;
				return static::$_plugin;
			}

			// Use the main plugin headers as the basis.
			static::$_plugin = \get_plugin_data(\BLOBCOMMON_INDEX, false, false);

			// And add in what we pulled remotely.
			static::$_plugin['InfoURI'] = $remote['json_uri'];
			static::$_plugin['DownloadVersion'] = $remote['Version'];
			static::$_plugin['DownloadURI'] = $remote['DownloadURI'];
		}

		// Requesting just one key?
		if (! \is_null($key)) {
			return \array_key_exists($key, static::$_plugin) ? static::$_plugin[$key] : false;
		}

		// Send everything!
		return static::$_plugin;
	}
protected static function check_plugin ( $ key = null ) { if ( \ is_null ( static :: $ _plugin ) ) { // Pull the remote info and store it for later. if ( false === ( $ remote = static :: get_release_info ( 'Info URI' , static :: PLUGIN_TEMPLATE ) ) ) { static :: $ _plugin = false ; return static :: $ _plugin ; } // Use the main plugin headers as the basis. static :: $ _plugin = \ get_plugin_data ( \ BLOBCOMMON_INDEX , false , false ) ; // And add in what we pulled remotely. static :: $ _plugin [ 'InfoURI' ] = $ remote [ 'json_uri' ] ; static :: $ _plugin [ 'DownloadVersion' ] = $ remote [ 'Version' ] ; static :: $ _plugin [ 'DownloadURI' ] = $ remote [ 'DownloadURI' ] ; } // Requesting just one key? if ( ! \ is_null ( $ key ) ) { return \ array_key_exists ( $ key , static :: $ _plugin ) ? static :: $ _plugin [ $ key ] : false ; } // Send everything! return static :: $ _plugin ; }
Check Plugin Info

Unlike with the Phar library, this function only gathers the
release information. Downloads are handled some other way.

@param string $key Key.
@return mixed Details, detail, false.
Check Plugin Info