Skip to content

Commit

Permalink
changed minimum update interval; updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
John Pennypacker committed Jan 3, 2019
1 parent 82b9274 commit f4cfb70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions uri-cams.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ function uri_cams_shortcode($attributes, $content, $shortcode) {
set_site_transient( $transient_name, $path, 10 * MINUTE_IN_SECONDS );
}

// @todo what to do if $path isn't set?
$file = uri_cams_get_directory() . '/' . uri_cams_get_name($ip);
if( file_exists( $file ) ) {
$path = uri_cams_get_path() . $file;
}
// @todo what to do if $path isn't set and there's no old image?



Expand Down

0 comments on commit f4cfb70

Please sign in to comment.