• Hi,

    I am currently testing this plugin on a WP3.0 multi-site installation. Apart from the fact that the plugin seems to need to create new database tables, it appears to function fine.

    Except…

    One big NO when in multi-site mode is the following issue. The plugin allows import from registered users. Nice feature but when WP is in multi-site mode the plugin takes ALL registered users, including those that are registered to other sites in the network!

    I suggest the following patch to prevent this. Tested on WP 3.0.2 in multi-site mode but should work on regular mode too :

    Change the function starting on line 688 of alo-easymail_functions.php from

    function ALO_em_get_recipients_registered () {
    	global $wpdb;
    	return $wpdb->get_results( "SELECT ID AS UID, user_email FROM $wpdb->users" );
    }

    to

    function ALO_em_get_recipients_registered() {
    	$wp_user_search = new WP_User_Search();
    	foreach ( $wp_user_search->get_results() as $reg_user )
    		$reg_users[] = (object) array_merge( array('UID' => $reg_user), (array) get_userdata($reg_user) );
    	return $reg_users;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: ALO EasyMail Newsletter] EasyMail Newsletter multi-site compatibility fix’ is closed to new replies.