Making WordPress.org

Changeset 10248


Ignore:
Timestamp:
09/11/2020 12:32:26 AM (3 years ago)
Author:
dufresnesteven
Message:

Support: Update title for theme & plugins reviews.

Props jonoaldersonwp

Fixes: #5415

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r10158 r10248  
    10971097        if ( bbp_is_single_forum() || bbp_is_single_topic() || bbp_is_single_view() ) {
    10981098            $title['format'] = '%s';
     1099
     1100            if( wporg_support_is_single_review() ) {
     1101                $page_title = wporg_support_get_single_review_title();
     1102
     1103                if( $page_title ) {
     1104                    $title['text'] .= sprintf( ' - [%s] %s',
     1105                        $page_title,
     1106                            __( 'Review', 'wporg-forums' )
     1107                        );
     1108                }
     1109            }
    10991110        }
    11001111
Note: See TracChangeset for help on using the changeset viewer.