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 Block & Block Content modules
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 Block & Block Content modules.
core/modules/block*
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 |
---|---|---|---|
#7 | replace_placeholder-2559447-7.patch | 7.28 KB | geertvd |
#7 | interdiff-2559447-5-7.txt | 11.09 KB | geertvd |
#5 | replace_placeholder-2559447-5.patch | 18.38 KB | joelpittet |
#5 | interdiff.txt | 776 bytes | joelpittet |
#4 | replace_placeholder-2559447-4.patch | 18.99 KB | joelpittet |
Comments
Comment #2
joelpittetComment #3
joelpittetComment #4
joelpittetComment #5
joelpittetWill fail because #2559441: Replace !placeholder with @placeholder in views module views block is being tested. (will remove that test because it's isolated)
Comment #7
geertvd CreditAttribution: geertvd at XIO commentedRemoving replacements in hook_help since this is covered in #2560783: Replace !placeholder with :placeholder for URLs in hook_help() implementations
Comment #8
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 individual issue still makes sense.
Comment #9
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 #10
Sutharsan CreditAttribution: Sutharsan as a volunteer commentedPatch now merged into #2506445-140: Replace !placeholder with @placeholder in t() and format_string() for non-URLs in tests.
Comment #11
xjm