[buddypress-trac] [BuddyPress Trac] #6008: Remove HTML from post_title for groups

buddypress-trac noreply at wordpress.org
Thu Nov 13 18:53:12 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 alexander.rohmann):

 Forcing the property is very invasive for something as trivial as having
 the convenience to get back to the group home page.

 Furthermore, when I think that any developer who asks for `the_title`
 should be able to expect simply that - not that plus something else. It's
 just an anti-pattern. It might be a few more lines of code in the template
 files, but at least everything is explicit and there's no "magic" that
 leaks into unforeseen places.

 I feel as if we should be able to expect the `post_title` property to
 behave as if it had been validated and sanitized the same way any other
 post has been. WordPress doesn't allow HTML in post titles, so this feels
 like more of a hack than a proper solution.

 Using `single_post_title` doesn't give you the specific group name.
 `wp_title()` is an option, but what if I just want the exact title of the
 current page? Say I'm adding meta like og:title, It

 Another example is how theme commonly use  `get_the_title()` to create
 breadcrumb navigation. Breadcrumbs also supply links in their own format.
 I don't want to add a condition to check if I'm on the group page just so
 I know that I already have the link in place. What if I want breadcrumbs
 without a link at all?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6008#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list