Make WordPress Core

Changeset 34297


Ignore:
Timestamp:
09/18/2015 06:35:16 PM (11 years ago)
Author:
wonderboymusic
Message:

Don't use HTML tags in translation strings for "In Reply To" links for comments in the admin.

Props ramiy.
Fixes #31857.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/comment.php

    r34130 r34297  
    183183                        $parent_link = esc_url( get_comment_link( $parent ) );
    184184                        $name        = get_comment_author( $parent );
    185                         printf( ' | ' . __( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
     185                        printf(
     186                                /* translators: comment link */
     187                                ' | ' . __( 'In reply to %s.' ),
     188                                '<a href="' . $parent_link . '">' . $name . '</a>'
     189                        );
    186190                }
    187191        ?>
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r34223 r34297  
    611611                                $parent_link = esc_url( get_comment_link( $parent ) );
    612612                                $name = get_comment_author( $parent );
    613                                 printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
     613                                printf(
     614                                        /* translators: comment link */
     615                                        ' | ' . __( 'In reply to %s.' ),
     616                                        '<a href="' . $parent_link . '">' . $name . '</a>'
     617                                );
    614618                        }
    615619                }
Note: See TracChangeset for help on using the changeset viewer.