Changeset 1205162
- Timestamp:
- 07/23/2015 07:20:46 PM (11 years ago)
- Location:
- sendwithus/trunk
- Files:
-
- 3 edited
-
inc/single_site_overrides.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
sendwithus.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendwithus/trunk/inc/single_site_overrides.php
r934659 r1205162 237 237 if (!function_exists('wp_password_change_notification')) { 238 238 function wp_password_change_notification( $user ) { 239 239 240 $default_message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; 240 241 $blogname = get_bloginfo('name'); 241 242 $api = new \sendwithus\API($GLOBALS['api_key']); 243 error_log(print_r($blogname,true)); 242 244 243 245 //Subject line for default wordpress email … … 265 267 266 268 // Adds a function to occur when the filter retrieve_password_message is called 267 add_filter ( "retrieve_password_message", "reset_password_notification", 10, 3 );269 add_filter ('retrieve_password_message', 'reset_password_notification', 10, 3 ); 268 270 function reset_password_notification($content, $key, $user_login_id = NULL) { 269 271 if($user_login_id != NULL){ 270 $user = get_user data($user_login_id);272 $user = get_user_by('login', $user_login_id); 271 273 } 272 274 else{ 273 275 //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 ); 275 277 if( is_email( $input ) ) { 276 278 $user = get_user_by( 'email', $input ); … … 313 315 ) 314 316 ); 317 error_log(print_r($response, true)); 315 318 316 319 -
sendwithus/trunk/readme.txt
r1157099 r1205162 3 3 Tags: email, transactional, sendwithus, sendgrid, mandrill, mailgun, message bus, postmark, multisite, network, wpmu 4 4 Requires at least: 3.9.0 5 Tested up to: 3.9.15 Tested up to: 4.2.2 6 6 Stable tag: 4.3 7 7 License: GPLv2 … … 52 52 == Changelog == 53 53 54 = 1.1.0 = 55 * Updated client to work with WordPress 4.0+ 56 * Switched semantic versioning 57 54 58 = 1.03 = 55 59 * updated PHP client, yay! -
sendwithus/trunk/sendwithus.php
r1157099 r1205162 2 2 /** 3 3 * @package sendwithus 4 * @version 1. 034 * @version 1.1.0 5 5 */ 6 6 /* … … 9 9 Description: Easily integrate transactional email into WordPress' default emails. 10 10 Author: Dylan Moore, Kyle Poole, and Cory Purnell 11 Version: 1. 0311 Version: 1.1.0 12 12 Author URI: http://www.sendwithus.com 13 13 */
Note: See TracChangeset
for help on using the changeset viewer.