Skip to:
Content

bbPress.org

Ticket #2844: 2844.1.diff

File 2844.1.diff, 861 bytes (added by tharsheblows, 10 years ago)

changes 'show_none' where reply_id = 0

  • includes/replies/template.php

     
    26672667                        // Add reply_to to the post object so we can walk it later
    26682668                        $post->reply_to = $_reply_to;
    26692669                }
     2670                        $show_none = ( 0 !== $reply_id ) ? _x('None', 'Default reply to dropdown text', 'bbpress') : sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) );
    26702671
    26712672                // Get the dropdown and return it
    26722673                $retval = bbp_get_dropdown( array(
    2673                         'show_none'    => sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) ),
     2674                        'show_none'    => $show_none,
    26742675                        'select_id'    => 'bbp_reply_to',
    26752676                        'select_class' => 'bbp_dropdown',
    26762677                        'exclude'      => $reply_id,