Make WordPress Core

Changeset 36792


Ignore:
Timestamp:
02/29/2016 11:25:38 PM (9 years ago)
Author:
afercia
Message:

Link Manager: Fix usage of translation functions after [35998].

Uses printf() instead, adds translator comment.

Fixes #35135.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-links-list-table.php

    r35998 r36792  
    185185    public function column_name( $link ) {
    186186        $edit_link = get_edit_bookmark_link( $link );
    187         ?>
    188         <strong><a class="row-title" href="<?php
    189             echo $edit_link ?>" aria-label="<?php esc_attr_e( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) );
    190         ?>"><?php echo $link->link_name; ?></a></strong><br />
    191         <?php
     187        printf( '<strong><a class="row-title" href="%s" aria-label="%s">%s</a></strong>',
     188            $edit_link,
     189            /* translators: %s: link name */
     190            esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) ),
     191            $link->link_name
     192        );
    192193    }
    193194
Note: See TracChangeset for help on using the changeset viewer.