Make WordPress Core

Ticket #38185: 38185.patch

File 38185.patch, 875 bytes (added by mariovalney, 9 years ago)

Fix: added screen-reader-text tag

  • wp-admin/includes/class-wp-posts-list-table.php

    diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php
    index 506dded..eac1660 100644
    a b class WP_Posts_List_Table extends WP_List_Table { 
    829829                                printf( __( 'Select %s' ), _draft_or_post_title() );
    830830                        ?></label>
    831831                        <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" />
    832                         <div class="locked-indicator"></div>
     832                        <div class="locked-indicator">
     833                                <span class="screen-reader-text"><?php printf( __( '%s is currently being edited' ), _draft_or_post_title() ); ?></div>
     834                        </div>
    833835                <?php endif;
    834836        }
    835837
    class WP_Posts_List_Table extends WP_List_Table { 
    17381740                </tbody></table></form>
    17391741<?php
    17401742        }
    1741 }
     1743}
     1744 No newline at end of file