WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. carletto0282
    Member
    Posted 1 month 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.
    Thanks

    Carlo

    https://wordpress.org/plugins/co-authors-plus/

Reply

You must log in to post.

About this Plugin

About this Topic