Plugin Directory

Changeset 3264143


Ignore:
Timestamp:
03/30/2025 06:35:12 PM (12 months ago)
Author:
slick2
Message:

Update to version 1.4.9 from GitHub

Location:
traffic-jammer
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • traffic-jammer/tags/1.4.9/readme.txt

    r3264080 r3264143  
    55Requires at least: 5.6
    66Tested up to: 6.7.2
    7 Stable tag: 1.4.8
     7Stable tag: 1.4.9
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    5959
    6060== Changelog ==
     61
     62= 1.4.9 =
     63 * disallow network activation on a multisite
     64
     65= 1.4.8 =
     66 * fix php error during plugin deactivation
     67
    6168= 1.4.7 =
    6269 * fix bug on the report
  • traffic-jammer/tags/1.4.9/traffic-jammer.php

    r3264080 r3264143  
    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.4.8
     11 * Network:             false
     12 * Version:             1.4.9
    1213 * Requires at least:   5.6
    1314 * Requires PHP:        7.4
     
    3132 * Activate plugin
    3233 *
    33  * @return void
    34  */
    35 function trafficjammer_activate() {
     34 * @param string $network_wide callback value.
     35 * @return void
     36 */
     37function trafficjammer_activate( $network_wide ) {
     38    if ( is_multisite() && $network_wide ) {
     39        wp_die( 'Plugin cannot be activated network wide, try activating the plugin on individual sites.' );
     40    }
     41
    3642    global $wpdb;
    3743    // define the bad bots.
     
    8894    }
    8995}
     96
    9097register_activation_hook( __FILE__, 'trafficjammer_activate' );
    9198
  • traffic-jammer/trunk/readme.txt

    r3264080 r3264143  
    55Requires at least: 5.6
    66Tested up to: 6.7.2
    7 Stable tag: 1.4.8
     7Stable tag: 1.4.9
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    5959
    6060== Changelog ==
     61
     62= 1.4.9 =
     63 * disallow network activation on a multisite
     64
     65= 1.4.8 =
     66 * fix php error during plugin deactivation
     67
    6168= 1.4.7 =
    6269 * fix bug on the report
  • traffic-jammer/trunk/traffic-jammer.php

    r3264080 r3264143  
    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.4.8
     11 * Network:             false
     12 * Version:             1.4.9
    1213 * Requires at least:   5.6
    1314 * Requires PHP:        7.4
     
    3132 * Activate plugin
    3233 *
    33  * @return void
    34  */
    35 function trafficjammer_activate() {
     34 * @param string $network_wide callback value.
     35 * @return void
     36 */
     37function trafficjammer_activate( $network_wide ) {
     38    if ( is_multisite() && $network_wide ) {
     39        wp_die( 'Plugin cannot be activated network wide, try activating the plugin on individual sites.' );
     40    }
     41
    3642    global $wpdb;
    3743    // define the bad bots.
     
    8894    }
    8995}
     96
    9097register_activation_hook( __FILE__, 'trafficjammer_activate' );
    9198
Note: See TracChangeset for help on using the changeset viewer.