Co-Authors Plus
Co-author plus overwriting child content - wp-types (1 post)

  1. carletto0282
    Posted 2 years ago #

    Hi guys,

    just reporting a weird behavoiur.
    I'm using Types plugin to manage custom post types and I've noticed that co.authors plus overwrites author of child post while editing a parent post.

    According to Types support staff we end up finding a patch for this

    In function coauthors_set_post_author_field triggered on action wp_insert_post_data ( file co-authors-plus.php, line: 681 ) is missing check current post id with $_POST['id'].
    Adding to co-authors-plus.php this code, should avoid issue:

    691         global $post;
    692         if ( $post->ID != $_POST['ID'] ) {
    693             return $data;
    694         }

    Hope you can add this little check in the next release.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic