Making WordPress.org

Ticket #5415: 5415.diff

File 5415.diff, 831 bytes (added by dufresnesteven, 4 years ago)
  • wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    diff --git wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
    index 673983b2e..977b97c35 100644
    class Hooks { 
    10961096        public function bbp_raw_title_array( $title ) {
    10971097                if ( bbp_is_single_forum() || bbp_is_single_topic() || bbp_is_single_view() ) {
    10981098                        $title['format'] = '%s';
     1099
     1100                        $instance = Plugin::get_instance();
     1101                        if( wporg_support_is_single_review() ) {
     1102                                $title['text'] .= sprintf( ' - [%s] %s',
     1103                                        $instance->plugins->plugin->post_title,
     1104                                        __( 'Review', 'wporg-forums' )
     1105                                );
     1106                        }
    10991107                }
    11001108
    11011109                return $title;