[wp-trac] [WordPress Trac] #29699: Use current_theme_supports( 'screen-reader-text' );
WordPress Trac
noreply at wordpress.org
Mon Sep 29 13:30:25 UTC 2014
#29699: Use current_theme_supports( 'screen-reader-text' );
-------------------------+------------------------------
Reporter: GaryJ | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: accessibility
-------------------------+------------------------------
Changes (by GaryJ):
* keywords: => has-patch
Comment:
Patch attached which enables usage of both formats - a custom class, or a
default class of `screen-reader-text`:
{{{
add_theme_support( 'screen-reader-text', array( 'class' =>
'visuallyhidden' ) );
add_theme_support( 'screen-reader-text' );
}}}
Unit tests included.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29699#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list