Skip to:
Content

bbPress.org

Ticket #2911: 2911.2.patch

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

    diff --git src/includes/admin/forums.php src/includes/admin/forums.php
    index 202a2ca..de2a047 100644
    class BBP_Forums_Admin { 
    811811                        0 =>  '', // Left empty on purpose
    812812
    813813                        // Updated
    814                         1 =>  sprintf( __( 'Forum updated. <a href="%s">View forum</a>', 'bbpress' ), $forum_url ),
     814                        1 =>  sprintf(
     815                                '%1$s <a href="%2$s">%3$s</a>',
     816                                __( 'Forum updated.', 'bbpress' ),
     817                                $forum_url,
     818                                __( 'View forum', 'bbpress' )
     819                        ),
    815820
    816821                        // Custom field updated
    817822                        2 => __( 'Custom field updated.', 'bbpress' ),
    class BBP_Forums_Admin { 
    829834                                        : false,
    830835
    831836                        // Forum created
    832                         6 => sprintf( __( 'Forum created. <a href="%s">View forum</a>', 'bbpress' ), $forum_url ),
     837                        6 => sprintf(
     838                                '%1$s <a href="%2$s">%3$s</a>',
     839                                __( 'Forum created.', 'bbpress' ),
     840                                $forum_url,
     841                                __( 'View forum', 'bbpress' )
     842                        ),
    833843
    834844                        // Forum saved
    835845                        7 => __( 'Forum saved.', 'bbpress' ),
    836846
    837847                        // Forum submitted
    838                         8 => sprintf( __( 'Forum submitted. <a target="_blank" href="%s">Preview forum</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $forum_url ) ) ),
     848                        8 => sprintf(
     849                                '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     850                                __( 'Forum submitted.', 'bbpress' ),
     851                                esc_url( add_query_arg( 'preview', 'true', $forum_url ) ),
     852                                __( 'Preview forum', 'bbpress' )
     853                        ),
    839854
    840855                        // Forum scheduled
    841856                        9 => sprintf( __( 'Forum scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview forum</a>', 'bbpress' ),
    class BBP_Forums_Admin { 
    845860                                        $forum_url ),
    846861
    847862                        // Forum draft updated
    848                         10 => sprintf( __( 'Forum draft updated. <a target="_blank" href="%s">Preview forum</a>', 'bbpress' ), esc_url( add_query_arg( 'preview', 'true', $forum_url ) ) ),
     863                        10 => sprintf(
     864                                '%1$s <a href="%2$s" target="_blank">%3$s</a>',
     865                                __( 'Forum draft updated.', 'bbpress' ),
     866                                esc_url( add_query_arg( 'preview', 'true', $forum_url ) ),
     867                                __( 'Preview forum', 'bbpress' )
     868                        ),
    849869                );
    850870
    851871                return $messages;