[buddypress-trac] [BuddyPress Trac] #6008: Remove HTML from post_title for groups
buddypress-trac
noreply at wordpress.org
Fri Nov 14 13:55:49 UTC 2014
#6008: Remove HTML from post_title for groups
-------------------------------+------------------------------
Reporter: alexander.rohmann | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Awaiting Review
Component: Groups | Version: 2.1
Severity: major | Resolution:
Keywords: |
-------------------------------+------------------------------
Comment (by imath):
Replying to [comment:15 boonebgorges]:
> I still think that we'd be better off with a simple filter than with
what we have now.
Using the filter you shared in you comment would result in having all
titles of an eventual recent posts widgets set to 'Groups Directory' when
on the groups directory page. If the post type was specific to the groups
directory you could check it but it's a 'page' post type so even if you do
a check on the page post type from your filter a "wp_list_page" widget
would have all its title set to 'Groups Directory'.
This also means that every time get_the_title() will be used, the filter
will be called. That's the main difference with adding a filter just
before resetting the post.
So i still think, filtering the_title is not a so great idea.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6008#comment:16>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list