Printable Version of Topic

Click here to view this topic in its original format

Web Design Seo Forum _ Wordpress aggregator for Joomla _ How To Post Posts From Wordpress Aggregator Immediately

Posted by: Web Design Seo Jan 12 2012, 03:46 PM

How to post posts from Wordpress aggregator immediately is are not posted from email of administrator?

User Question:

Цитат
Hello, I set up a couple of my own, WordPress powered blogs, on my own server and your extension is working great. But, again, I have a problem with configuration. Here's what happens:
If the post was sent from an email different than WP admin's adress it requires review and approval, which makes the whole process quite annoying. So I thought that setting an anonymous email adress (in options panel of the extension) will make WP think that it comes from WP admin. But when I check the inbox it says that the message came from e-mail of my registered user, NOT the one I set up as anonymous. And the post is not published, only pending.


Answer

This is fixed by us in wordpress, make following:

1. Open file wp-mail.php, search for (about 164/165 line):
Код
// Author not found in DB, set status to pending.  Author already set to admin.
$post_status = 'pending';


change to:
Код
// Author not found in DB, set status to pending.  Author already set to admin.
//$post_status = 'pending';
$post_status = 'publish';

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)