I am not sure if it is related but I just fixed a problem where some debug code was preventing email from being sent to users. I have spent about the last hour trying various combinations and cannot replicate what you are describing. Can you try 4.3.2 and let me know if it is still happening?
Hi!
I tryed 4.3.2 same result.
I started debugging and fixed it.
Cause: get_users function resturns an array that has as keys user ids not 0 to n numbers.
The hack: in mailusers_get_users function after code:
`// Retrieve the list of users
$users = get_users($args) ;`
i inserted the code that chages keys in array as they were before:
`$result = array();
$key=0;
foreach ( $users as $u )
{
$result[$key] = $u;
$key++;
}
$users = $result;`
That is interesting – in my development environment (PHP 5.3.13, WordPress 3.3.2), if I dump the array keys for $users, I see the users array have numeric indexes like this:
Array
(
[0] => 308
[1] => 885
[2] => 341
)
I have just run a test on my main site which is running WordPress 3.4 under PHP 5.2.17 and I get the same sort of array index.
Array
(
[0] => 13
[1] => 14
[2] => 15
)
Would you be willing to run some debug code on your site if I sent you a new email-users.php file? You can also email me using my WordPress username at gmail.com.
Fixed in version 4.3.4! Thanks for the help in chasing down the problem.