
This is not so much a task that I thought “wouldn’t that be a nice thing to spend the last half hour on“, but its a great plugin bar the fact it currently gives a 404 error for Custom Post Types (WordPress 3) so thought worth having a look (Version 2.52). Searching around showed lots of people with similar problems so am posting in case this ‘quick and dirty’ 404 fix helps get things started.
Does anyone want to collaborate with us? I’m sure its fairly simple and we made some progress – here is where we are at:
Below is a fix to override the permalink route of calling the function with a query string, removing the 404 error and it sends the email out and logs it ok:
On our version (with double spacing) it’s around line 497 in /plugins/wp-email/wp-email.php (or search for “$email_link = $email_link.’email/’;”).
Replace:
} else { |
With:
} elseif( get_post_type() != "post" ){ $email_link = $email_link.'?email=1'; } else { |
The email came through, but did not contain the link details:
Hi Mr X,
Your friend, Mr Y, has recommended this article entitled ‘‘ to you.Here is his/her remark:
I like it
Posted By On InArticle taken from OC Student Lettings – http://www.maindomain.co.uk
URL to article:
Have you got any further?
Pingback: wp-email [FIX] | AppThemes Forum