Making WordPress.org

Changeset 4976


Ignore:
Timestamp:
02/21/2017 08:15:08 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Include plugin/theme title in the <title> tag on Support Threads, Reviews, and Active Topics views.

See #2078.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
Files:
3 edited

Legend:

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

    r4958 r4976  
    77        abstract protected function compat();
    88        abstract protected function compat_title();
     9        abstract protected function reviews_title();
     10        abstract protected function activity_title();
    911        abstract protected function slug();
    1012        abstract protected function title();
     
    366368                bbp_register_view(
    367369                        'reviews',
    368                         __( 'Reviews', 'wporg-forums' ),
     370                        $this->reviews_title(),
    369371                        array(
    370372                                'post_parent'   => Plugin::REVIEWS_FORUM_ID,
     
    384386                bbp_register_view(
    385387                        'active',
    386                         __( 'Recent Activity', 'wporg-forums' ),
     388                        $this->activity_title(),
    387389                        array(
    388390                                'post_parent'   => $this->forum_id(),
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php

    r4948 r4976  
    1515
    1616        function compat_title() {
    17                 return __( 'Plugin Support', 'wporg-forums' );
     17                /* translators: %s: plugin title */
     18                return sprintf( _x( '%s Support', 'plugin', 'wporg-forums' ), $this->title() );
     19        }
     20
     21        function reviews_title() {
     22                /* translators: %s: plugin title */
     23                return sprintf( _x( '%s Reviews', 'plugin', 'wporg-forums' ), $this->title() );
     24        }
     25
     26        function activity_title() {
     27                /* translators: %s: plugin title */
     28                return sprintf( _x( '%s Recent Activity', 'plugin', 'wporg-forums' ), $this->title() );
    1829        }
    1930
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php

    r4948 r4976  
    1515
    1616        function compat_title() {
    17                 return __( 'Theme Support', 'wporg-forums' );
     17                /* translators: %s: theme title */
     18                return sprintf( _x( '%s Support', 'theme', 'wporg-forums' ), $this->title() );
     19        }
     20
     21        function reviews_title() {
     22                /* translators: %s: theme title */
     23                return sprintf( _x( '%s Reviews', 'theme', 'wporg-forums' ), $this->title() );
     24        }
     25
     26        function activity_title() {
     27                /* translators: %s: theme title */
     28                return sprintf( _x( '%s Recent Activity', 'theme', 'wporg-forums' ), $this->title() );
    1829        }
    1930
Note: See TracChangeset for help on using the changeset viewer.