Make WordPress Core

Ticket #36912: plugin-install.php.2.patch

File plugin-install.php.2.patch, 911 bytes (added by clarionwpdeveloper, 8 years ago)
  • plugin-install.php

     
    356356 * @since 3.0.0
    357357 *
    358358 * @param array|object $api
    359  * @param bool        $loop
    360  * @return type
     359 * @param bool  $loop is optional constant specify the true or false. Default is false
     360 * @return type array set of 'status', 'url', 'version', 'file' 
     361 *   Array (
     362 *           [status] => ''
     363 *           [url] => ''
     364 *           [version] => ''
     365 *           [file] => ''
     366 *         );
    361367 */
    362368function install_plugin_install_status($api, $loop = false) {
    363369        // This function is called recursively, $loop prevents further loops.
     
    364370        if ( is_array($api) )
    365371                $api = (object) $api;
    366372
    367         // Default to a "new" plugin
     373        // Default to a "new" plugin 
    368374        $status = 'install';
    369375        $url = false;
    370376        $update_file = false;