[wp-trac] [WordPress Trac] #15534: Add more info to moderation emails

WordPress Trac noreply at wordpress.org
Fri Oct 10 03:43:44 UTC 2014


#15534: Add more info to moderation emails
-------------------------------------------------+-------------------------
 Reporter:  jane                                 |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Mail                                 |  Release
 Severity:  minor                                |     Version:  3.0
 Keywords:  has-patch needs-testing dev-         |  Resolution:
  feedback close                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by DrewAPicture):

 FWIW, it looks like Akismet is storing their history as an array of data
 in comment meta:

 {{{
 #!php
 if ( is_object( $current_user ) && isset( $current_user->user_login ) )
         $user = $current_user->user_login;

 $event = array(
         'time'    => self::_get_microtime(),
         'message' => $message,
         'event'   => $event,
         'user'    => $user,
 );

 // $unique = false so as to allow multiple values per comment
 $r = add_comment_meta( $comment_id, 'akismet_history', $event, false );
 }}}

 where the value of `$event` passed to the array is any number of things,
 including 'check-spam|ham|error', 'wp-blacklisted', "status-
 changed-$approved", 'report-spam|ham', 'cron-retry', etc.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/15534#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list