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.
Remove the check_plain function.
Note a new occurrence has appeared this patch fixes that and kills said function
Meta Issue.
#2205673: [META] Remove all @deprecated functions marked "remove before 8.0"
Comment | File | Size | Author |
---|---|---|---|
#6 | drupal8-removed-check-plain-deprecated-6.patch | 732 bytes | er.pushpinderrana |
Comments
Comment #1
LinL CreditAttribution: LinL commentedLooks good.
Comment #2
LinL CreditAttribution: LinL commentedLooking again, does this need a change record?
Moving back to Needs review.
Comment #3
marcingy CreditAttribution: marcingy commentedMost items that do removal seem to be going in without a change record, so not sure what the rule is to be honest...
Comment #4
ianthomas_ukAny API that exists in Drupal 7 but not in Drupal 8, or has changed, should be covered by a change record. The core maintainers may not always spot when a change record is needed, but that doesn't mean we should be encouraging patches to be committed without appropriate change records.
We should also update any other change records that refer to check_plain.
https://www.drupal.org/list-changes/published?keywords_description=check...
Comment #5
marcingy CreditAttribution: marcingy commentedAs I say most deprecated functions are not getting change records on removal, so lets get a policy in place for doing rather than randomly selecting an issue as this one has been. Unassigning and unfollowing.
Comment #6
er.pushpinderrana CreditAttribution: er.pushpinderrana commentedAs all usage of check_plain() function already removed from repository, so now we can also remove this function from bootstrap.inc file.
Please review the attached patch as above patch is unable to apply.
Comment #7
ParisLiakos CreditAttribution: ParisLiakos commentedgrep couldnt find anything else than the function itself
Comment #8
webchickThanks for the change record. Since this is one of the top most-used functions in D7, I expanded the title a bit to explicitly include the name of the functions there so people can find it easily.
Committed and pushed to 8.x. Thanks!