Skip to:
Content

bbPress.org

Ticket #2910: 2910.03.patch

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

    diff --git src/includes/admin/topics.php src/includes/admin/topics.php
    index e865dc3..a72b8da 100644
    class BBP_Topics_Admin { 
    10871087                        0 =>  '', // Left empty on purpose
    10881088
    10891089                        // Updated
    1090                         1 =>  sprintf( __( 'Topic updated. <a href="%s">View topic</a>', 'bbpress' ), $topic_url ),
     1090                        1 =>  sprintf(
     1091                                '%1$s <a href="%2$s">%3$s</a>',
     1092                                __( 'Topic updated.', 'bbpress' ),
     1093                                $topic_url,
     1094                                __( 'View topic', 'bbpress' )
     1095                        ),
    10911096
    10921097                        // Custom field updated
    10931098                        2 => __( 'Custom field updated.', 'bbpress' ),
    class BBP_Topics_Admin { 
    11051110                                        : false,
    11061111
    11071112                        // Topic created
    1108                         6 => sprintf( __( 'Topic created. <a href="%s">View topic</a>', 'bbpress' ), $topic_url ),
     1113                        6 => sprintf(
     1114                                '%1$s <a href="%2$s">%3$s</a>',
     1115                                __( 'Topic created.', 'bbpress' ),
     1116                                $topic_url,
     1117                                __( 'View topic', 'bbpress' )
     1118                        ),
    11091119
    11101120                        // Topic saved
    11111121                        7 => __( 'Topic saved.', 'bbpress' ),
    11121122
    11131123                        // Topic submitted
    1114                         8 => sprintf( __( 'Topic submitted. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
     1124                        8 => sprintf(
     1125                                '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     1126                                __( 'Topic submitted.', 'bbpress' ),
     1127                                esc_url( add_query_arg( 'preview', 'true', $topic_url ) ),
     1128                                __( 'Preview topic', 'bbpress' )
     1129                        ),
    11151130
    11161131                        // Topic scheduled
    11171132                        9 => sprintf( __( 'Topic scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
    class BBP_Topics_Admin { 
    11211136                                        $topic_url ),
    11221137
    11231138                        // Topic draft updated
    1124                         10 => sprintf( __( 'Topic draft updated. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
     1139                        10 => sprintf(
     1140                                '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     1141                                __( 'Topic draft updated.', 'bbpress' ),
     1142                                esc_url( add_query_arg( 'preview', 'true', $topic_url ) ),
     1143                                __( 'Preview topic', 'bbpress' )
     1144                        ),
    11251145                );
    11261146
    11271147                return $messages;