Skip to content

Commit

Permalink
docblock update
Browse files Browse the repository at this point in the history
  • Loading branch information
audrasjb authored Nov 17, 2022
1 parent 73b0636 commit 56b013e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,15 @@ class WP_Theme_JSON {
/**
* Defines which pseudo selectors are enabled for which elements.
*
* The order of the selectors should be: visited, hover, focus, active.
* This is to ensure that 'visited' has the lowest specificity
* and the other selectors can always overwrite it.
* The order of the selectors should be: link, any-link, visited, hover, focus, active.
* This is to ensure that 'visited' has the lowest specificity and the other selectors
* can always overwrite it.
*
* See https://core.trac.wordpress.org/ticket/56928.
* Note: this will affect both top-level and block-level elements.
*
* @since 6.1.0
* @since 6.2.0 Added support for ':link' and ':any-link'.
*/
const VALID_ELEMENT_PSEUDO_SELECTORS = array(
'link' => array( ':link', ':any-link', ':visited', ':hover', ':focus', ':active' ),
Expand Down

0 comments on commit 56b013e

Please sign in to comment.