Changeset 784805
- Timestamp:
- 10/08/2013 08:06:40 PM (11 years ago)
- Location:
- email-post-changes/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
email-post-changes/trunk/class.email-post-changes.php
r713239 r784805 13 13 const OPTION = 'email_post_changes'; 14 14 15 function init() {15 function init() { 16 16 static $instance = null; 17 17 … … 101 101 $right = normalize_whitespace( $right ); 102 102 103 $left_lines = split( "\n", $left );104 $right_lines = split( "\n", $right );103 $left_lines = ( "\n", $left ); 104 $right_lines = ( "\n", $right ); 105 105 106 106 require_once( dirname( __FILE__ ) . '/unified.php' ); … … 295 295 $return['emails'] = $this->defaults['emails']; 296 296 } else { 297 if ( is_string( $options['emails'] ) ) 298 $_emails = preg_split( '(\n|\r)', $options['emails'], -1, PREG_SPLIT_NO_EMPTY ); 299 $_emails = array_unique( (array) $_emails ); 297 $_emails = is_string( $options['emails'] ) ? preg_split( '(\n|\r)', $options['emails'], -1, PREG_SPLIT_NO_EMPTY ) : array(); 298 $_emails = array_unique( $_emails ); 300 299 $emails = array_filter( $_emails, 'is_email' ); 301 300 … … 312 311 313 312 // Don't store a huge list of invalid emails addresses in the option 314 if ( count( $return['invalid_emails'] ) > 200 ) {313 if ( count( $return['invalid_emails'] ) > 200 ) { 315 314 $return['invalid_emails'] = array_slice( $return['invalid_emails'], 0, 200 ); 316 315 $return['invalid_emails'][] = __( 'and many more not listed here' ); -
email-post-changes/trunk/email-post-changes.php
r713243 r784805 5 5 Description: Whenever a change to a post or page is made, those changes are emailed to the users and email addresses you specify. 6 6 Plugin URI: http://wordpress.org/extend/plugins/email-post-changes/ 7 Version: 1. 5-beta7 Version: 1.-beta 8 8 Author: Michael D Adams 9 9 Author URI: http://blogwaffe.com/ -
email-post-changes/trunk/readme.txt
r713240 r784805 1 1 === Email Post Changes === 2 Contributors: mdawaffe, automattic, viper007bond, nickmomrik 2 Contributors: mdawaffe, automattic, viper007bond, nickmomrik 3 3 Tags: email, diff, post, page, change 4 4 Requires at least: 3.2 5 5 Tested up to: 3.6 6 Stable tag: 1. 56 Stable tag: 1. 7 7 8 8 Emails you whenever a change to a post or page is made. … … 28 28 29 29 == Changelog == 30 31 32 30 33 31 34 = 1.5 =
Note: See TracChangeset
for help on using the changeset viewer.