Make WordPress Core

Ticket #35135: 35135.patch

File 35135.patch, 2.1 KB (added by afercia, 10 years ago)
  • src/wp-admin/includes/class-wp-links-list-table.php

     
    160160        }
    161161
    162162        /**
    163          * Handles the checkbox column ouput.
     163         * Handles the checkbox column output.
    164164         *
    165165         * @since 4.3.0
    166166         * @access public
     
    175175        }
    176176
    177177        /**
    178          * Handles the link name column ouput.
     178         * Handles the link name column output.
    179179         *
    180180         * @since 4.3.0
    181181         * @access public
     
    185185        public function column_name( $link ) {
    186186                $edit_link = get_edit_bookmark_link( $link );
    187187                ?>
    188                 <strong><a class="row-title" href="<?php echo $edit_link ?>" title="<?php
    189                         echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) );
    190                 ?>"><?php echo $link->link_name ?></a></strong><br />
     188                <strong><a class="row-title" href="<?php echo $edit_link ?>">
     189                        <span aria-hidden="true"><?php echo $link->link_name; ?></span>
     190                        <span class="screen-reader-text"><?php printf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ); ?></span>
     191                </a></strong><br />
    191192                <?php
    192193        }
    193194
    194195        /**
    195          * Handles the link URL column ouput.
     196         * Handles the link URL column output.
    196197         *
    197198         * @since 4.3.0
    198199         * @access public
     
    201202         */
    202203        public function column_url( $link ) {
    203204                $short_url = url_shorten( $link->link_url );
    204                 echo "<a href='$link->link_url' title='". esc_attr( sprintf( __( 'Visit %s' ), $link->link_name ) )."'>$short_url</a>";
     205                echo "<a href='$link->link_url'>$short_url</a>";
    205206        }
    206207
    207208        /**
     
    233234        }
    234235
    235236        /**
    236          * Handles the link relation column ouput.
     237         * Handles the link relation column output.
    237238         *
    238239         * @since 4.3.0
    239240         * @access public
     
    245246        }
    246247
    247248        /**
    248          * Handles the link visibility column ouput.
     249         * Handles the link visibility column output.
    249250         *
    250251         * @since 4.3.0
    251252         * @access public
     
    261262        }
    262263
    263264        /**
    264          * Handles the link rating column ouput.
     265         * Handles the link rating column output.
    265266         *
    266267         * @since 4.3.0
    267268         * @access public