• Hi – looking at function subscribe2_cron
    there are a number of lines where $message_posttime is built up with the same content as $message_post.

    $message_posttime then replaces the tag {POSTTIME}.

    Thus the digest ends up with what looks like two sets of every excerpt if one has post time tag. If one takes the {POSTTIME} out of the template it is ok.

    This must surely be an error ?

    $message_post .= $post_title;
    	$message_posttime .= $post_title;
    ..
    	$message_post .= $excerpt . "\r\n\r\n";
    	$message_posttime .= $excerpt . "\r\n\r\n";
    
    	$message_post .= " (" . __('Author', 'subscribe2') . ": " . $author->display_name . ")";
    	$message_posttime .= " (" . __('Author', 'subscribe2') . ": " . $author->display_name . ")";
    ..
    	$message_post .= __('Tagged as', 'subscribe2') . ": " . $post_tag_names . "\r\n";
    	$message_posttime .= __('Tagged as', 'subscribe2') . ": " . $post_tag_names . "\r\n";

    http://wordpress.org/extend/plugins/subscribe2/

Viewing 1 replies (of 1 total)
  • @anmari,

    The message_posttime variable contains all the same content as the message_post variable but the former replaces the {POSTTIME} keyword while the latter replaces the {POST} keyword.

    Because of the ordering the replacements there is no duplication running live on my sites.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Subscribe2] Duplicate content in one digest’ is closed to new replies.