WordPress.org

Plugin Directory

Changeset 1608313


Ignore:
Timestamp:
03/06/17 02:05:18 (3 months ago)
Author:
lucasbustamante
Message:

Updated to 1.7

  • Fixed "Warning: Cannot modify header information – headers already sent" in some rare cases
Location:
very-simple-password
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • very-simple-password/trunk/readme.txt

    r1582307 r1608313  
    5454* Send email to site admin if brute force protection was triggered 
    5555 
     56= 1.7 = 
     57* Fixed "Warning: Cannot modify header information – headers already sent" that occured in some rare cases 
     58 
    5659== Changelog == 
    5760 
     
    6871* Send email to site admin if brute force protection was triggered 
    6972 
     73= 1.7 = 
     74* Fixed "Warning: Cannot modify header information – headers already sent" that occured in some rare cases 
     75 
    7076== Installation == 
    7177- Download "Very Simple Password for Wordpress" 
  • very-simple-password/trunk/very-simple-password-for-wordpress.php

    r1582307 r1608313  
    44Plugin URI:  https://developer.wordpress.org/plugins/very-simple-password-for-wordpress/ 
    55Description: This adds a simple password protection for wordpress. 
    6 Version:     1.6 
     6Version:     1.7 
    77Author:      Lucas Bustamante 
    88Author URI:  https://www.lucasbustamante.com.br 
     
    1616    // Create database 
    1717    global $VSPFW_db_version; 
    18     $VSPFW_db_version = '1.6'; 
     18    $VSPFW_db_version = '1.7'; 
    1919 
    2020    function VSPFW_install() { 
     
    296296    } 
    297297} 
    298 add_action('init', 'vspfw_css', 5); 
     298add_action('init', 'vspfw_css', 50); 
    299299 
    300300// Load admin CSS 
     
    342342    } 
    343343} 
    344 add_action('admin_enqueue_scripts', 'vspfw_admin_css', 5); 
     344add_action('admin_enqueue_scripts', 'vspfw_admin_css', 50); 
    345345 
    346346// Load admin JS 
     
    476476                        // Set the cookie with the unique id for the period specified by the admin 
    477477                        setcookie('vspfw_password_entered', esc_html($unique_key), strtotime( '+'.get_option('vspfw_days').' days'), '/', esc_html(get_option('vspfw_debug_domain'))); 
     478                        $_COOKIE['vspfw_password_entered'] = esc_html($unique_key); 
    478479                        // Refresh after setting cookie, because $_COOKIE is set on page load - http://stackoverflow.com/questions/3230133/accessing-cookie-immediately-after-setcookie 
    479480                        //echo '<script type="text/javascript">window.location.reload(true);</script>'; 
    480                         header('Refresh:0'); 
     481                        //header('Refresh:0'); 
    481482                } else { 
    482483                    // Add this failed login to database to prevent anti-brute force attacks 
Note: See TracChangeset for help on using the changeset viewer.