Notification Emails Not Send After Comment Approval in WordPress 2.5 and 2.5.1 Повідомлення Листи не відправляє Після затвердження порядку в WordPress 2,5 і 2.5.1
In В WordPress 2.5 WordPress 2,5 and і Wordpress 2.5.1 Wordpress 2.5.1 , when the option is set to email post author whenever a comment is posted (comments_notify = 1), no notification email is generated or sent to notify the post author if the comment is held in moderation queue and is only approved later via edit-comments.php. , Якщо параметр встановлений на відправку електронної пошти, коли автор коментарю розміщений (comments_notify = 1), ні повідомлення по електронній пошті або породжується направлено повідомлення, якщо автор поста коментар проходить модерації в черзі, і лише пізніше схвалив через Edit-коментарі . PHP.
Prior to WordPress 2.5, an email is sent on approval to post author even if a comment is required to be approved and not posted instantly. До WordPress 2.5, повідомлення відправляється на затвердження на посаді, навіть якщо автор коментарю повинен бути затверджений і не розміщений моментально. However, notification that a comment is held for moderation and require administrator’s action to approve, delete or spam the message is working properly, with email sends to administrator’s email address (admin_email), not post author. Разом з повідомленням про те, що коментар проводиться для помірності і вимагає адміністратора дій схвалити або видалити спам повідомлення працює належним чином, з електронною поштою надсилає адміністратору на електронну адресу (admin_email), а не посада автора.
It’sa bug that has been introduced in WordPress 2.5, and slips into WordPress 2.5.1 when moderation.php functionality was moved into edit-comments.php. Це помилка, яка була введена в WordPress 2.5, а квитанції на WordPress 2.5.1, коли moderation.php функціональність була перенесена в Edit-comments.php. The bug will probably be fixed in WordPress 2.5.2 release. Виправлена помилка, можливо, буде виправлена в WordPress 2.5.2 реліз. If you can’t wait, simply edit wp-includes/comment.php on WordPress blog directory on web server, and add the following lines of code: Якщо ви не можете чекати, просто змініть wp-includes/comment.php на WordPress блогу каталог на веб-сервері, а також додати наступні рядки коду:
Before: До:
щоб
break;
case 'approve':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
break;
case 'spam':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id);
break;
case 'approve':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
break;
case 'spam':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id);
After: Після:
щоб
break;
case 'approve':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
if ( get_option( 'comments_notify' ) == true ) {
wp_notify_postauthor( $comment );
}
break;
case 'spam':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id);
break;
case 'approve':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
if ( get_option( 'comments_notify' ) == true ) {
wp_notify_postauthor( $comment );
}
break;
case 'spam':
$query = $wpdb->prepare("UPDATE $wpdb->comments SET comment_approved='spam' WHERE comment_ID = %d LIMIT 1", $comment_id);
IMPORTANT : You're reading a machine translated page which is provided "as is" without warranty. ВАЖЛИВО: Ви читаєте машина переведена сторінку, яка надається "як є" без гарантії. Unlike human translation, machine translation does not understand the grammar, semantics, syntax, idioms of natural language, thus often produce inaccurate and low quality text which is misleading and incomprehensible. На відміну від людини перекладу, машинний переклад не розуміє граматика, семантика, синтаксис, ідіоми природної мови, таким чином, часто роблять неточні і низька якість тексту, який вводить в оману і незрозумілим. Thus, please refer to Таким чином, зверніться до original English article Англійська оригінальні статті when in doubt. , Коли сумніви.
Related Articles Статті по темі
- WordPress 2.5.1 Released for Download WordPress 2.5.1 Released для завантаження
- WordPress 2.5 Released for Free Download WordPress 2,5 Звільнено для безкоштовного скачування
- Drop.io Private Exchange - Free Interactive Files Sharing Storage Service with Comment Support Окремі Drop.io Exchange - Безкоштовні Інтерактивні спільного зберігання файлів зі службою підтримки Комментировать
- WordPress 2.5 RC2 Released for Download WordPress 2,5 RC2 Released для завантаження
- How to Fetch and Show RSS Feeds on WordPress Blog (Atom/RSS Aggregator Plugins) Як витягти і показати RSS-канали на WordPress блог (Atom / RSS агрегатор Плагіни)
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 Медіа Кнопки Disabler плагін для видалення "Додати Медіа" Ікони в WordPress 2,5
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 Звернутися за Undefined Функція: wp_constrain_dimensions () при завантаженні зображень або image_downsize () в Галерея / Медіа Бібліотека в WordPress 2,5
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin Як SEO оптимізації блогу WordPress 2,5 Web Page Заголовок Без Оптимальне Назва плагіна
- Make WordPress Blog More Secure Using Secret Key Зробити блог WordPress Більш безпечний допомогою секретного ключа
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Для Відхилити WordPress короткий і відображення [] дужки Теги










































