Support » Plugin: bbAggregate » bbAggregate publishes a post to a stream on save even if status is not publish

  • Resolved rampurohit

    (@rampurohit)


    I’m using this plugin now successfully and it has been great so far. I had requirement to show a blog stream from member blogs in the main blog.

    I have observed one problem wherein the plugin includes the post in a blog stream when a user saves a draft of the post and the blog stream is checked. This publishes the pending posts of contributers while they are being moderated.

    Solution:
    bbaggregate/bbAggregate.php: function save_post_stream_data: added condition && $_POST[‘post_status’] == ‘publish’. Now the changed code is:
    if( isset($_POST[‘bbagg_stream_ids’]) && ! empty($_POST[‘bbagg_stream_ids’]) && $_POST[‘post_status’] == ‘publish’ ) {

    Thanks for the great plugin
    Ram Purohit

    http://wordpress.org/extend/plugins/bbaggregate/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘bbAggregate publishes a post to a stream on save even if status is not publish’ is closed to new replies.