Support » Plugin: Co-Authors Plus » [Plugin: Co-Authors Plus] 2.6 not working with WP 3.3

  • When I save an article by another author, the co-author box clears of contents. When I try to add the author back in still comes back blank (author doesn’t save).

    I just updated a bunch of posts without realizing this and it shows me (when displaying the post in the theme) as the author of them all.

    It won’t let me set it to another author. Tested in FF and Chrome. Please help.

Viewing 15 replies - 16 through 30 (of 31 total)
  • I can also confirm that users with periods in their login names are affected.

    Plugin Author Daniel Bachhuber


    I found that users with a dot in login name are filtered by sanitize_key that’s why it happens only with some users.

    That would make sense. Does the problem only occur for users with periods in their user_logins, or does it occur for others as well?

    If the former, we’re using sanitize_key() in two places: coauthors_set_post_author_field and coauthors_update_post(). Can you replace that with sanitize_user(), and see if the problem is resolved? I probably should’ve used the latter to begin with.

    Thanks folks!

    It occurs with spaces too, which most all usernames on my site have (i.e. username of “John Doe”).

    I just tried a username without a space and it appears to save correctly.

    I have a same problem since i updated both wordpress and your plugin, which i find great by the way. We are running a multi user/editor student magazine site, and all of our registered users have a . in the username due to our internal codex. Please help us, as this now seems to be a mayor problem for us. Thank you.

    Hi Daniel.

    I, too, have had the “can’t change author” problem since upgrading to WP 3.3. I went in and replaced sanitize_key() with sanitize_user() in the two spots you suggested, and now everything is working just fine.

    Have you gotten this feedback from others? Do you plan on making this change in the next release?

    Thank you so much!

    Plugin Author Mohammad Jangda


    I just pushed a new version that replaces sanitize_key with sanitize_user.

    Plugin Author Mohammad Jangda


    Oh, and forgot to say thanks for all the feedback and testing everyone 🙂

    Is anyone else having issues with the same author being listed in the list posts page? looks like it always displays the author of the first post. I just killed the hooks for now.

    Plugin Author Daniel Bachhuber


    Thanks for the fix, Mo 🙂

    @kaygee79 Can you post a link or a screenshot? In what ways have you modified the code?

    Thanks for the update! I tested with a problematic period-in-username user and it appears to work correctly now.

    @daniel Bachuber


    You can see its the same author listed in the list over and over for all the posts, he not the correct author or co-author on all the posts.

    Plugin Author Daniel Bachhuber


    @kaygee79 Your author data might’ve been dropped 🙁 Can you share a screenshot of what author data you see when you edit the post?

    That’s what I thought, but when I go to edit, the correct authors are still there. See attached screenshot:

    Plugin Author Daniel Bachhuber


    Interesting. I’d bet the authors column in the manage posts view isn’t being unset properly. Do the proper bylines appear on your posts?

    Have you tried deleting the plugin entirely and reinstalling? Also, what other plugins do you have installed and activated? Does the problem persist when they’ve been deactivated?

    Yep, its another plugin:

    Featured Post Plugin by Sovit Tamrakar.

    Boo Sovit, boo!

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘[Plugin: Co-Authors Plus] 2.6 not working with WP 3.3’ is closed to new replies.