#26378 closed defect (bug) (fixed)
Replace $.attr() with $.prop() in options-general.php to silence jQuery Migrate warning
Reported by: | Frank Klein | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
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: