Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In order to make #2506445: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests approachable, we need to break it up into smaller chunks. This issue address !placeholder in the Contact module
See #2506427: [meta] !placeholder causes strings to be escaped and makes the sanitization API harder to understand for complete motivation on removal of !placeholder
Proposed resolution
Replace !placeholder with @placeholder in the Contact module.
File bounds:
core/modules/contact/*
Remaining tasks
- Replace !placeholder with @placeholder. Refer to patch in #2506445-85: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests as that patch should have related update
- Ensure tests come back clean
- Manually test the update and post screen shot after patch, review source for any difference in escaping.
User interface changes
Comment | File | Size | Author |
---|---|---|---|
#9 | replace_placeholder-contact-2559435-9.patch | 7.62 KB | Sutharsan |
#6 | replace_placeholder-contact-2559435-6.patch | 7.62 KB | izus |
#4 | replace_placeholder-contact-2559435-4.patch | 14.76 KB | geertvd |
Comments
Comment #2
justAChris CreditAttribution: justAChris as a volunteer commentedAdd file bounds to Issue Summary
Comment #3
justAChris CreditAttribution: justAChris as a volunteer commentedComment #4
geertvd CreditAttribution: geertvd at XIO commentedFor now, I just took that bit of the big one in #2506445: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests, I think that replaces all of them. Will do a more detailed check if any become double escaped.
Comment #5
lauriiiThere is one mega patch to fix the hook helps #2560783: Replace !placeholder with :placeholder for URLs in hook_help() implementations so it can be left out of this issue.
Comment #6
izus CreditAttribution: izus commentedHere it is to respond to #5
Comment #7
justAChris CreditAttribution: justAChris as a volunteer commentedPostponed on determining plan in parent #2506427: [meta] !placeholder causes strings to be escaped and makes the sanitization API harder to understand and then analyzing whether this issue still makes sense.
Comment #8
justAChris CreditAttribution: justAChris as a volunteer commentedClosing this, splitting by module was not the ideal approach to removing !placeholder. Marking as duplicate of #2506427: [meta] !placeholder causes strings to be escaped and makes the sanitization API harder to understand, since the chosen approach is / will be outlined there, please refer to it for any additional action.
Comment #9
Sutharsan CreditAttribution: Sutharsan as a volunteer commentedRerolling patch for easy migration into single patch at #2506445: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests.
Changing status for test bot. Do revert status after test.
Comment #10
Sutharsan CreditAttribution: Sutharsan as a volunteer commentedStatus back to 'Closed (duplicate)'. Patch now included in #2506445: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests.
Comment #11
xjm