Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JasWSInc committed Aug 5, 2014
1 parent d40de0b commit c4a20c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quick-cache-pro/quick-cache-pro.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,9 @@ public function all_admin_notices()
$_dismiss = ''; // Initialize empty string; e.g. reset value on each pass.
if(strpos($_key, 'persistent-') === 0) // A dismissal link is needed in this case?
{
if($_key === 'persistent-update-sync-version' && !current_user_can($this->update_cap))
continue; // Current user does not have access.

$_dismiss_css = 'display:inline-block; float:right; margin:0 0 0 15px; text-decoration:none; font-weight:bold;';
$_dismiss = add_query_arg(urlencode_deep(array(__NAMESPACE__ => array('dismiss_notice' => array('key' => $_key)), '_wpnonce' => wp_create_nonce())));
$_dismiss = '<a style="'.esc_attr($_dismiss_css).'" href="'.esc_attr($_dismiss).'">'.__('dismiss &times;', $this->text_domain).'</a>';
Expand Down

0 comments on commit c4a20c7

Please sign in to comment.