Skip to:
Content

bbPress.org

Ticket #2881: 2881.03.patch

File 2881.03.patch, 4.4 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 a0e1bd8..c250f99 100644
    class BBP_Admin { 
    10551055
    10561056                                                        // Site errored out, no response?
    10571057                                                        if ( is_wp_error( $response ) ) {
    1058                                                                 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() ) );
     1058                                                                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>' ) );
    10591059                                                        }
    10601060
    10611061                                                        // Switch to the new blog
  • src/includes/admin/forums.php

    diff --git src/includes/admin/forums.php src/includes/admin/forums.php
    index 246e55c..5eae309 100644
    class BBP_Forums_Admin { 
    833833                        8 => sprintf( __( 'Forum submitted. <a target="_blank" href="%s">Preview forum</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $forum_url ) ) ),
    834834
    835835                        // Forum scheduled
    836                         9 => sprintf( __( 'Forum scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview forum</a>', 'bbpress' ),
    837                                         // translators: Publish box date format, see http://php.net/date
    838                                         date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
    839                                         strtotime( $post_date ) ),
    840                                         $forum_url ),
     836                        9 => sprintf(
     837                                __( 'Forum scheduled for: %1$s. <a target="_blank" href="%2$s">Preview forum</a>', 'bbpress' ),
     838                                // translators: Publish box date format, see http://php.net/date
     839                                '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
     840                                strtotime( $post_date ) ) . '</strong>',
     841                                $forum_url
     842                        ),
    841843
    842844                        // Forum draft updated
    843845                        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 2ad892a..c17c2c4 100644
    class BBP_Replies_Admin { 
    950950                        8 => sprintf( __( 'Reply submitted. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
    951951
    952952                        // Reply scheduled
    953                         9 => sprintf( __( 'Reply scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
    954                                         // translators: Publish box date format, see http://php.net/date
    955                                         date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
    956                                         strtotime( $post_date ) ),
    957                                         $topic_url ),
     953                        9 => sprintf(
     954                                __( 'Reply scheduled for: %1$s. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
     955                                // translators: Publish box date format, see http://php.net/date
     956                                '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
     957                                strtotime( $post_date ) ) . '</strong>',
     958                                $topic_url
     959                        ),
    958960
    959961                        // Reply draft updated
    960962                        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 d515db0..f372e60 100644
    class BBP_Topics_Admin { 
    11031103                        8 => sprintf( __( 'Topic submitted. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),
    11041104
    11051105                        // Topic scheduled
    1106                         9 => sprintf( __( 'Topic scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
    1107                                         // translators: Publish box date format, see http://php.net/date
    1108                                         date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
    1109                                         strtotime( $post_date ) ),
    1110                                         $topic_url ),
     1106                        9 => sprintf(
     1107                                __( 'Topic scheduled for: %1$s. <a target="_blank" href="%2$s">Preview topic</a>', 'bbpress' ),
     1108                                // translators: Publish box date format, see http://php.net/date
     1109                                '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'bbpress' ),
     1110                                strtotime( $post_date ) ) . '</strong>',
     1111                                $topic_url
     1112                        ),
    11111113
    11121114                        // Topic draft updated
    11131115                        10 => sprintf( __( 'Topic draft updated. <a target="_blank" href="%s">Preview topic</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $topic_url ) ) ),