• Resolved Mark Burgess

    (@markburgess)


    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://ww.wp.xz.cn/extend/plugins/post-author/

Viewing 1 replies (of 1 total)
  • Plugin Author David Shabtai

    (@tzavdesign)

    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!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Post Author] Suggested Change’ is closed to new replies.