Skip to:
Content

bbPress.org

Changeset 5478


Ignore:
Timestamp:
09/08/2014 09:02:57 PM (10 years ago)
Author:
johnjamesjacoby
Message:

In the form-topic.php template part, check for 'bbp_get_forum_title()` before outputting an empty title. Props jreeve. Fixes #2625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-topic.php

    r5084 r5478  
    3838
    3939                    <?php
    40                         if ( bbp_is_topic_edit() )
     40                        if ( bbp_is_topic_edit() ) :
    4141                            printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
    42                         else
    43                             bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Topic', 'bbpress' );
     42                        else :
     43                            ( bbp_is_single_forum() && bbp_get_forum_title() )
     44                                ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() )
     45                                : _e( 'Create New Topic', 'bbpress' );
     46                        endif;
    4447                    ?>
    4548
Note: See TracChangeset for help on using the changeset viewer.