Allow pending review for emailed posts (2 posts)

  1. Bobcat
    Posted 8 years ago #

    When using the blog by e-mail feature, the post_status is always set to 'publish'. It would be helpful if this could be set to the new 'pending' status in 2.3.

    The code in wp-mail.php says, "propose a way", so here it is:

    Move the assignment statement $post_status = 'publish'; at wp-mail.php line 145 up before the apply_filters('phone_content', $content); call (line 134). This would allow someone to write a filter that could change the post_status, but keep the current behavior as default.

  2. Bobcat
    Posted 8 years ago #

    I created a patch which allows publishing based on the 'publish_posts' capability (otherwise the status is set to pending), and allows it to be overridden by the phone_content filter. See http://trac.wordpress.org/ticket/4642

Topic Closed

This topic has been closed to new replies.

About this Topic