Plugin Directory

Changeset 784805

Timestamp:
10/08/2013 08:06:40 PM (11 years ago)
Author:
dllh
Message:

Fix a few php notices, props @iandunn, @Ov3rfly.

See http://wordpress.org/support/topic/error-strict-standards-on-all-pages-of-wordpress-backend-1?replies=2

Location:
email-post-changes/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • email-post-changes/trunk/class.email-post-changes.php

    r713239 r784805  
    1313    const OPTION = 'email_post_changes';
    1414
    15     function init() {
     15    function init() {
    1616        static $instance = null;
    1717
     
    101101            $right = normalize_whitespace( $right );
    102102
    103             $left_lines  = split( "\n", $left );
    104             $right_lines = split( "\n", $right );
     103            $left_lines  = ( "\n", $left );
     104            $right_lines = ( "\n", $right );
    105105
    106106            require_once( dirname( __FILE__ ) . '/unified.php' );
     
    295295                $return['emails'] = $this->defaults['emails'];
    296296        } 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 );
    300299            $emails = array_filter( $_emails, 'is_email' );
    301300
     
    312311
    313312            // 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 ) {
    315314                $return['invalid_emails'] = array_slice( $return['invalid_emails'], 0, 200 );
    316315                $return['invalid_emails'][] = __( 'and many more not listed here' );
  • email-post-changes/trunk/email-post-changes.php

    r713243 r784805  
    55Description: Whenever a change to a post or page is made, those changes are emailed to the users and email addresses you specify.
    66Plugin URI: http://wordpress.org/extend/plugins/email-post-changes/
    7 Version: 1.5-beta
     7Version: 1.-beta
    88Author: Michael D Adams
    99Author URI: http://blogwaffe.com/
  • email-post-changes/trunk/readme.txt

    r713240 r784805  
    11=== Email Post Changes ===
    2 Contributors: mdawaffe, automattic, viper007bond, nickmomrik
     2Contributors: mdawaffe, automattic, viper007bond, nickmomrik
    33Tags: email, diff, post, page, change
    44Requires at least: 3.2
    55Tested up to: 3.6
    6 Stable tag: 1.5
     6Stable tag: 1.
    77
    88Emails you whenever a change to a post or page is made.
     
    2828
    2929== Changelog ==
     30
     31
     32
    3033
    3134= 1.5 =
Note: See TracChangeset for help on using the changeset viewer.