Make WordPress Core

Ticket #56928: 56928.patch

File 56928.patch, 613 bytes (added by sabernhardt, 2 years ago)

moves :visited to the beginning of the array

  • src/wp-includes/class-wp-theme-json.php

     
    399399         * @since 6.1.0
    400400         */
    401401        const VALID_ELEMENT_PSEUDO_SELECTORS = array(
    402                 'link'   => array( ':hover', ':focus', ':active', ':visited' ),
    403                 'button' => array( ':hover', ':focus', ':active', ':visited' ),
     402                'link'   => array( ':visited', ':hover', ':focus', ':active' ),
     403                'button' => array( ':visited', ':hover', ':focus', ':active' ),
    404404        );
    405405
    406406        /**