Skip to:
Content

bbPress.org

Ticket #2912: 2912.patch

File 2912.patch, 2.0 KB (added by ramiy, 9 years ago)
  • src/includes/admin/replies.php

     
    928928                        0 =>  '', // Left empty on purpose
    929929
    930930                        // Updated
    931                         1 =>  sprintf( __( 'Reply updated. <a href="%s">View topic</a>', 'bbpress' ), $topic_url ),
     931                        1 =>  sprintf(
     932                                        '%1$s <a href="%2$s">%3$s</a>',
     933                                        __( 'Reply updated.', 'bbpress' ),
     934                                        $topic_url,
     935                                        __( 'View topic', 'bbpress' )
     936                                ),
    932937
    933938                        // Custom field updated
    934939                        2 => __( 'Custom field updated.', 'bbpress' ),
     
    946951                                        : false,
    947952
    948953                        // Reply created
    949                         6 => sprintf( __( 'Reply created. <a href="%s">View topic</a>', 'bbpress' ), $topic_url ),
     954                        6 => sprintf(
     955                                        '%1$s <a href="%2$s">%3$s</a>',
     956                                        __( 'Reply created.', 'bbpress' ),
     957                                        $topic_url,
     958                                        __( 'View topic', 'bbpress' )
     959                                ),
    950960
    951961                        // Reply saved
    952962                        7 => __( 'Reply saved.', 'bbpress' ),
    953963
    954964                        // Reply submitted
    955                         8 => sprintf( __( 'Reply submitted. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
     965                        8 => sprintf(
     966                                        '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     967                                        __( 'Reply submitted.', 'bbpress' ),
     968                                        esc_url( add_query_arg( 'preview', 'true', $topic_url ) )
     969                                        __( 'Preview topic', 'bbpress' )
     970                                ),
    956971
    957972                        // Reply scheduled
    958973                        9 => sprintf( __( 'Reply scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
     
    962977                                        $topic_url ),
    963978
    964979                        // Reply draft updated
    965                         10 => sprintf( __( 'Reply draft updated. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
     980                        10 => sprintf(
     981                                        '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     982                                        __( 'Reply draft updated.', 'bbpress' ),
     983                                        esc_url( add_query_arg( 'preview', 'true', $topic_url ) ),
     984                                        __( 'Preview topic', 'bbpress' )
     985                                ),
    966986                );
    967987
    968988                return $messages;