Ticket #2292: 2292.patch
File 2292.patch, 3.5 KB (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/developers/index.jsx
15 15 export const Developers = ( { plugin, translate } ) => ( 16 16 <div> 17 17 <div id="developers" className="section read-more plugin-developers"> 18 <h2 >{ translate( 'Contributors & Developers' ) }</h2>18 <h2 id="developers-header">{ translate( 'Contributors & Developers' ) }</h2> 19 19 <p> 20 20 { translate( 'This is open source software. The following people have contributed to this plugin.' ) } 21 21 </p> … … 36 36 } 37 37 </p> 38 38 </div> 39 <button type="button" className="button-link section-toggle" aria-controls="developers" aria-expanded="false"> 39 <button 40 type="button" 41 className="button-link section-toggle" 42 aria-controls="developers" 43 aria-describedby="developers-header" 44 aria-expanded="false" 45 > 40 46 { translate( 'Read more' ) } 41 47 </button> 42 48 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/index.jsx
8 8 export const Section = ( { content, slug, title, translate } ) => ( 9 9 <div> 10 10 <div id={ slug } className={ `section read-more plugin-${ slug }` }> 11 <h2 >{ title }</h2>11 <h2 id={ `${ slug }-header` }>{ title }</h2> 12 12 <div dangerouslySetInnerHTML={ { __html: content } } /> 13 13 </div> 14 14 <button … … 15 15 type="button" 16 16 className="button-link section-toggle" 17 17 aria-controls={ slug } 18 aria-describedby={ `${ slug }-header` } 18 19 aria-expanded="false" 19 20 data-show-less={ translate( 'Show less' ) } 20 21 data-read-more={ translate( 'Read more' ) } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/section.php
15 15 id="<?php echo esc_attr( $section_slug ); ?>" 16 16 class="plugin-<?php echo esc_attr( $section_slug ); ?> section <?php if ( $section_read_more ) { echo 'read-more'; } ?>" 17 17 > 18 <h2 ><?php echo $section['title']; ?></h2>18 <h2 id="<?php echo esc_attr( $section_slug . '-header' ); ?>"><?php echo $section['title']; ?></h2> 19 19 <?php echo $section_content; ?> 20 20 </div> 21 21 <?php if ( $section_read_more ) : ?> … … 23 23 type="button" 24 24 class="button-link section-toggle" 25 25 aria-controls="<?php echo esc_attr( $section_slug ); ?>" 26 aria-describedby="<?php echo esc_attr( $section_slug . '-header' ); ?>" 26 27 aria-expanded="false" 27 28 data-show-less="<?php esc_attr_e( 'Show less', 'wporg-plugins' ); ?>" 28 29 data-read-more="<?php esc_attr_e( 'Read more', 'wporg-plugins' ); ?>"