Making WordPress.org

Changeset 342


Ignore:
Timestamp:
01/30/2014 11:25:23 PM (12 years ago)
Author:
nacin
Message:

Trac component pages: Don't show those buttons on the archive view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php

    r341 r342  
    281281        }
    282282
    283         echo '<div><a class="create-new-ticket button button-large button-primary" href="https://wordpress.org/support/bb-login.php?redirect_to=' . urlencode( 'https://core.trac.wordpress.org/newticket?component=' . urlencode( $component ) ) . '">Create a new ticket</a></div>';
     283        if ( is_singular() ) {
     284            echo '<div><a class="create-new-ticket button button-large button-primary" href="https://wordpress.org/support/bb-login.php?redirect_to=' . urlencode( 'https://core.trac.wordpress.org/newticket?component=' . urlencode( $component ) ) . '">Create a new ticket</a></div>';
     285        }
    284286
    285287        if ( ! $component_count = array_sum( $component_type[ $component ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.