| @@ -102,11 +102,9 @@ | ||
| 102 | 102 | ob_start(); |
| 103 | 103 | include $this->get_include_file( $this->template ); |
| 104 | 104 | $content = ob_get_clean(); |
| 105 | 105 | |
| 106 | - $content = str_replace( '%%INNER_CONTENT%%', $this->get_inner_content(), $content ); | |
| 107 | - | |
| 108 | - return $content; | |
| 106 | + return str_replace( '%%INNER_CONTENT%%', $this->get_inner_content(), $content ); | |
| 109 | 107 | } |
| 110 | 108 | |
| 111 | 109 | /** |
| 112 | 110 | * Gets include file path from the given file name. |
| @@ -193,10 +191,9 @@ | ||
| 193 | 191 | } |
| 194 | 192 | |
| 195 | 193 | $subject = $this->get_subject(); |
| 196 | 194 | $headers = $this->get_headers(); |
| 197 | - | |
| 198 | - $sent = wp_mail( $recipients, $subject, $content, $headers ); | |
| 195 | + $sent = wp_mail( $recipients, $subject, $content, $headers ); | |
| 199 | 196 | |
| 200 | 197 | if ( ! $sent ) { |
| 201 | 198 | $headers = implode( "\r\n", $headers ); |
| 202 | 199 | $sent = mail( $recipients, $subject, $content, $headers ); |