Ticket #36912: plugin-install.php.2.patch
File plugin-install.php.2.patch, 911 bytes (added by , 8 years ago) |
---|
-
plugin-install.php
356 356 * @since 3.0.0 357 357 * 358 358 * @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 * ); 361 367 */ 362 368 function install_plugin_install_status($api, $loop = false) { 363 369 // This function is called recursively, $loop prevents further loops. … … 364 370 if ( is_array($api) ) 365 371 $api = (object) $api; 366 372 367 // Default to a "new" plugin 373 // Default to a "new" plugin 368 374 $status = 'install'; 369 375 $url = false; 370 376 $update_file = false;