# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: \includes\common
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
|
|
|
|
| 381 | 381 | * |
| 382 | 382 | * @uses get_template_part() |
| 383 | 383 | */ |
| 384 | | public function display_topic_form() { |
| | 384 | public function display_topic_form( $attr = '', $content = '' ) { |
| 385 | 385 | |
| | 386 | // Sanity check supplied info |
| | 387 | if ( !empty( $content ) || (!empty( $attr['forum_id'] ) && (!is_numeric( $attr['forum_id'] ) || !bbp_is_forum( $attr['forum_id'] ) ) ) ) |
| | 388 | return $content; |
| | 389 | |
| | 390 | if ( !empty( $attr['forum_id'] ) ) |
| | 391 | bbp_set_form_topic_custom_value( 'forum', (int) $attr['forum_id'] ); |
| | 392 | |
| 386 | 393 | // Start output buffer |
| 387 | 394 | $this->start( 'bbp_topic_form' ); |
| 388 | 395 | |