Changeset 2735764
- Timestamp:
- 06/01/2022 03:31:00 PM (4 years ago)
- Location:
- emlg-tfa
- Files:
-
- 20 added
- 3 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/css (added)
-
tags/1.0.1/css/dashboard.css (added)
-
tags/1.0.1/css/emlg-login.css (added)
-
tags/1.0.1/emlg-tfa.php (added)
-
tags/1.0.1/includes (added)
-
tags/1.0.1/includes/class-emlg-ajax.php (added)
-
tags/1.0.1/includes/class-emlg-codes.php (added)
-
tags/1.0.1/includes/class-emlg-dashboard.php (added)
-
tags/1.0.1/includes/class-emlg-email.php (added)
-
tags/1.0.1/includes/class-emlg-login.php (added)
-
tags/1.0.1/index.php (added)
-
tags/1.0.1/js (added)
-
tags/1.0.1/js/dashboard.js (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/emlg-tfa.pot (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/views (added)
-
tags/1.0.1/views/admin-page.php (added)
-
tags/1.0.1/views/submit-code.php (added)
-
trunk/emlg-tfa.php (modified) (2 diffs)
-
trunk/includes/class-emlg-email.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
emlg-tfa/trunk/emlg-tfa.php
r2735692 r2735764 5 5 * Plugin Name: EMLG TFA 6 6 * Description: Two-Factor Authentication via out of band email 7 * Version: 1.0 8 * Contributors: wprj,kamiwdp67 * Version: 1.0.1 8 * Author: wprj, Lalaina Rajaonah 9 9 * Author URI: https://codecanyon.net/user/wprj 10 10 * Text Domain: emlg-tfa … … 14 14 */ 15 15 16 const EMLG_VERSION = '1.0 ';16 const EMLG_VERSION = '1.0.1'; 17 17 define( 'EMLG_BASE', plugin_basename( __FILE__ ) ); 18 18 define( 'EMLG_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) ); -
emlg-tfa/trunk/includes/class-emlg-email.php
r2735692 r2735764 71 71 72 72 /** 73 * Change `wp_mail` content type to HTML 74 * 75 * @return string 76 */ 77 public function content_type() { 78 return 'text/html'; 79 } 80 81 /** 73 82 * Try to send the email 74 83 * … … 77 86 public function send() { 78 87 add_action( 'wp_mail_failed', [ $this, 'mail_failed' ] ); 79 $success = wp_mail( $this->to, $this->subject, $this->message, [ 'From: ' . $this->sender_name . '<' . $this->sender_email . '>' ] ); 88 add_filter( 'wp_mail_content_type', [ $this, 'content_type' ] ); 89 $success = wp_mail( $this->to, $this->subject, $this->message, [ 'From: ' . $this->sender_name . ' <' . $this->sender_email . '>' ] ); 90 remove_filter( 'wp_mail_content_type', [ $this, 'content_type' ] ); 80 91 remove_action( 'wp_mail_failed', [ $this, 'mail_failed' ] ); 81 92 -
emlg-tfa/trunk/readme.txt
r2735692 r2735764 5 5 Tested up to: 6.0 6 6 Requires PHP: 5.6.20 7 Stable tag: 1.0 7 Stable tag: 1.0.1 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 56 56 == Changelog == 57 57 58 = 1.0.1 = 59 60 Fix: allow `wp_mail` to send formatted HTML 61 58 62 = 1.0 = 59 63
Note: See TracChangeset
for help on using the changeset viewer.