WordPress.org

Ready to get started?Download WordPress

Forums

WP-Activity
Shortcode content duplicated because of Jetpack (1 post)

  1. Elmoonfire
    Member
    Posted 1 year ago #

    The new Jetpack functionality that uses opengraph (sharing plugins) are calling get_the_excerpt() which, in turn, calls the_content. This appears to duplicate shortcode content.

    I was able to work around this using this code on line 445 of wp-activity.php:
    if ( in_the_loop() ) {
    return act_stream_common($attr['number'], $attr['title'], true, '');
    } else {
    return null;
    }

    It appears to be a Jetpack issue and is hopefully temporary. Just thought I'd share this for anyone else experiencing duplicated content.

    Related issue where I found reference material is here (Thank you Mike Little):
    http://wordpress.org/support/topic/duplicate-entries-on-wp-35

    http://wordpress.org/extend/plugins/wp-activity/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.