Make WordPress Core

Ticket #55498: 55498.patch

File 55498.patch, 824 bytes (added by rishishah, 3 years ago)

Here is the patch to fix and improve accessibility score to 100 on desktop and 98 on Mobile

  • src/wp-admin/options-permalink.php

    diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php
    index ffdd14263a6fd8e63496e012c34e7487cf99bd49..4b77f8171d203cf4e01101d144745d7110d78b30 100644
    a b $structures = array( 
    265265                        </label>
    266266                </th>
    267267                <td>
    268                         <code><?php echo get_option( 'home' ) . $blog_prefix; ?></code>
     268                        <code><label for="permalink_structure"><?php echo get_option( 'home' ) . $blog_prefix; ?></label></code>
    269269                        <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr( $permalink_structure ); ?>" class="regular-text code" />
    270270                        <div class="available-structure-tags hide-if-no-js">
    271271                                <div id="custom_selection_updated" aria-live="assertive" class="screen-reader-text"></div>