Make WordPress Core


Ignore:
Timestamp:
05/26/2023 05:23:49 PM (16 months ago)
Author:
westonruter
Message:

Bundled Themes: Remove/disable obsolete IE-specific skip-link-focus-fix.

  • Removes script from the wp_print_footer_scripts action in Twenty Nineteen, Twenty Twenty, and Twenty Twenty-One.
  • Switches enqueue functions to just register the scripts in Twenty Fifteen, Twenty Sixteen, and Twenty Seventeen.
  • Rearranges Twenty Seventeen's scripts to connect twentyseventeenScreenReaderText with the global script instead of the unused skip link fix.
  • Updates scripts in Twenty Fifteen and Twenty Sixteen with code from Twenty Seventeen _to run on Internet Explorer only_. Twenty Sixteen needed to keep an adjustment that offsets the toolbar and border.
  • Removes the script from JS files in Twenty Thirteen and Twenty Fourteen and edits their modified dates.

Props sabernhardt, westonruter, joedolson, flixos90, mukesh27.
Fixes #54421.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/functions.php

    r55409 r55861  
    490490 *
    491491 * @since Twenty Twenty-One 1.0
     492 * @deprecated Twenty Twenty-One 1.9 Removed from wp_print_footer_scripts action.
    492493 *
    493494 * @link https://git.io/vWdr2
     
    509510    }
    510511}
    511 add_action( 'wp_print_footer_scripts', 'twenty_twenty_one_skip_link_focus_fix' );
    512512
    513513/**
Note: See TracChangeset for help on using the changeset viewer.