[feature request and patch] sending email to the last editor
-
Thank you for the greatly useful plugin.
I would like blc to send notification email to the last editor of the post/page as well as the author.
Here is the patch I made.It would be greater if one could choose this function via the settings page.
Thanks a lot.
— core.php.orig 2016-04-05 18:38:40.000000000 +0900
+++ core.php 2016-12-01 18:31:49.000000000 +0900
@@ -3677,6 +3677,14 @@
$authorInstances[$post->post_author] = array();
}
$authorInstances[$post->post_author][] = $instance;
+ if ( $last_id = get_post_meta( $post->ID, ‘_edit_last’, true) ) {
+ if ( !array_key_exists($last_id, $authorInstances) ) {
+ $authorInstances[$last_id] = array();
+ }
+ if ( !in_array($instance, $authorInstances[$last_id]) ) {
+ $authorInstances[$last_id][] = $instance;
+ }
+ }
}
}
- The topic ‘[feature request and patch] sending email to the last editor’ is closed to new replies.