Version Description
- Updated to support the new filters created in the 2.0 beta API
Download this release
Release Info
Developer | dmchale |
Plugin | Disable REST API |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- disable-json-api.php +7 -2
- readme.txt +10 -2
disable-json-api.php
CHANGED
@@ -3,11 +3,16 @@
|
|
3 |
* Plugin Name: Disable JSON API
|
4 |
* Plugin URI: http://www.binarytemplar.com/disable-json-api
|
5 |
* Description: Uses the built-in filters of the JSON REST API to disable its functionality
|
6 |
-
* Version: 1.
|
7 |
* Author: Dave McHale
|
8 |
* Author URI: http://www.binarytemplar.com
|
9 |
* License: GPL2+
|
10 |
*/
|
11 |
|
|
|
12 |
add_filter('json_enabled', '__return_false');
|
13 |
-
add_filter('json_jsonp_enabled', '__return_false');
|
|
|
|
|
|
|
|
3 |
* Plugin Name: Disable JSON API
|
4 |
* Plugin URI: http://www.binarytemplar.com/disable-json-api
|
5 |
* Description: Uses the built-in filters of the JSON REST API to disable its functionality
|
6 |
+
* Version: 1.1
|
7 |
* Author: Dave McHale
|
8 |
* Author URI: http://www.binarytemplar.com
|
9 |
* License: GPL2+
|
10 |
*/
|
11 |
|
12 |
+
// Filters for WP-API version 1.x
|
13 |
add_filter('json_enabled', '__return_false');
|
14 |
+
add_filter('json_jsonp_enabled', '__return_false');
|
15 |
+
|
16 |
+
// Filters for WP-API version 2.x
|
17 |
+
add_filter('rest_enabled', '__return_false');
|
18 |
+
add_filter('rest_jsonp_enabled', '__return_false');
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: dmchale
|
3 |
Tags: admin, api, json, REST, rest-api, disable
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -11,6 +11,8 @@ Uses the built-in filters of the JSON REST API to disable its functionality.
|
|
11 |
|
12 |
== Description ==
|
13 |
|
|
|
|
|
14 |
The JSON REST API is currently in development via the [JSON REST API](https://wordpress.org/plugins/json-rest-api/)
|
15 |
plugin by Ryan McCue. Soon, this functionality will become a part of WordPress Core. While this is very exciting news
|
16 |
for many reasons, it is also not functionality that every site admin is going to want enabled on their website.
|
@@ -40,10 +42,16 @@ n/a
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
43 |
= 1.0 =
|
44 |
* Initial Release
|
45 |
|
46 |
== Upgrade Notice ==
|
47 |
|
|
|
|
|
|
|
48 |
= 1.0 =
|
49 |
* Initial Release
|
2 |
Contributors: dmchale
|
3 |
Tags: admin, api, json, REST, rest-api, disable
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.2.1
|
6 |
+
Stable tag: 1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
** Now supporting the 2.0 beta API **
|
15 |
+
|
16 |
The JSON REST API is currently in development via the [JSON REST API](https://wordpress.org/plugins/json-rest-api/)
|
17 |
plugin by Ryan McCue. Soon, this functionality will become a part of WordPress Core. While this is very exciting news
|
18 |
for many reasons, it is also not functionality that every site admin is going to want enabled on their website.
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 1.1 =
|
46 |
+
* Updated to support the new filters created in the 2.0 beta API
|
47 |
+
|
48 |
= 1.0 =
|
49 |
* Initial Release
|
50 |
|
51 |
== Upgrade Notice ==
|
52 |
|
53 |
+
= 1.1 =
|
54 |
+
* Now with support for the 2.0 beta API filters
|
55 |
+
|
56 |
= 1.0 =
|
57 |
* Initial Release
|