WordPress.org

Make WordPress Core

Ticket #13107: 13107.patch

File 13107.patch, 372 bytes (added by solarissmoke, 5 years ago)

Return false instead of WP_Error object when plugins_api fails

  • plugin-install.php

     
    7474        $tags = plugins_api('hot_tags', $args); 
    7575 
    7676        if ( is_wp_error($tags) ) 
    77                 return $tags; 
     77                return false; 
    7878 
    7979        $cache = (object) array('timeout' => time(), 'cached' => $tags); 
    8080