WordPress.org

Make WordPress Core

Ticket #44360: 44560-class-wp-links-list-table.2.diff

File 44560-class-wp-links-list-table.2.diff, 1.9 KB (added by 5hel2l2y, 4 months ago)

translator comment added in wp-admin/includes/class-wp-links-list-table

  • src/wp-admin/includes/class-wp-links-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-links-list-table.php b/src/wp-admin/includes/class-wp-links-list-table.php
    index f3b519613a..7d82d6089e 100644
    a b class WP_Links_List_Table extends WP_List_Table { 
    169169         */
    170170        public function column_cb( $link ) {
    171171                ?>
    172                 <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"><?php echo sprintf( __( 'Select %s' ), $link->link_name ); ?></label>
     172                <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"><?php echo sprintf(
     173                        /* translators: %s: link name */
     174                        __( 'Select %s' ), $link->link_name ); ?></label>
    173175                <input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" />
    174176                <?php
    175177        }
    class WP_Links_List_Table extends WP_List_Table { 
    320322
    321323                $actions           = array();
    322324                $actions['edit']   = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';
    323                 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url( "link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ) . "' onclick=\"if ( confirm( '" . esc_js( sprintf( __( "You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ) . "' ) ) { return true;}return false;\">" . __( 'Delete' ) . '</a>';
     325                $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url( "link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ) . "' onclick=\"if ( confirm( '" . esc_js( sprintf(
     326                        /* translators: %s: link name */
     327                        __( "You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ) . "' ) ) { return true;}return false;\">" . __( 'Delete' ) . '</a>';
    324328                return $this->row_actions( $actions );
    325329        }
    326330}