Plugin Directory

Changeset 1917325


Ignore:
Timestamp:
07/31/2018 06:45:36 AM (8 years ago)
Author:
JeffMatson
Message:

Releasing 1.2.4

Location:
heartbeat-control
Files:
1 edited
70 copied

Legend:

Unmodified
Added
Removed
  • heartbeat-control/tags/1.2.4/trunk/heartbeat.php

    r1917302 r1917325  
    5656        foreach ( $this->settings as $rule ) {
    5757            if ( array_key_exists( 'heartbeat_control_behavior', $rule ) && $rule['heartbeat_control_behavior']  === 'disable' ) {
     58
     59                if ( ! array_key_exists( 'heartbeat_control_location', $rule ) ) {
     60                    return;
     61                }
     62
    5863                if ( $this->check_location( $rule['heartbeat_control_location'] ) ) {
    5964                    wp_deregister_script( 'heartbeat' );
     
    6974        foreach ( $this->settings as $rule ) {
    7075            if ( array_key_exists( 'heartbeat_control_behavior', $rule ) && $rule['heartbeat_control_behavior'] === 'modify' ) {
     76
     77                if ( ! array_key_exists( 'heartbeat_control_location', $rule ) ) {
     78                    return;
     79                }
     80
    7181                if ( $this->check_location( $rule['heartbeat_control_location'] ) ) {
    7282                    $settings['interval'] = intval( $rule['heartbeat_control_frequency'] );
  • heartbeat-control/trunk/heartbeat.php

    r1917302 r1917325  
    5656        foreach ( $this->settings as $rule ) {
    5757            if ( array_key_exists( 'heartbeat_control_behavior', $rule ) && $rule['heartbeat_control_behavior']  === 'disable' ) {
     58
     59                if ( ! array_key_exists( 'heartbeat_control_location', $rule ) ) {
     60                    return;
     61                }
     62
    5863                if ( $this->check_location( $rule['heartbeat_control_location'] ) ) {
    5964                    wp_deregister_script( 'heartbeat' );
     
    6974        foreach ( $this->settings as $rule ) {
    7075            if ( array_key_exists( 'heartbeat_control_behavior', $rule ) && $rule['heartbeat_control_behavior'] === 'modify' ) {
     76
     77                if ( ! array_key_exists( 'heartbeat_control_location', $rule ) ) {
     78                    return;
     79                }
     80
    7181                if ( $this->check_location( $rule['heartbeat_control_location'] ) ) {
    7282                    $settings['interval'] = intval( $rule['heartbeat_control_frequency'] );
Note: See TracChangeset for help on using the changeset viewer.