WP Better Emails - Version 0.2.1

Version Description

  • Editor role bug fix
    • Template centering fix
Download this release

Release Info

Developer nlemoine
Plugin Icon 128x128 WP Better Emails
Version 0.2.1
Comparing to
See all releases

Code changes from version 0.2 to 0.2.1

Files changed (3) hide show
  1. readme.txt +6 -1
  2. templates/template-1.php +1 -1
  3. wpbe.php +6 -4
readme.txt CHANGED
@@ -3,7 +3,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=7Q49V
3
  Tags: email, emails, html emails, templates, notification, wp_mail, wpmu, multisite
4
  Requires at least: 2.8
5
  Tested up to: 3.2+
6
- Stable tag: 0.2
7
 
8
  Adds a customizable good looking HTML template to all WP default plain/text emails and lets you set
9
  a custom sender name and email address.
@@ -116,6 +116,11 @@ You can place this function in your functions.php theme file or in a plugin.
116
 
117
  == Changelog ==
118
 
 
 
 
 
 
119
  = 0.2 =
120
  * WP TinyMCE editor support
121
  * HTML editor with CodeMirror as a TinyMCE plugin
3
  Tags: email, emails, html emails, templates, notification, wp_mail, wpmu, multisite
4
  Requires at least: 2.8
5
  Tested up to: 3.2+
6
+ Stable tag: 0.2.1
7
 
8
  Adds a customizable good looking HTML template to all WP default plain/text emails and lets you set
9
  a custom sender name and email address.
116
 
117
  == Changelog ==
118
 
119
+ = 0.2.1 =
120
+
121
+ * Editor role bug fix
122
+ * Template centering fix
123
+
124
  = 0.2 =
125
  * WP TinyMCE editor support
126
  * HTML editor with CodeMirror as a TinyMCE plugin
templates/template-1.php CHANGED
@@ -9,7 +9,7 @@ $template = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt
9
  <tr>
10
  <td style="padding:15px;">
11
  <center>
12
- <table width="550" cellpadding="0" bgcolor="#ffffff" cellspacing="0">
13
  <tr>
14
  <td align="left">
15
  <div style="border:solid 1px #d9d9d9;">
9
  <tr>
10
  <td style="padding:15px;">
11
  <center>
12
+ <table width="550" cellpadding="0" bgcolor="#ffffff" cellspacing="0" align="center">
13
  <tr>
14
  <td align="left">
15
  <div style="border:solid 1px #d9d9d9;">
wpbe.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Better Emails
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-better-emails/
5
  Description: Beautify the default text/plain WP mails into fully customizable HTML emails.
6
- Version: 0.2
7
  Author: ArtyShow
8
  Author URI: http://wordpress.org/extend/plugins/wp-better-emails/
9
  License: GPLv2
@@ -74,7 +74,7 @@ if (!class_exists('WP_Better_Emails')) {
74
  add_action('admin_menu', array(&$this, 'admin_menu'));
75
  add_action('wp_ajax_send_preview', array(&$this, 'ajax_send_preview'));
76
  add_action("admin_head", array(&$this, 'load_wp_tiny_mce'));
77
- if( version_compare($wp_version, '3.2', '<') && version_compare($wp_version, '3.0', '>') )
78
  add_action( 'admin_print_footer_scripts', 'wp_tiny_mce_preload_dialogs');
79
 
80
  // Filters
@@ -158,7 +158,7 @@ if (!class_exists('WP_Better_Emails')) {
158
  * @since 0.1
159
  */
160
  function admin_menu() {
161
- $this->page = add_options_page(__('Email settings', 'wp-better-emails'), __('WP Better Emails', 'wp-better-emails'), 'administrator', 'wpbe_options', array(&$this, 'admin_page'));
162
  add_action('admin_print_scripts-' . $this->page, array(&$this, 'admin_print_script'));
163
  add_action('admin_print_styles-' . $this->page, array(&$this, 'admin_print_style'));
164
  }
@@ -172,7 +172,9 @@ if (!class_exists('WP_Better_Emails')) {
172
  */
173
  function is_wpbe_page() {
174
  global $page_hook;
175
- if ($page_hook == $this->page)
 
 
176
  return true;
177
  return false;
178
  }
3
  Plugin Name: WP Better Emails
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-better-emails/
5
  Description: Beautify the default text/plain WP mails into fully customizable HTML emails.
6
+ Version: 0.2.1
7
  Author: ArtyShow
8
  Author URI: http://wordpress.org/extend/plugins/wp-better-emails/
9
  License: GPLv2
74
  add_action('admin_menu', array(&$this, 'admin_menu'));
75
  add_action('wp_ajax_send_preview', array(&$this, 'ajax_send_preview'));
76
  add_action("admin_head", array(&$this, 'load_wp_tiny_mce'));
77
+ if( version_compare($wp_version, '3.2', '<') && version_compare($wp_version, '3.0.6', '>') )
78
  add_action( 'admin_print_footer_scripts', 'wp_tiny_mce_preload_dialogs');
79
 
80
  // Filters
158
  * @since 0.1
159
  */
160
  function admin_menu() {
161
+ $this->page = add_options_page(__('Email settings', 'wp-better-emails'), __('WP Better Emails', 'wp-better-emails'), 'add_users', 'wpbe_options', array(&$this, 'admin_page'));
162
  add_action('admin_print_scripts-' . $this->page, array(&$this, 'admin_print_script'));
163
  add_action('admin_print_styles-' . $this->page, array(&$this, 'admin_print_style'));
164
  }
172
  */
173
  function is_wpbe_page() {
174
  global $page_hook;
175
+ if( $this->page === false )
176
+ return false;
177
+ if ( $this->page == $page_hook )
178
  return true;
179
  return false;
180
  }