WordPress.org

Making WordPress.org

Changeset 10241


Ignore:
Timestamp:
09/08/2020 09:06:38 PM (15 months ago)
Author:
ryelle
Message:

Plugin Directory: Use unique title on advanced view tab in plugin pages

Props jonoaldersonwp.
Fixes #5417.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r10183 r10241  
    246246    } else {
    247247        if ( is_singular( 'plugin' ) ) {
    248             $title['title'] .= ' - ' . __( 'WordPress plugin', 'wporg-plugins' );
    249         }
    250         elseif ( is_tax() ) {
    251             $title['title'] = sprintf( _( 'Plugins categorized as %s', 'wporg-plugins' ), strtolower( $title['title'] ) );
     248            if ( get_query_var( 'plugin_advanced' ) ) {
     249                $title['title'] .= ' ' . __( '(advanced view)', 'wporg-plugins' ) . ' - ' . __( 'WordPress plugin', 'wporg-plugins' );
     250            } else {
     251                $title['title'] .= ' - ' . __( 'WordPress plugin', 'wporg-plugins' );
     252            }
     253        } elseif ( is_tax() ) {
     254            $title['title'] = sprintf( __( 'Plugins categorized as %s', 'wporg-plugins' ), strtolower( $title['title'] ) );
    252255        }
    253256
Note: See TracChangeset for help on using the changeset viewer.