Skip to:
Content

bbPress.org

Ticket #2910: 2910.02.patch

File 2910.02.patch, 2.5 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..717dfbc 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
    1117                         9 => sprintf( __( 'Topic scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
     1132                        9 => sprintf(
     1133                                '%1$s <a target="_blank" href="%2$s">%3$s</a>',
     1134                                sprintf(
     1135                                        __( 'Topic scheduled for: %s.', 'bbpress' ),
    11181136                                        // translators: Publish box date format, see http://php.net/date
    1119                                         date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
    1120                                         strtotime( $post_date ) ),
    1121                                         $topic_url ),
     1137                                        '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'bbpress' ), strtotime( $post_date ) ) . '</strong>',
     1138                                ),
     1139                                $topic_url,
     1140                                __( 'Preview topic', 'bbpress' ),
     1141                        ),
    11221142
    11231143                        // 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 ) ) ),
     1144                        10 => sprintf(
     1145                                '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     1146                                __( 'Topic draft updated.', 'bbpress' ),
     1147                                esc_url( add_query_arg( 'preview', 'true', $topic_url ) ),
     1148                                __( 'Preview topic', 'bbpress' ),
     1149                        ),
    11251150                );
    11261151
    11271152                return $messages;