Go to file
Mark Jaquith 9cbffc9222 Fix comment_notification_recipients filter behavior so that it is still respected even on comments left by the post author
The code was bailing on this-is-a-comment-on-your-own-post detection, ignoring additional recipients. Now:

* Logic check is done within `wp_notify_postauthor()`
* Logic check is overridable via `comment_notification_notify_author` filter (default still false)
* The code doesn't bail on comment-on-own-post detection, but just removes the author from the array
* The code instead now bails if the recipients list is empty, so `comment_notification_recipients` works properly

props ethitter.
fixes #25699


git-svn-id: https://develop.svn.wordpress.org/trunk@26367 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-25 01:46:49 +00:00
src Fix comment_notification_recipients filter behavior so that it is still respected even on comments left by the post author 2013-11-25 01:46:49 +00:00
tests Add unit tests for links_add_target(). Alter the patterns in links_add_target() and _links_add_target() slightly based on learnings after running tests. 2013-11-22 16:24:25 +00:00
tools/i18n Extract: rename method extract_entries to extract_from_code 2013-10-26 00:54:27 +00:00
.gitignore Don't remove the compiled.html QUnit file. Ignore it instead. 2013-11-12 23:20:28 +00:00
.jshintrc Remove smarttabs from .jshintrc per IRC discussion. see #25187. 2013-11-13 19:23:16 +00:00
Gruntfile.js Fix JSHint errors in Gruntfile.js. 2013-11-19 10:41:05 +00:00
package.json Move to grunt-sass, which which has less bells and whistles than grunt-contrib-sass but also no Ruby dependency. 2013-11-13 23:37:30 +00:00
phpunit.xml.dist
wp-config-sample.php
wp-tests-config-sample.php