#26378 closed defect (bug) (fixed)
Replace $.attr() with $.prop() in options-general.php to silence jQuery Migrate warning
| Reported by: | anonymized_8769252 | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.8 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
When clicking in the form fields to set a custom time or date format in options-general.php, the radio input in front of the text field gets automatically selected with jQuery.
This results in a jQuery Migrate warning:
JQMIGRATE: jQuery.fn.attr('checked') may use property instead of attribute
The attached patch replaces the use of $.attr() with $.prop() which seems to be the preferred way according to the jQuery documentation. This silences the warning.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
In 26571: