Making WordPress.org

Changeset 6670


Ignore:
Timestamp:
02/17/2018 08:54:39 AM (7 years ago)
Author:
obenland
Message:

Components: Link to recently opened tickets.

Fixes #836..

File:
1 edited

Legend:

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

    r6567 r6670  
    680680        echo '<td class="right"><a href="https://core.trac.wordpress.org/component/' . esc_attr( str_replace( ' ', '+', $component ) ) . '">' . $open_tickets . '</a></td>';
    681681        if ( $history['change'] ) {
    682             echo '<td class="right">' . $arrow . ' ' . sprintf( "%+d", $history['change'] ) . '</td>';
     682            $count = sprintf( "%+d", $history['change'] );
     683            if ( $history['change'] > 0 ) {
     684                $count = $this->trac_query_link( $count, ['component' => $component, 'time' => date( 'm/d/y', strtotime( '-7 days' ) ) ] );
     685            }
     686            echo '<td class="right">' . $arrow . ' ' . $count . '</td>';
    683687        } else {
    684688            echo '<td></td>';
Note: See TracChangeset for help on using the changeset viewer.