mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-13 17:27:20 +00:00
Add code comments to help find dynamically-generated IDs in the codebase
Bug: T378319 Change-Id: Id5dd2dc1a979423f2ec4e0f091fb854b2ff185cb
This commit is contained in:
parent
5a930d59d3
commit
2f4ca44adf
|
@ -463,6 +463,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
$message = "abusefilter-edit-$checkboxId";
|
||||
// isEnabled(), isDeleted(), isHidden(), isProtected(), isGlobal()
|
||||
$method = 'is' . ucfirst( $checkboxId );
|
||||
// wpFilterEnabled, wpFilterDeleted, wpFilterHidden, wpFilterProtected, wpFilterGlobal
|
||||
$postVar = 'wpFilter' . ucfirst( $checkboxId );
|
||||
|
||||
$checkboxAttribs = [
|
||||
|
@ -507,6 +508,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
if ( $checkboxId === 'deleted' || $checkboxId === 'enabled' ) {
|
||||
$checkboxAttribs['infusable'] = true;
|
||||
if ( $checkboxId === 'deleted' ) {
|
||||
// wpFilterDeletedLabel
|
||||
$labelAttribs['id'] = $postVar . 'Label';
|
||||
$labelAttribs['infusable'] = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue