bobbingwide / oik-bob-bing-wide

More lazy smart shortcodes
https://www.oik-plugins.com/oik-plugins/oik-bob-bing-wide-more-lazy-smart-shortcodes/
GNU General Public License v2.0
1 stars 0 forks source link

bw_get_plugin_info_cache2 not using cached plugininfo #15

Closed bobbingwide closed 7 years ago

bobbingwide commented 7 years ago

In bw_get_plugin_info_cache2 the test for cached plugininfo for a plugin is currently checking for an object.

$response_xml = get_transient( 'bw_plug2_'. $plugin_slug );
if ( empty( $response_xml ) || !is_object( $response_xml ) ) {

The logic to test for an object was added in https://github.com/bobbingwide/oik-bob-bing-wide/commit/6f90c6d6ff147f96cb648d40538f20e42242cbb9

The actual result from get_transient is (now) an array.