Plugin Directory

Changeset 1205162


Ignore:
Timestamp:
07/23/2015 07:20:46 PM (11 years ago)
Author:
dylanemoore
Message:

updated PHP client - 1.1.0

Location:
sendwithus/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sendwithus/trunk/inc/single_site_overrides.php

    r934659 r1205162  
    237237if (!function_exists('wp_password_change_notification')) {
    238238    function wp_password_change_notification( $user ) {
     239
    239240        $default_message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n";
    240241        $blogname = get_bloginfo('name');
    241242        $api = new \sendwithus\API($GLOBALS['api_key']);
     243        error_log(print_r($blogname,true));
    242244
    243245        //Subject line for default wordpress email
     
    265267
    266268// Adds a function to occur when the filter retrieve_password_message is called
    267 add_filter ("retrieve_password_message", "reset_password_notification", 10, 3 );
     269add_filter ('retrieve_password_message', 'reset_password_notification', 10, 3 );
    268270function reset_password_notification($content, $key, $user_login_id = NULL) {
    269271    if($user_login_id != NULL){
    270         $user = get_userdata($user_login_id);
     272        $user = get_user_by('login', $user_login_id);
    271273    }
    272274    else{
    273275        //Grabs the information about the user attempting to reset their password
    274         $input = filter_input( INPUT_POST, 'user_login', FILTER_SANITIZE_STRING );   
     276        $input = filter_input( INPUT_POST, 'user_login', FILTER_SANITIZE_STRING );
    275277        if( is_email( $input ) ) {
    276278            $user = get_user_by( 'email', $input );
     
    313315        )
    314316    );
     317    error_log(print_r($response, true));
    315318
    316319
  • sendwithus/trunk/readme.txt

    r1157099 r1205162  
    33Tags: email, transactional, sendwithus, sendgrid, mandrill, mailgun, message bus, postmark, multisite, network, wpmu
    44Requires at least: 3.9.0
    5 Tested up to: 3.9.1
     5Tested up to: 4.2.2
    66Stable tag: 4.3
    77License: GPLv2
     
    5252== Changelog ==
    5353
     54= 1.1.0 =
     55* Updated client to work with WordPress 4.0+
     56* Switched semantic versioning
     57
    5458= 1.03 =
    5559* updated PHP client, yay!
  • sendwithus/trunk/sendwithus.php

    r1157099 r1205162  
    22/**
    33 * @package sendwithus
    4  * @version 1.03
     4 * @version 1.1.0
    55 */
    66/*
     
    99Description: Easily integrate transactional email into WordPress' default emails.
    1010Author: Dylan Moore, Kyle Poole, and Cory Purnell
    11 Version: 1.03
     11Version: 1.1.0
    1212Author URI: http://www.sendwithus.com
    1313*/
Note: See TracChangeset for help on using the changeset viewer.