Disable XML-RPC-API - Version 2.1.4.3

Version Description

  • Hotfix for error on removing wordpress metadata
Download this release

Release Info

Developer aminnz
Plugin Icon 128x128 Disable XML-RPC-API
Version 2.1.4.3
Comparing to
See all releases

Code changes from version 2.1.4.1 to 2.1.4.3

disable-xml-rpc-api.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Disable XML-RPC-API
4
  Plugin URI: https://neatma.com/dsxmlrpc-plugin/
5
  Description: Lightweight plugin to disable XML-RPC API and Pingbacks,Trackbacks for faster and more secure website.
6
- Version: 2.1.4.1
7
  Tested up to: 6.0
8
  Requires at least: 3.5
9
  Author: Neatma
@@ -456,7 +456,7 @@ allow from all
456
  {
457
  /* slow down the heartbeat */
458
  if ($this->get_option('slow-heartbeat')) {
459
- add_filter('heartbeat_settings', 'slow_heartbeat');
460
  }
461
 
462
  /* Disable wp-json rest api */
@@ -482,14 +482,16 @@ allow from all
482
  }
483
  /* disable oEmbed for youtube */
484
  if ($this->get_option('disable-oembed')) {
485
- add_action('wp_footer', 'disable_oembed', 11);
486
  }
487
- /* Remove the WordPress version info url parameter. */
488
- if ($this->get_option('remove-wp-ver')) {
 
489
  remove_action('wp_head', 'wp_generator');
490
- add_filter('script_loader_src', 'remove_ver_param');
491
- add_filter('style_loader_src', 'remove_ver_param');
492
  }
 
493
  }
494
 
495
  /**
3
  Plugin Name: Disable XML-RPC-API
4
  Plugin URI: https://neatma.com/dsxmlrpc-plugin/
5
  Description: Lightweight plugin to disable XML-RPC API and Pingbacks,Trackbacks for faster and more secure website.
6
+ Version: 2.1.4.3
7
  Tested up to: 6.0
8
  Requires at least: 3.5
9
  Author: Neatma
456
  {
457
  /* slow down the heartbeat */
458
  if ($this->get_option('slow-heartbeat')) {
459
+ add_filter('heartbeat_settings', [$this, 'slow_heartbeat']);
460
  }
461
 
462
  /* Disable wp-json rest api */
482
  }
483
  /* disable oEmbed for youtube */
484
  if ($this->get_option('disable-oembed')) {
485
+ add_action('wp_footer', [$this, 'disable_oembed'], 11);
486
  }
487
+
488
+ // Remove the WordPress version info url parameter
489
+ if ($this->get_option('remove-wp-ver') && !is_admin()) {
490
  remove_action('wp_head', 'wp_generator');
491
+ add_filter('script_loader_src', [$this, 'remove_ver_param']);
492
+ add_filter('style_loader_src', [$this, 'remove_ver_param']);
493
  }
494
+
495
  }
496
 
497
  /**
lib/skelet/framework.config.php CHANGED
@@ -250,14 +250,14 @@ Back in 2013, attackers sent Pingback requests through xmlrpc.php of approximate
250
  'type' => 'switcher',
251
  'title' => 'Hide WordPress Version',
252
  'desc' => 'Remove WordPress version for security reasons',
253
- 'default' => true,
254
  ),
255
  array(
256
  'id' => 'disable-code-editor',
257
  'type' => 'switcher',
258
  'title' => 'Disable built-in WordPress file editor',
259
  'desc' => 'Disable WordPress file editor for security reasons',
260
- 'default' => true,
261
  'help' => 'If you want to edit your themes and plugins codes you need to switch off this option!'
262
  ),
263
  array(
250
  'type' => 'switcher',
251
  'title' => 'Hide WordPress Version',
252
  'desc' => 'Remove WordPress version for security reasons',
253
+ 'default' => false,
254
  ),
255
  array(
256
  'id' => 'disable-code-editor',
257
  'type' => 'switcher',
258
  'title' => 'Disable built-in WordPress file editor',
259
  'desc' => 'Disable WordPress file editor for security reasons',
260
+ 'default' => false,
261
  'help' => 'If you want to edit your themes and plugins codes you need to switch off this option!'
262
  ),
263
  array(
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://neatma.com
5
  Contributors: aminnz,neatmarketing
6
  Description: Simple plugin to disable XML-RPC API and X-Pingback for faster and more secure website.
7
  Tags: disable xml-rpc, xmlrpc, disable xmlrpc,remove xmlrpc, XML-RPC, pingback, stop brute force attacks
8
- Version: 2.1.4.1
9
  Tested up to: 6.0
10
  Requires at least: 3.5
11
  Author: Neatma
@@ -151,4 +151,10 @@ screenshot-2.jpg
151
  = 2.1.4 =
152
  * Fix some minor bugs
153
  * Refactor the entire codes
154
- * Add a fallback function for situations htaccess is not working
 
 
 
 
 
 
5
  Contributors: aminnz,neatmarketing
6
  Description: Simple plugin to disable XML-RPC API and X-Pingback for faster and more secure website.
7
  Tags: disable xml-rpc, xmlrpc, disable xmlrpc,remove xmlrpc, XML-RPC, pingback, stop brute force attacks
8
+ Version: 2.1.4.3
9
  Tested up to: 6.0
10
  Requires at least: 3.5
11
  Author: Neatma
151
  = 2.1.4 =
152
  * Fix some minor bugs
153
  * Refactor the entire codes
154
+ * Add a fallback function for situations htaccess is not working
155
+
156
+ = 2.1.4.2 =
157
+ * Hotfix for error on update
158
+
159
+ = 2.1.4.3 =
160
+ * Hotfix for error on removing wordpress metadata