WordPress.org

Ready to get started?Download WordPress

Forums

Post Author
[resolved] Suggested Change (2 posts)

  1. Mark Burgess
    Member
    Posted 1 year ago #

    Since the code repeats the authors name if the same author modifies the post, I suggest making the following change to the code to the condition for adding the revising author:

    && $modified_author <> $author) { /*MSB added AND condition*/

    as in

    // NOW ADD REVISION
    if ($options['post_author_modify_author']=='on' && $modified_author <> $author) { /*MSB added AND condition*/
    if ($post_date != $modified_date) {
    $content .= '<span id="post_author_modify">'.$options['post_author_modified_before'];
    $content .= $author_modify_link_start;
    $content .= $modified_author;
    $content .= $author_link_end;
    $content .= $options['post_author_modified_after'].'</span>';
    }
    }

    http://wordpress.org/extend/plugins/post-author/

  2. David Shabtai
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Mark,

    we followed your advice and added the detection of revising author. It is now implemented in the new 1.0 version of the plugin.
    Thank you for your contribution!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic