Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
29 Oct 2009 at 19:02 UTC
Updated:
8 Oct 2011 at 15:10 UTC
Jump to comment: Most recent file
Comments
Comment #2
matt2000 commentedGood Testbot. Here's a jelly bean. ;-)
Comment #4
matt2000 commentedBad Testbot! everything passed locally... &-(
Comment #5
heine commentedThis is indeed a more general problem.
We must decide whether the title received from the title callback is HTML or should be treated as plaintext. In the former case, the correct title for the OP would be
Q&Aand drupal_get_title should not check_plain the result from menu_get_active_title(), nor should any function printing menu titles use check_plain on them. The one declaring the menu then needs to take care of escaping plaintext values.Should we decide menu titles are plaintext, we can keep current behaviour, but document the fact and tell people t('%placeholders') won't work anymore for menu titles.
Comment #6
heine commentedUpdating title to reflect the general issue.
Comment #7
heine commentedApart from solving the obvious double encoding issue here :)
Comment #8
matt2000 commentedIf people want to use %placeholders, couldn't they do 'title callback' => 't' ? Or is that a misuse of the t() function?
Comment #9
heine commented@matt2000, we need to decide how we treat the return value of the title callback, regardless of what the callback is.
(Now, if we had the ASP.NET 4's IHtmlString workaround, we could return whatever we wanted)
Comment #10
matt2000 commentedOK, I get it now.
If we've explicitly or implicitly allowed HTML titles up until now, I think it would be too drastic a change to force plain text now. We should figure out a way to allow it.
Comment #11
drupal_was_my_past commentedMarking this as a duplicate of #1188394: Make title behave as a configurable, translatable field (again).
Comment #12
sunAforementioned issue is not related here.
However, this issue seems indeed to be a duplicate of #556910: Menu router items: Allow to pass PASS_THROUGH to t()