Plugin Directory

Changeset 2973921


Ignore:
Timestamp:
10/02/2023 02:58:48 PM (3 years ago)
Author:
slick2
Message:

supported version

Location:
traffic-jammer/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • traffic-jammer/trunk/README.md

    r2942161 r2973921  
    66Requires at least: 5.2
    77
    8 Tested up to: 6.2
     8Tested up to: 6.3.1
    99
    10 Stable tag: 1.2.1
     10Stable tag: 1.2.2
    1111
    1212Requires PHP: 7.4
  • traffic-jammer/trunk/readme.txt

    r2942161 r2973921  
    44Tags: block, ip, pantheon, block ip, security, malicious ip, block bots, pantheon block ip
    55Requires at least: 5.2
    6 Tested up to: 6.2
     6Tested up to: 6.3.1
    77Stable tag: 1.2.1
    88Requires PHP: 7.4
     
    5555
    5656== Changelog ==
     57= 1.2.2 =
     58* Tested to work WordPress version 6.3.1
     59
    5760= 1.2.1 =
    5861* fixed PHP warnings when running cli commands
  • traffic-jammer/trunk/traffic-jammer.php

    r2942161 r2973921  
    33 * Traffic Jammer
    44 *
    5  * @package  TrafficJammer
    6  *
    7  * @wordpress-plguin
     5 * @package TrafficJammer
     6 *
     7 * @wordpress-plugin
    88 * Plugin Name:        Traffic Jammer
    99 * Plugin URI:          https://wordpress.org/plugins/traffic-jammer/
    1010 * Description:         WordPress plugin to block IP and bots that causes malicious traffic.
    11  * Version:             1.2.1
     11 * Version:             1.2.2
    1212 * Requires at least:   5.2
    1313 * Requires PHP:        7.4
     
    1919 */
    2020
    21 /** Sanitize server variables */
    22 $cef6d44b_server = array_map( 'trafficjammer_server_var', $_SERVER );
     21/**
     22 * Sanitize server variables.
     23 */
     24$cef6d44b_server = array_map('trafficjammer_server_var', $_SERVER);
    2325// real visitor IP address when using Cloudflare proxy.
    24 if ( ! empty( $cef6d44b_server['HTTP_CF_CONNECTING_IP'] ) ) {
    25     $cef6d44b_server['REMOTE_ADDR'] = $cef6d44b_server['HTTP_CF_CONNECTING_IP'];
     26if ( !empty($cef6d44b_server['HTTP_CF_CONNECTING_IP']) ) {
     27    $cef6d44b_server['REMOTE_ADDR'] = $cef6d44b_server['HTTP_CF_CONNECTING_IP'];
    2628}
    2729
     
    204206 *
    205207 * @param array $username callback to show username.
     208 *
    206209 * @return void
    207210 */
Note: See TracChangeset for help on using the changeset viewer.