Skip to:
Content

bbPress.org

Ticket #2881: 2881.05.patch

File 2881.05.patch, 4.3 KB (added by thebrandonallen, 9 years ago)
  • src/includes/admin/admin.php

    diff --git src/includes/admin/admin.php src/includes/admin/admin.php
    index 3939206..395705c 100644
    class BBP_Admin { 
    10601060
    10611061                                                        // Site errored out, no response?
    10621062                                                        if ( is_wp_error( $response ) ) {
    1063                                                                 wp_die( sprintf( __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: <em>%2$s</em>', 'bbpress' ), $siteurl, $response->get_error_message() ) );
     1063                                                                wp_die( sprintf( __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: %2$s', 'bbpress' ), $siteurl, '<em>' . $response->get_error_message() . '</em>' ) );
    10641064                                                        }
    10651065
    10661066                                                        // Switch to the new blog
  • src/includes/admin/forums.php

    diff --git src/includes/admin/forums.php src/includes/admin/forums.php
    index 202a2ca..57eea9b 100644
    class BBP_Forums_Admin { 
    838838                        8 => sprintf( __( 'Forum submitted. <a target="_blank" href="%s">Preview forum</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $forum_url ) ) ),
    839839
    840840                        // Forum scheduled
    841                         9 => sprintf( __( 'Forum scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview forum</a>', 'bbpress' ),
     841                        9 => sprintf(
     842                                '%1$s <a target="_blank" href="%2$s">%3$s</a>',
     843                                sprintf(
     844                                        __( 'Forum scheduled for: %s.', 'bbpress' ),
    842845                                        // translators: Publish box date format, see http://php.net/date
    843                                         date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
    844                                         strtotime( $post_date ) ),
    845                                         $forum_url ),
     846                                        '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'bbpress' ), strtotime( $post_date ) ) . '</strong>'
     847                                ),
     848                                $forum_url,
     849                                __( 'Preview forum', 'bbpress' )
     850                        ),
    846851
    847852                        // Forum draft updated
    848853                        10 => sprintf( __( 'Forum draft updated. <a target="_blank" href="%s">Preview forum</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $forum_url ) ) ),
  • src/includes/admin/replies.php

    diff --git src/includes/admin/replies.php src/includes/admin/replies.php
    index cb7898a..e9c8faf 100644
    class BBP_Replies_Admin { 
    961961                        8 => sprintf( __( 'Reply submitted. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
    962962
    963963                        // Reply scheduled
    964                         9 => sprintf( __( 'Reply scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
     964                        9 => sprintf(
     965                                '%1$s <a target="_blank" href="%2$s">%3$s</a>',
     966                                sprintf(
     967                                        __( 'Reply scheduled for: %s.', 'bbpress' ),
    965968                                        // translators: Publish box date format, see http://php.net/date
    966                                         date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
    967                                         strtotime( $post_date ) ),
    968                                         $topic_url ),
     969                                        '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'bbpress' ), strtotime( $post_date ) ) . '</strong>'
     970                                ),
     971                                $topic_url,
     972                                __( 'Preview topic', 'bbpress' )
     973                        ),
    969974
    970975                        // Reply draft updated
    971976                        10 => sprintf( __( 'Reply draft updated. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
  • src/includes/admin/topics.php

    diff --git src/includes/admin/topics.php src/includes/admin/topics.php
    index e865dc3..3ed7d94 100644
    class BBP_Topics_Admin { 
    11141114                        8 => sprintf( __( 'Topic submitted. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
    11151115
    11161116                        // Topic scheduled
    1117                         9 => sprintf( __( 'Topic scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
     1117                        9 => sprintf(
     1118                                '%1$s <a target="_blank" href="%2$s">%3$s</a>',
     1119                                sprintf(
     1120                                        __( 'Topic scheduled for: %s.', 'bbpress' ),
    11181121                                        // 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 ),
     1122                                        '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'bbpress' ), strtotime( $post_date ) ) . '</strong>'
     1123                                ),
     1124                                $topic_url,
     1125                                __( 'Preview topic', 'bbpress' )
     1126                        ),
    11221127
    11231128                        // Topic draft updated
    11241129                        10 => sprintf( __( 'Topic draft updated. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),