Version Description
- Add: Allow Purge Cache for Editors role
Download this release
Release Info
Developer | adeelkhan |
Plugin | Breeze – WordPress Cache Plugin |
Version | 1.0.10 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.0.10
- breeze.php +1 -1
- inc/breeze-admin.php +4 -1
- readme.txt +5 -2
breeze.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Breeze
|
4 |
* Description: Breeze is a WordPress cache plugin with extensive options to speed up your website. All the options including Varnish Cache are compatible with Cloudways hosting.
|
5 |
-
* Version: 1.0.
|
6 |
* Text Domain: breeze
|
7 |
* Domain Path: /languages
|
8 |
* Author: Cloudways
|
2 |
/**
|
3 |
* Plugin Name: Breeze
|
4 |
* Description: Breeze is a WordPress cache plugin with extensive options to speed up your website. All the options including Varnish Cache are compatible with Cloudways hosting.
|
5 |
+
* Version: 1.0.10
|
6 |
* Text Domain: breeze
|
7 |
* Domain Path: /languages
|
8 |
* Author: Cloudways
|
inc/breeze-admin.php
CHANGED
@@ -144,7 +144,7 @@ class Breeze_Admin {
|
|
144 |
*/
|
145 |
function register_admin_bar_menu(WP_Admin_Bar $wp_admin_bar)
|
146 |
{
|
147 |
-
if (current_user_can('manage_options')) {
|
148 |
// add a parent item
|
149 |
$args = array(
|
150 |
'id' => 'breeze-topbar',
|
@@ -164,6 +164,9 @@ class Breeze_Admin {
|
|
164 |
);
|
165 |
$wp_admin_bar->add_node( $args );
|
166 |
|
|
|
|
|
|
|
167 |
// add purge modules group
|
168 |
$args = array(
|
169 |
'id' => 'breeze-purge-modules',
|
144 |
*/
|
145 |
function register_admin_bar_menu(WP_Admin_Bar $wp_admin_bar)
|
146 |
{
|
147 |
+
if (current_user_can('manage_options') || current_user_can('editor')) {
|
148 |
// add a parent item
|
149 |
$args = array(
|
150 |
'id' => 'breeze-topbar',
|
164 |
);
|
165 |
$wp_admin_bar->add_node( $args );
|
166 |
|
167 |
+
// Editor role can only use Purge all cache option
|
168 |
+
if (current_user_can('editor')) return $wp_admin_bar;
|
169 |
+
|
170 |
// add purge modules group
|
171 |
$args = array(
|
172 |
'id' => 'breeze-purge-modules',
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: Cloudways
|
3 |
Tags: cache, caching, performance, wp-cache, cdn, combine, compress, speed plugin, database cache,gzip, http compression, js cache, minify, optimize, page cache, performance, speed, expire headers
|
4 |
Requires at least: 4.5
|
5 |
-
Tested up to: 4.9.
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -145,6 +145,9 @@ Using Gzip, Breeze compresses the request files, further reducing the size of th
|
|
145 |
|
146 |
== Changelog ==
|
147 |
|
|
|
|
|
|
|
148 |
= 1.0.9 =
|
149 |
* Add: Option to move JS file to footer during minification
|
150 |
* Add: Option to deffer loading for JS files
|
2 |
Contributors: Cloudways
|
3 |
Tags: cache, caching, performance, wp-cache, cdn, combine, compress, speed plugin, database cache,gzip, http compression, js cache, minify, optimize, page cache, performance, speed, expire headers
|
4 |
Requires at least: 4.5
|
5 |
+
Tested up to: 4.9.5
|
6 |
+
Stable tag: 1.0.10
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
145 |
|
146 |
== Changelog ==
|
147 |
|
148 |
+
= 1.0.10 =
|
149 |
+
* Add: Allow Purge Cache for Editors role
|
150 |
+
|
151 |
= 1.0.9 =
|
152 |
* Add: Option to move JS file to footer during minification
|
153 |
* Add: Option to deffer loading for JS files
|