Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoiding redefinition of core function wp_notify_moderator #202
This patch is to replace the redefinition of a core function by adding a filter for comment notification recipients.
On WP 3.7.0, a new filter was applied to the core wp_modify_moderator() function ("comment_moderation_recipients"), and the lack of the application of this filter on the modified plugin version was preventing other plugins that use "comment_moderation_recipients" from working.
Probably the same approach can be used on the wp_notify_postauthor() function on this plugin on a future work.
FYI although Travis CI build failed, you can check that 3 of 4 tests passed and the fourth one failed because the plug-in implementation uses mysql_connect() instead of PDO. The scenario which fails is based on PHP 5.5 thus this is the reason is fails, for all commits as well.