PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
← All changes | includes/ajax/dashboard.php +22 -21 2.11.1 → 2.14.0 View file →
@@ -18,29 +18,29 @@
18 18 public function __construct() {
19 19 $this->actions = array(
20 20 'get_admin_menu_items' => array(
21 21 'callback' => array( $this, 'get_admin_menu_items' ),
22 - 'capability' => 'manage_options',
22 + 'capability' => 'ablocks_access',
23 23 ),
24 24 'regenerate_assets' => array(
25 25 'callback' => array( $this, 'regenerate_assets' ),
26 - 'capability' => 'manage_options',
26 + 'capability' => 'ablocks_manage_performance',
27 27 ),
28 28 'page_cache_status' => array(
29 29 'callback' => array( $this, 'page_cache_status' ),
30 - 'capability' => 'manage_options',
30 + 'capability' => 'ablocks_manage_performance',
31 31 ),
32 32 'purge_page_cache' => array(
33 33 'callback' => array( $this, 'purge_page_cache' ),
34 - 'capability' => 'manage_options',
34 + 'capability' => 'ablocks_manage_performance',
35 35 ),
36 36 'run_scanner' => array(
37 37 'callback' => array( $this, 'run_scanner' ),
38 - 'capability' => 'manage_options',
38 + 'capability' => 'ablocks_run_scanner',
39 39 ),
40 40 'scanner_dismiss' => array(
41 41 'callback' => array( $this, 'scanner_dismiss' ),
42 - 'capability' => 'manage_options',
42 + 'capability' => 'ablocks_run_scanner',
43 43 'fields' => array(
44 44 'id' => 'string',
45 45 'dismiss' => 'boolean',
46 46 ),
@@ -46,9 +46,9 @@
46 46 ),
47 47 ),
48 48 'scanner_apply_fix' => array(
49 49 'callback' => array( $this, 'scanner_apply_fix' ),
50 - 'capability' => 'manage_options',
50 + 'capability' => 'ablocks_run_scanner',
51 51 'fields' => array(
52 52 'field' => 'string',
53 53 ),
54 54 ),
@@ -53,13 +53,13 @@
53 53 ),
54 54 ),
55 55 'image_stats' => array(
56 56 'callback' => array( $this, 'image_stats' ),
57 - 'capability' => 'manage_options',
57 + 'capability' => 'ablocks_manage_performance',
58 58 ),
59 59 'image_optimize_batch' => array(
60 60 'callback' => array( $this, 'image_optimize_batch' ),
61 - 'capability' => 'manage_options',
61 + 'capability' => 'ablocks_manage_performance',
62 62 'fields' => array(
63 63 'level' => 'string',
64 64 'webp' => 'boolean',
65 65 'all' => 'boolean',
@@ -66,17 +66,17 @@
66 66 ),
67 67 ),
68 68 'image_discard_originals' => array(
69 69 'callback' => array( $this, 'image_discard_originals' ),
70 - 'capability' => 'manage_options',
70 + 'capability' => 'ablocks_manage_performance',
71 71 ),
72 72 'image_restore_all' => array(
73 73 'callback' => array( $this, 'image_restore_all' ),
74 - 'capability' => 'manage_options',
74 + 'capability' => 'ablocks_manage_performance',
75 75 ),
76 76 'image_scan_unused' => array(
77 77 'callback' => array( $this, 'image_scan_unused' ),
78 - 'capability' => 'manage_options',
78 + 'capability' => 'ablocks_manage_performance',
79 79 'fields' => array(
80 80 'offset' => 'integer',
81 81 ),
82 82 ),
@@ -81,9 +81,9 @@
81 81 ),
82 82 ),
83 83 'image_scan_duplicates' => array(
84 84 'callback' => array( $this, 'image_scan_duplicates' ),
85 - 'capability' => 'manage_options',
85 + 'capability' => 'ablocks_manage_performance',
86 86 'fields' => array(
87 87 'offset' => 'integer',
88 88 ),
89 89 ),
@@ -88,9 +88,9 @@
88 88 ),
89 89 ),
90 90 'image_quarantine' => array(
91 91 'callback' => array( $this, 'image_quarantine' ),
92 - 'capability' => 'manage_options',
92 + 'capability' => 'ablocks_manage_performance',
93 93 'fields' => array(
94 94 'ids' => 'json',
95 95 ),
96 96 ),
@@ -95,9 +95,9 @@
95 95 ),
96 96 ),
97 97 'image_quarantine_action' => array(
98 98 'callback' => array( $this, 'image_quarantine_action' ),
99 - 'capability' => 'manage_options',
99 + 'capability' => 'ablocks_manage_performance',
100 100 'fields' => array(
101 101 'do' => 'string',
102 102 'id' => 'integer',
103 103 ),
@@ -103,32 +103,33 @@
103 103 ),
104 104 ),
105 105 'clear_demo_transients' => array(
106 106 'callback' => array( $this, 'clear_demo_transients' ),
107 - 'capability' => 'manage_options',
107 + 'capability' => 'ablocks_import_templates',
108 108 ),
109 109 'install_academy_lms' => array(
110 110 'callback' => array( $this, 'install_academy_lms' ),
111 - 'capability' => 'manage_options',
111 + 'capability' => 'install_plugins',
112 112 ),
113 113 'install_storeengine' => array(
114 114 'callback' => array( $this, 'install_storeengine' ),
115 - 'capability' => 'manage_options',
115 + 'capability' => 'install_plugins',
116 116 ),
117 117 'install_ecm' => array(
118 118 'callback' => array( $this, 'install_ecm' ),
119 + 'capability' => 'install_plugins',
119 120 ),
120 121 'download_google_fonts' => array(
121 122 'callback' => array( $this, 'download_google_fonts' ),
122 - 'capability' => 'manage_options',
123 + 'capability' => 'ablocks_manage_global_styles',
123 124 ),
124 125 'font_audit' => array(
125 126 'callback' => array( $this, 'font_audit' ),
126 - 'capability' => 'manage_options',
127 + 'capability' => 'ablocks_manage_global_styles',
127 128 ),
128 129 'design_audit' => array(
129 130 'callback' => array( $this, 'design_audit' ),
130 - 'capability' => 'manage_options',
131 + 'capability' => 'ablocks_manage_global_styles',
131 132 ),
132 133 );
133 134 }
134 135