Plugin Directory

Changeset 1271918


Ignore:
Timestamp:
10/23/2015 04:29:40 PM (10 years ago)
Author:
tobyberesford
Message:

Avoid warning messages

Location:
leaderboarded/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • leaderboarded/trunk/leaderboarded.php

    r1270156 r1271918  
    99Description: Allows you to embed a Rise.global Leaderboard in your Wordpress blog
    1010Author: Toby Beresford
    11 Version: 0.21
     11Version: 0.22
    1212Author URI: http://www.tobyberesford.com
    1313*/
     
    9797
    9898            // Cache both a daily and weekly copy
    99             wp_cache_set($cacheKey . ':' . 'd', $theBody, 'leaderboarded', 3600);
    100             wp_cache_set($cacheKey . ':' . 'w', $theBody, 'leaderboarded', (86400 * 7));
     99            if ($bool_use_cache) {
     100                wp_cache_set($cacheKey . ':' . 'd', $theBody, 'leaderboarded', 3600);
     101                wp_cache_set($cacheKey . ':' . 'w', $theBody, 'leaderboarded', (86400 * 7));
     102            }
    101103        }
    102104    }
     
    122124{
    123125    // find out if this is the request you are targeting and if not: abort
    124     if ( 'unsigned' !== $params['unsigned'] )
     126    if ((!(isset($params['unsigned']))) or ( 'unsigned' !== $params['unsigned'] ))
    125127         return $params;
    126128
     
    231233}
    232234
    233 ?>
     235?>12
  • leaderboarded/trunk/readme.txt

    r1270156 r1271918  
    4545
    4646== Changelog ==
     47= 0.22 =
     48* Avoid warning notifications on first instal
     49
    4750= 0.21 =
    4851* Test for curl
Note: See TracChangeset for help on using the changeset viewer.