Opened 8 years ago
Closed 8 years ago
#2492 closed defect (bug) (fixed)
Profiles: Show the first sentence of forum reply on Activity tab, not the last one
Reported by: | SergeyBiryukov | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Profiles | Keywords: | has-patch commit |
Cc: |
Description
Follow-up to #2222.
If a reply contains multiple quotes and multiple sentences, the activity entry displays the last sentence instead of the first one. That's because WPOrg_WP_Activity_Notifier::trim_text()
uses a "greedy" selector.
See an example. My activity entry for that reply:
Posted a reply to Снова об XML-RPC, on the site Форумы поддержки:
Оставляю.
Correct entry would have been:
Posted a reply to Снова об XML-RPC, on the site Форумы поддержки:
Поменял на более нейтральный.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 5116: