WordPress.org

Make WordPress Core

Ticket #17421: t17421-change-attr-to-prop.2.diff

File t17421-change-attr-to-prop.2.diff, 592 bytes (added by JDTrower, 7 years ago)

Change .attr to .prop as a result of jQuery 1.6.1

  • wp-admin/options-reading.php

     
    3030                        staticPage = section.find('input:radio[value="page"]'),
    3131                        selects = section.find('select'),
    3232                        check_disabled = function(){
    33                                 selects.attr('disabled', staticPage.is(':checked') ? '' : 'disabled');
     33                                selects.prop('disabled', staticPage.is(':checked') ? '' : 'disabled');
    3434                        };
    3535                check_disabled();
    3636                section.find('input:radio').change(check_disabled);