PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
← All changes | classes/RestAPI/Settings.php +2 -2 trunk2.6.1 View file →
@@ -45,9 +45,9 @@
45 45 [
46 46 [
47 47 'methods' => WP_REST_Server::READABLE,
48 48 'callback' => [ $this, 'get_settings' ],
49 - 'permission_callback' => [ $this, 'update_settings_permissions' ],
49 + 'permission_callback' => '__return_true', // Read only, so anyone can view.
50 50 ],
51 51 [
52 52 'methods' => WP_REST_Server::EDITABLE,
53 53 'callback' => [ $this, 'update_settings' ],
@@ -100,9 +100,9 @@
100 100 }
101 101 }
102 102
103 103 /**
104 - * Check settings permissions.
104 + * Check update settings permissions.
105 105 *
106 106 * @return WP_Error|bool
107 107 */
108 108 public function update_settings_permissions() {