Disable REST API - Version 1.4.1

Version Description

  • Fixed echo of text URL to primary Plugins page in WP Dashboard
Download this release

Release Info

Developer dmchale
Plugin Icon 128x128 Disable REST API
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4 to 1.4.1

classes/disable-rest-api.php CHANGED
@@ -127,7 +127,7 @@ class Disable_REST_API {
127
  */
128
  public function settings_link( $links ) {
129
 
130
- $settings_url = menu_page_url( self::MENU_SLUG );
131
  $settings_link = "<a href='$settings_url'>" . esc_html__( "Settings", "disable-json-api" ) . "</a>";
132
  array_unshift( $links, $settings_link );
133
 
127
  */
128
  public function settings_link( $links ) {
129
 
130
+ $settings_url = menu_page_url( self::MENU_SLUG, false );
131
  $settings_link = "<a href='$settings_url'>" . esc_html__( "Settings", "disable-json-api" ) . "</a>";
132
  array_unshift( $links, $settings_link );
133
 
disable-json-api.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Disable REST API
4
  * Plugin URI: http://www.binarytemplar.com/disable-json-api
5
  * Description: Disable the use of the JSON REST API on your website to anonymous users
6
- * Version: 1.4
7
  * Author: Dave McHale
8
  * Author URI: http://www.binarytemplar.com
9
  * Text Domain: disable-json-api
3
  * Plugin Name: Disable REST API
4
  * Plugin URI: http://www.binarytemplar.com/disable-json-api
5
  * Description: Disable the use of the JSON REST API on your website to anonymous users
6
+ * Version: 1.4.1
7
  * Author: Dave McHale
8
  * Author URI: http://www.binarytemplar.com
9
  * Text Domain: disable-json-api
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: admin, api, json, REST, rest-api, disable
4
  Requires at least: 4.4
5
  Requires PHP: 5.3
6
  Tested up to: 4.8
7
- Stable tag: 1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -56,6 +56,9 @@ disabled so long as this plugin is active. Namespaces and routes may be whitelis
56
 
57
  == Changelog ==
58
 
 
 
 
59
  = 1.4 =
60
  * Tested for WP v4.8
61
  * Tested for PHP 5.3+
4
  Requires at least: 4.4
5
  Requires PHP: 5.3
6
  Tested up to: 4.8
7
+ Stable tag: 1.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
56
 
57
  == Changelog ==
58
 
59
+ = 1.4.1 =
60
+ * Fixed echo of text URL to primary Plugins page in WP Dashboard
61
+
62
  = 1.4 =
63
  * Tested for WP v4.8
64
  * Tested for PHP 5.3+