Plugin Directory

Changeset 2304993


Ignore:
Timestamp:
05/14/2020 03:52:02 PM (6 years ago)
Author:
bogdand
Message:

[fix2] New minor release 1.0.1

Location:
was-it-you
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • was-it-you/tags/1.0.1/inc/login.php

    r2304800 r2304993  
    7979        $site_title = get_bloginfo( 'name' );
    8080
    81         //Message body
    82         $message_body_text = sprintf( esc_html__( 'We detected a new login from: %1$e - If this was you please ignore this email. If you don\'t recognize the login attempt we recommend you to login and change your password.', 'was-it-you' ), $ip );
     81        // Message body.
     82        $message_body_text = sprintf( esc_html__( 'We detected a new login from: %1$s - If this was you please ignore this email. If you don\'t recognize the login attempt we recommend you to login and change your password.', 'was-it-you' ), $ip );
    8383
     84        // Set html content-type.
     85        add_filter( 'wp_mail_content_type', [ $this, 'email_content_type' ], 10 );
    8486        wp_mail( $email_to, 'New login to your account on ' . $site_title, $message_body_text );
    8587
     88        // Reset content-type to avoid conflicts.
     89        remove_filter( 'wp_mail_content_type', [ $this, 'email_content_type' ] );
     90
     91    }
     92
     93    /**
     94     * Content type of the sent email.
     95     *
     96     * @return string Content type
     97     */
     98    public function email_content_type() {
     99        return 'text/html';
    86100    }
    87101
  • was-it-you/tags/1.0.1/readme.txt

    r2304800 r2304993  
    2727For simplicity we'll showcase and explain the available options:
    2828**Number of IPs to save**
     29
    2930* 0 is the default setting.
    3031* By default the plugin stores all login IPs in user history.
    3132* Any number larger than 0 determines the number of login IPs to save in user history.
    3233
    33 = Does the plugin stores any data? =
     34= Does the plugin store any data? =
    3435The plugin tracks the last IP's used to login for each account and stores them in a custom table for performance reasons.
    3536
    36 = Does this plugin is GDPR compliant? =
     37= Is this plugin GDPR compliant? =
    3738This version is not GDPR compliant. The IP's are stored in plain, un-anonymized. We planed for a GDPR compliance feature soon.
    3839
  • was-it-you/trunk/inc/login.php

    r2304799 r2304993  
    7979        $site_title = get_bloginfo( 'name' );
    8080
    81         //Message body
    82         $message_body_text = sprintf( esc_html__( 'We detected a new login from: %1$e - If this was you please ignore this email. If you don\'t recognize the login attempt we recommend you to login and change your password.', 'was-it-you' ), $ip );
     81        // Message body.
     82        $message_body_text = sprintf( esc_html__( 'We detected a new login from: %1$s - If this was you please ignore this email. If you don\'t recognize the login attempt we recommend you to login and change your password.', 'was-it-you' ), $ip );
    8383
     84        // Set html content-type.
     85        add_filter( 'wp_mail_content_type', [ $this, 'email_content_type' ], 10 );
    8486        wp_mail( $email_to, 'New login to your account on ' . $site_title, $message_body_text );
    8587
     88        // Reset content-type to avoid conflicts.
     89        remove_filter( 'wp_mail_content_type', [ $this, 'email_content_type' ] );
     90
     91    }
     92
     93    /**
     94     * Content type of the sent email.
     95     *
     96     * @return string Content type
     97     */
     98    public function email_content_type() {
     99        return 'text/html';
    86100    }
    87101
  • was-it-you/trunk/readme.txt

    r2304799 r2304993  
    2727For simplicity we'll showcase and explain the available options:
    2828**Number of IPs to save**
     29
    2930* 0 is the default setting.
    3031* By default the plugin stores all login IPs in user history.
    3132* Any number larger than 0 determines the number of login IPs to save in user history.
    3233
    33 = Does the plugin stores any data? =
     34= Does the plugin store any data? =
    3435The plugin tracks the last IP's used to login for each account and stores them in a custom table for performance reasons.
    3536
    36 = Does this plugin is GDPR compliant? =
     37= Is this plugin GDPR compliant? =
    3738This version is not GDPR compliant. The IP's are stored in plain, un-anonymized. We planed for a GDPR compliance feature soon.
    3839
Note: See TracChangeset for help on using the changeset viewer.