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.
Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables
File /core/modules/file/lib/Drupal/file/Plugin/field/widget/FileWidget.php
Line 94: Unused local variable $wrapper_id
Comment | File | Size | Author |
---|---|---|---|
#1 | core-remove-unused-vars-filewidget.php-2072553-1.patch | 757 bytes | legolasbo |
Comments
Comment #1
legolasboRemoved unused local variable $wrapper_id. Removing it caused $id_prefix to be unused. Also removed $id_prefix.
Comment #2
phiit CreditAttribution: phiit commentedReviewed, looks good. Thanks!
Comment #3
webchickCommitted and pushed to 8.x. Thanks!