Skip to:
Content

BuddyPress.org

Changeset 10850


Ignore:
Timestamp:
06/01/2016 04:23:47 PM (8 years ago)
Author:
imath
Message:

Activity content: bring back the "read more" link.

Changeset r10832 introduced a small regression where the "read more" link was not output anymore. This commit is bringing back this link when the activity content is truncated.

Fixes #7106

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-filters.php

    r10832 r10850  
    445445     * shortcodes, so we have strip them from the $text before the comparison.
    446446     */
    447     if ( strlen( $excerpt ) > strlen( strip_shortcodes( $text ) ) ) {
     447    if ( strlen( $excerpt ) < strlen( strip_shortcodes( $text ) ) ) {
    448448        $id = !empty( $activities_template->activity->current_comment->id ) ? 'acomment-read-more-' . $activities_template->activity->current_comment->id : 'activity-read-more-' . bp_get_activity_id();
    449449
Note: See TracChangeset for help on using the changeset viewer.