Skip to:
Content

bbPress.org

Ticket #2910: 2910.patch

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

     
    10811081                        0 =>  '', // Left empty on purpose
    10821082
    10831083                        // Updated
    1084                         1 =>  sprintf( __( 'Topic updated. <a href="%s">View topic</a>', 'bbpress' ), $topic_url ),
     1084                        1 =>  sprintf(
     1085                                        '%1$s <a href="%2$s">%3$s</a>',
     1086                                        __( 'Topic updated.', 'bbpress' ),
     1087                                        $topic_url,
     1088                                        __( 'View topic', 'bbpress' )
     1089                                ),
    10851090
    10861091                        // Custom field updated
    10871092                        2 => __( 'Custom field updated.', 'bbpress' ),
     
    10991104                                        : false,
    11001105
    11011106                        // Topic created
    1102                         6 => sprintf( __( 'Topic created. <a href="%s">View topic</a>', 'bbpress' ), $topic_url ),
     1107                        6 => sprintf(
     1108                                        '%1$s <a href="%2$s">%3$s</a>',
     1109                                        __( 'Topic created.', 'bbpress' ),
     1110                                        $topic_url,
     1111                                        __( 'View topic', 'bbpress' )
     1112                                ),
    11031113
    11041114                        // Topic saved
    11051115                        7 => __( 'Topic saved.', 'bbpress' ),
    11061116
    11071117                        // Topic submitted
    1108                         8 => sprintf( __( 'Topic submitted. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
     1118                        8 => sprintf(
     1119                                        '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     1120                                        __( 'Topic submitted.', 'bbpress' ),
     1121                                        esc_url( add_query_arg( 'preview', 'true', $topic_url ) ),
     1122                                        __( 'Preview topic', 'bbpress' ),
     1123                                ),
    11091124
    11101125                        // Topic scheduled
    11111126                        9 => sprintf( __( 'Topic scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
     
    11151130                                        $topic_url ),
    11161131
    11171132                        // Topic draft updated
    1118                         10 => sprintf( __( 'Topic draft updated. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
     1133                        10 => sprintf(
     1134                                        '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     1135                                        __( 'Topic draft updated.', 'bbpress' ),
     1136                                        esc_url( add_query_arg( 'preview', 'true', $topic_url ) ),
     1137                                        __( 'Preview topic', 'bbpress' ),
     1138                                ),
    11191139                );
    11201140
    11211141                return $messages;