Ανακοίνωση ηλεκτρονικά ταχυδρομεία να μην στείλουν μετά από την έγκριση σχολίου σε WordPress 2.5 και 2.5.1

WordPress 2.5 και Wordpress 2.5.1, όταν η επιλογή τίθεται ως στόχος να στείλει μήνυμα με το ηλεκτρονικό ταχυδρομείο το μετα συντάκτη όποτε ένα σχόλιο ταχυδρομείται (= 1), κανένα ηλεκτρονικό ταχυδρομείο ανακοίνωσης δεν παράγεται ή στέλνεται για να ειδοποιήσει το μετα συντάκτη εάν το σχόλιο κρατιέται στη σειρά αναμονής μετριοπάθειας και εγκρίνεται μόνο αργότερα μέσω εκ:δίδω-comments.php.

Πριν από WordPress 2.5, ένα ηλεκτρονικό ταχυδρομείο στέλνεται στην έγκριση στο μετα συντάκτη ακόμα κι αν ένα σχόλιο πρέπει για να εγκριθεί και να μην ταχυδρομηθεί αμέσως. Εντούτοις, η ανακοίνωση ότι ένα σχόλιο ισχύουν για τη μετριοπάθεια και απαιτεί τη δράση του διοικητή για να εγκρίνει, διαγράφει ή spam το μήνυμα λειτουργεί κατάλληλα, με το ηλεκτρονικό ταχυδρομείο στέλνει στη διεύθυνση ηλεκτρονικού ταχυδρομείου του διοικητή (admin_email), μη μετα συντάκτης.

Είναι ένα ζωύφιο που έχει εισαχθεί σε WordPress 2.5, και γλιστρά σε WordPress 2.5.1 όταν κινήθηκε η λειτουργία moderation.php σε εκ:δίδω-comments.php. Το ζωύφιο θα καθοριστεί πιθανώς στην απελευθέρωση WordPress 2.5.2. Εάν δεν μπορείτε να περιμένετε, εκδώστε απλά WP-περιλαμβάνει/comment.php blog στον κατάλογο WordPress στον κεντρικό υπολογιστή δικτύου, και προσθέστε τις ακόλουθες γραμμές κώδικα:

Πριν από:

σπάσιμο
η περίπτωση «εγκρίνει»:
$query = $wpdb->prepare («ΑΝΑΠΡΟΣΑΡΜΟΓΉ $wpdb->comments ΚΑΘΟΡΙΣΜΈΝΟ comment_approved='1 ΌΠΟΥ comment_ID = %d ΌΡΙΟ 1», $comment_id)
σπάσιμο
περίπτωση «spam»:
$query = $wpdb->prepare («ΑΝΑΠΡΟΣΑΡΜΟΓΉ $wpdb->comments ΚΑΘΟΡΙΣΜΈΝΗ comment_approved='spam ΌΠΟΥ comment_ID = %d ΌΡΙΟ 1», $comment_id)

Μετά από:

σπάσιμο
η περίπτωση «εγκρίνει»:
$query = $wpdb->prepare («ΑΝΑΠΡΟΣΑΡΜΟΓΉ $wpdb->comments ΚΑΘΟΡΙΣΜΈΝΟ comment_approved='1 ΌΠΟΥ comment_ID = %d ΌΡΙΟ 1», $comment_id)
εάν (get_option («») == αληθινό) {
wp_notify_postauthor ($comment)
}
σπάσιμο
περίπτωση «spam»:
$query = $wpdb->prepare («ΑΝΑΠΡΟΣΑΡΜΟΓΉ $wpdb->comments ΚΑΘΟΡΙΣΜΈΝΗ comment_approved='spam ΌΠΟΥ comment_ID = %d ΌΡΙΟ 1», $comment_id)

ΣΗΜΑΝΤΙΚΟΣ: Διαβάζετε μια μεταφρασμένη με υπολογιστή σελίδα που παρέχεται «όπως είναι» χωρίς εξουσιοδότηση. Αντίθετα από την ανθρώπινη μετάφραση, η αυτόματη μετάφραση δεν καταλαβαίνει τη γραμματική, σημασιολογία, σύνταξη, ιδιωματισμοί της φυσικής γλώσσας, κατά συνέπεια συχνά ανακριβές και χαμηλής ποιότητας κείμενο προϊόντων που είναι παραπλανητικό και ακατανόητο. Κατά συνέπεια, παρακαλώ αναφερθείτε αρχικό αγγλικό άρθρο σε περίπτωση αμφιβολίας.



6 Responses to “Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1”

  1. Guillermo Scharffenorth
    June 20th, 2008 11:29
    1

    Hello,

    The code you printed under ‘before’ is different in that the one in wp-includes/comment.php. This is the code in comment.php:

    case 'approve':
    $query = "UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID='$comment_id' LIMIT 1";
    break;
    case 'spam':
    $query = "UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID='$comment_id' LIMIT 1";

    Which version of WP did you get that code from?

  2. admin
    June 20th, 2008 11:53
    2

    version 2.5.

  3. Guillermo Scharffenorth
    June 20th, 2008 11:57
    3

    Hi,

    The code I posted is from 2.5.1. Do you think that replacing this code with the one you posted could fix this issue?

  4. admin
    June 20th, 2008 12:28
    4

    Try to just add in the additional lines (the difference).

  5. Guillermo Scharffenorth
    June 27th, 2008 20:49
    5

    Hello,

    Tried it. It did not work. Thanks anyways.

  6. paul
    July 11th, 2008 17:30
    6

    Thanks for the post ‘admin’ - I help manage a (non?)corporate blog, and my boss stopped getting email notifications since upgrading to 2.5.x - I do believe your suggested patch has fixed it.

    So, again thanks very much!

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

Incoming Search Terms for the Article

wordpress - wordpress not sending email - wordpress 2.5 email moderation - comment notification wordpress - wordpress not sending notification - no comment notifications wordpress 2.5 - how do i set comment approval? - wordpress email comment author - Wordpress comment notification email - wordpress 2.5.1 not sending mail - wordpress 2.5.1 not receiving new comment emails - wordpress is not sending e-mail notification with gmail - wordpress 2.5 email authors when comments posted - Notification Emails Not Send After Comment Approval - wordpress email comments for approval - wordpress Register Plus not sending email - wordpress 2.5 not sending email - wordpress 2.5.1 email notification - new comment notification wordpress 2.5 admin - wordpress 2.5.1 not receiving emails - approve comments php - $wpdb->query not working 2.5 - comment notification wordpress 2.5 - 2.5.1, comment notification, wordpress - wordpress notification 2.5 disable - send comments in wordpress to email - wordpress approval email - wordpress comment notification on approval - wordpress, comment notification, problem, 2.5 - wordpress 2.5 no notification email - moderation notification wordpress - wordpress auto comment elfogadás - wordpress not sending comment notification emails - wordpress register-plus - wp_notify_postauthor override - wordpress no email notification comment - wont translate edit-comments.php approved - send to admin not author comment notification wordpress - wordpress 2.5.2 problem + mail notification - wordpress notification not working 2.5 comment - wordpress 2.5+ new comment + notify admin - wordpress comment no approval email - wordpress. comment notification, php, 2.5 - wordpress comment approving not sending email - wordpress not sending email comments 2.51 - WordPress : not receiving email notification when comments are approved - wordpress notify author comment - wordpress 2.5.1 admin email comments notification - wordpress 2.5 comment notification - email is not generated for moderation of new user with wordpress -