Plugin Directory

Changeset 3200611


Ignore:
Timestamp:
12/02/2024 07:04:52 AM (15 months ago)
Author:
brainvireinfo
Message:

updating plugin

Location:
manage-xml-rpc
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • manage-xml-rpc/trunk/manage-xml-rpc.php

    r3172826 r3200611  
    44 * Plugin URI: http://www.brainvire.com
    55 * Description: Disable XML-RPC for IP-specific control and disable XML-RPC Pingback method.
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Author: brainvireinfo
    88 * Author URI: http://www.brainvire.com
    99 * License: GPL2
     10 * Text Domain: manage-xml-rpc
    1011 *
    1112 * @package manage-xml-rpc
     
    320321add_filter( 'mod_rewrite_rules', 'mxr_htaccess_contents' );
    321322
     323 /**
     324 * Fallback for disabling the xmlrpc if .htaccess not working
     325 *
     326 * @param string $class The name of the XML-RPC server class.
     327 * @return string The same class name if conditions doesn't match.
     328 */
     329function mxr_disable_wp_xmlrpc($class)
     330{
     331    if ( esc_attr( get_option( 'allow_disallow' ) ) == 'disallow' ) {
     332        http_response_code(403);
     333        exit("Access Forbidden! You don't have permission to access this file.");
     334    }
     335    return $class;
     336}
     337add_filter('wp_xmlrpc_server_class', 'mxr_disable_wp_xmlrpc');
     338
    322339/**
    323340 * Extracts a specific section from an array of .htaccess rules.
  • manage-xml-rpc/trunk/readme.txt

    r3172850 r3200611  
    1 === Plugin Name ===
     1=== Manage XML-RPC ===
    22Contributors: brainvireinfo
    33Donate link: http://www.brainvire.com
    4 Tags: xmlrpc, security, xmlrpc.php attack, brute force attacks, xml-rpc pingback, block xml-rpc
     4Tags: security, xmlrpc.php attack, brute force attacks, xml-rpc pingback, block xml-rpc
    55Requires at least: 4.0
    6 Tested up to: 6.6
    7 Stable tag: 5.3
     6Tested up to: 6.7.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4646== Changelog ==
    4747
     48= 1.0.2 =
     491. Fixed bugs and conducted compatibility checks with the latest WordPress version 6.7.1.
     502. Resolved warnings and errors identified during the compatibility assessment.
     51
    4852= 1.0.1 =
    4953* Beta release with basic testing.
Note: See TracChangeset for help on using the changeset viewer.