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. , जब विकल्प पोस्ट लेखक ईमेल करने के लिए सेट कर दिया जाता है जब एक टिप्पणी () = 1 comments_notify, नहीं अधिसूचना ईमेल उत्पन्न होता है या पद लेखक अगर टिप्पणी मॉडरेशन लाइन में आयोजित किया जाता है और केवल बाद के माध्यम से संपादित को मंजूरी दे दी है टिप्पणियों को सूचित करने के लिए भेजा पोस्ट है . 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. It'sa बग कि WordPress 2.5 में शुरू किया गया है और WordPress 2.5.1 में स्लिप्स जब moderation.php कार्यक्षमता को संपादित-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: यदि आप इंतज़ार नहीं कर सकता, बस वेब सर्वर पर WordPress ब्लॉग निर्देशिका पर, wp-includes/comment.php संपादित करें और कोड के निम्नलिखित पंक्तियाँ जोड़ें:
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);
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);
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 डाउनलोड करने के लिए जारी
- 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 निजी एक्सचेंज - मुफ़्त इंटरएक्टिव फ़ाइलें टिप्पणी समर्थन के साथ संग्रहण सेवा साझेदारी
- WordPress 2.5 RC2 Released for Download WordPress 2.5 RC2 डाउनलोड करने के लिए जारी
- How to Fetch and Show RSS Feeds on WordPress Blog (Atom/RSS Aggregator Plugins) कैसे (एटम / आरएसएस Aggregator Plugins) ले आओ और दिखाना आरएसएस फ़ीड WordPress ब्लॉग पर करने के लिए
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5 मीडिया बटंस Disabler Plugin "मीडिया जोड़ें WordPress 2.5 में" icons को दूर करने के लिए
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5 अपरिभाषित समारोह के लिए कॉल करें: wp_constrain_dimensions () जब अपलोड छवियाँ या गैलरी () में / मीडिया लाइब्रेरी WordPress 2.5 में image_downsize
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin कैसे एसईओ अनुकूलन WordPress 2,5 ब्लॉग वेब पेज शीर्षक करने के लिए इष्टतम शीर्षक Plugin बिना
- Make WordPress Blog More Secure Using Secret Key बनाओ WordPress ब्लॉग अधिक सुरक्षित गुप्त कुंजी का प्रयोग
- Workaround to Override WordPress Shortcode and Display the [] Brackets Tags Workaround अधिरोहण WordPress Shortcode और प्रदर्शित करने के लिए [] brackets टैग










































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);
}
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 ! वाह वाह!
Super Man सुपर मैन
Nice Site अच्छा साइट
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.x करने के लिए उन्नयन के बाद से ईमेल सूचनाएँ मिल रोक - मैं अपने सुझाव दिया पैच यह तय हो गया है पर विश्वास करते हैं.
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 के कौन से संस्करण तुमसे कि कोड क्या मिला?