March 24th, 2009 02:34 24 березня 2009 02:34
In case this doesn’t work, or you need details on the the cPanel method, I wrote it all out at У цьому випадку не працює, або у Вас повинен докладно про метод в CPanel, я писав все це на http://www.roblayton.net/archive/wordpress-not-sending-emails-anymore-solved/ http://www.roblayton.net/archive/wordpress-not-sending-emails-anymore-solved/
Good luck! Удачи!
January 18th, 2009 19:13 Січень 18, 2009 19:13
Ldn2m0 hi! Ldn2m0 привет! how you doin? Як справи?
October 15th, 2008 07:26 15 жовтня 2008 07:26
In 2.6.1 it should look as this: У 2.6.1 вона має виглядати так:
щобcase 'approve':
$query = $wpdb->prepare("UPDATE wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
if ( get_option('comments_notify') == true ) {
$comment = get_comment($comment_id);
wp_notify_postauthor($comment_id, $comment->comment_type);
}
case 'approve':
$query = $wpdb->prepare("UPDATE wpdb->comments SET comment_approved='1' WHERE comment_ID = %d LIMIT 1", $comment_id);
if ( get_option('comments_notify') == true ) {
$comment = get_comment($comment_id);
wp_notify_postauthor($comment_id, $comment->comment_type);
}
The only change is adding: Єдина зміна, додавши:
== true
September 22nd, 2008 05:42 22 Вересня 2008 05:42
Wow Cool ! Wow Cool!
Super Man Супер Людина
Nice Site Nice сайту
September 4th, 2008 04:15 4 вересня 2008 04:15
This WPMU behavior was driving me a bit nuts. Це WPMU поведінку за кермом мені трохи горіхів. Much thanks for sharing your solution! Велике спасибі за публікацію свого рішення!
July 11th, 2008 17:30 11 липня 2008 17:30
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. Спасибо за пост 'Адміністратор' - Я допомагаю управління (не?) Корпоративного блогу, і мій бос припинили отримувати повідомлення по електронній пошті після поновлення до 2.5.Х - Я вірю вашій запропонувала патч встановив його.
So, again thanks very much! Отже, ще раз спасибі дуже багато!
June 27th, 2008 20:49 27 червня 2008 20:49
Hello, Здравствуйте,
Tried it. Спробував. It did not work. Він не працював. Thanks anyways. Завдяки будь-якому випадку.
June 20th, 2008 12:28 20 червня 2008 12:28
Try to just add in the additional lines (the difference). Спробуйте просто додати в додаткових ліній (різниця).
June 20th, 2008 11:57 20 червня 2008 11:57
Hi, Привіт,
The code I posted is from 2.5.1. Код Написав я с 2.5.1. Do you think that replacing this code with the one you posted could fix this issue? Як ви думаєте, що заміна цього коду з одного вас в курсі може виправити цю проблему?
June 20th, 2008 11:53 20 червня 2008 11:53
version 2.5. Версія 2.5.
June 20th, 2008 11:29 20 червня 2008 11:29
Hello, Здравствуйте,
The code you printed under ‘before’ is different in that the one in wp-includes/comment.php. У код надрукований під заголовком "перед" відрізняється тим, що в wp-includes/comment.php. This is the code in comment.php: Це код в 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";
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? Яку версію WP ви отримаєте цей код від?