Opened 13 years ago
Closed 13 years ago
#4842 closed enhancement (fixed)
Code not valid inside message-loop.php
| Reported by: | MacPresss | Owned by: | BuddyPress ? |
|---|---|---|---|
| Priority: | lowest | Milestone: | 1.7 |
| Component: | Messages | Version: | 1.7 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: |
Description
Hello guys,
This is my first ticket,
I've found a very tiny error, it's more a typo to be honest..
Inside messages-loop.php my code-editor shows invalid code coloring at line 24, it looks like the double quotes from the 'read' VS 'unread' class are not correct.
Old code.
<tr id="m-<?php bp_message_thread_id(); ?>" class="<?php bp_message_css_class(); ?><?php if ( bp_message_thread_has_unread() ) : ?> unread"<?php else: ?> read"<?php endif; ?>>
New code - I think this is better..
<tr id="m-<?php bp_message_thread_id(); ?>" class="<?php bp_message_css_class(); ?><?php if ( bp_message_thread_has_unread() ) : ?> unread<?php else: ?> read<?php endif; ?>">
Screenshot
http://oi47.tinypic.com/14ngrj8.jpg
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
There's nothing wrong with the way it currently works - the close-quotes are included in both the
ifandelseblocks, so that the markup always comes out valid. However, your patch will result in one fewer character :) and it also makes more sense than the current markup. So OK.