Make WordPress Core


Ignore:
Timestamp:
11/16/2016 11:25:28 PM (8 years ago)
Author:
joemcgill
Message:

Themes: Improve a11y and extendability of custom video headers.

This adds play/pause controls to video headers, along with voice
assistance, using wp.a11y.speak, to make custom video headers more
accessible. To make styling the play/pause button easier for themes,
CSS has been omitted from the default implementation.

This also includes a refactor of the wp.customHeader code to introduce
a BaseHandler class, which can be extended by plugins and themes to modify
or enhance the default video handlers.

Props davidakennedy, afercia, bradyvercher, joemcgill, adamsilverstein, rianrietveld.
Fixes #38678.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r39268 r39272  
    35973597            'theme_supports'    => array( 'custom-header', 'video' ),
    35983598            'transport'         => 'postMessage',
    3599             'sanitize_callback' => 'esc_url',
     3599            'sanitize_callback' => 'esc_url_raw',
    36003600            'validate_callback' => array( $this, '_validate_external_header_video' ),
    36013601        ) );
Note: See TracChangeset for help on using the changeset viewer.