WordPress.org

Making WordPress.org

Ticket #3606: 3606.patch

File 3606.patch, 1.7 KB (added by keesiemeijer, 4 years ago)

Fix regression

  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content-voting.php

     
    332332                        echo '" href="' . esc_url( $up_url );
    333333                }
    334334                echo '">';
    335                 echo '<span class="dashicons dashicons-arrow-up"></span>';
     335                echo '<span class="dashicons dashicons-arrow-up" aria-hidden="true"></span>';
    336336                echo '<span class="screen-reader-text">' . $title .  '</span>';
    337337                echo "</{$tag}>";
    338338
     
    373373                        echo '" href="' . esc_url( $down_url );
    374374                }
    375375                echo '">';
    376                 echo '<span class="dashicons dashicons-arrow-down"></span>';
     376                echo '<span class="dashicons dashicons-arrow-down" aria-hidden="true"></span>';
    377377                echo '<span class="screen-reader-text">' . $title .  '</span>';
    378378                echo "</{$tag}>";
    379379
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/user-notes-voting.js

     
    44 */
    55
    66( function( $, wp ) {
    7         $( '#user-note-voting' ).on( 'click', '.user-note-voting-up, .user-note-voting-down', function( event ) {
     7        $( document ).on( 'click', 'a.user-note-voting-up, a.user-note-voting-down', function( event ) {
    88                event.preventDefault();
    99
    1010                var $item = $( this ),