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.
As per #2467759: Refactor drupal_process_attached() so it doesn't depend on drupal_add_http_header(), drupal_add_http_header is no longer in use in Drupal 8.
Affected code:
$ grep -R http_header .
./captcha/image_captcha/image_captcha.admin.inc: drupal_add_http_header('Content-Type', 'image/png');
The code needs to be refactored.
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal_add_http_header_is_deprecated-2904994-3.patch | 805 bytes | Znak |
|
Comments
Comment #2
Znak CreditAttribution: Znak commentedComment #3
Znak CreditAttribution: Znak commentedComment #4
sonvir249 CreditAttribution: sonvir249 as a volunteer and at QED42 commentedHi @Znak,
I checked your patch and it worked for me.
It removes the shown warnings when image captcha module is installed and uninstalled.
Thanks.
Comment #6
elachlan CreditAttribution: elachlan commented