buddypress/bp-activity
Boone B Gorges c5c13155b7 Strip shortcodes from comparison text before adding [Read More] link in activity stream
We test to see whether a 'Read More' link should be added to activity items
in the stream by comparing the excerpted version against the unprocessed text.
Since the excerpt is created using bp_create_excerpt() with the
'filter_shortcodes' flag set to true, we must also strip shortcodes on the
unprocessed text to get an accurate comparison for length.

This prevents the [Read More] link from being appended erroneously when
shortcodes are present in activity updates.

Fixes #4051. Props magnus78

git-svn-id: https://buddypress.svn.wordpress.org/trunk@6095 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2012-06-14 18:06:46 +00:00
..
admin Compress scripts/styles: 1.6-alpha-5997. 2012-04-20 19:58:27 +00:00
feeds Breathing room for cast variables. 2012-02-11 21:32:04 +00:00
bp-activity-actions.php Correct activity un-favourite links. Props magnus78, fixes #4115 2012-04-06 22:12:38 +00:00
bp-activity-admin.php Remove unused variable from BP_Activity_List_Table 2012-04-21 15:55:26 +00:00
bp-activity-akismet.php Fix PHP Notice when a comment hasn't got a previous recorded state for Akismet 2012-04-25 20:14:01 +00:00
bp-activity-cache.php Remove unneeded globals and clean up some code in Activity component. See #3989. 2012-02-09 22:10:47 +00:00
bp-activity-classes.php Refactors bp_has_activities() stack to support the passing of arguments as associative arrays. 2012-04-17 14:01:16 +00:00
bp-activity-filters.php Strip shortcodes from comparison text before adding [Read More] link in activity stream 2012-06-14 18:06:46 +00:00
bp-activity-functions.php Don't assign values to undefined objects throughout BP. Fixes #4191. Props leemour 2012-05-11 17:55:13 +00:00
bp-activity-loader.php Fix phpdoc since typos introduced in r5927 2012-03-16 02:31:22 +00:00
bp-activity-notifications.php Add 'BuddyPress' to phpdoc since's and deprecated's for 1.1, 1.2. 2012-03-16 02:42:59 +00:00
bp-activity-screens.php Add 'BuddyPress' to phpdoc since's and deprecated's for 1.1, 1.2. 2012-03-16 02:42:59 +00:00
bp-activity-template.php More consistent _deprecated_argument() warning in BP_Activity_Template::__construct(). See #3797 2012-04-17 14:05:11 +00:00