WordPress.org

Making WordPress.org

Changeset 4553


Ignore:
Timestamp:
12/16/2016 08:22:57 PM (4 years ago)
Author:
coffee2code
Message:

Support Forums: Add 'Active Topics' link to sidebar for plugin and theme support forums.

Fixes #2202.

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

Legend:

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

    r4072 r4553  
    9797        $faq     = sprintf( '<a href="//wordpress.org/plugins/%s/faq/">Frequently Asked Questions</a>', esc_attr( $this->slug() ) );
    9898        $support = sprintf( '<a href="//wordpress.org/support/plugin/%s/">Support Threads</a>', esc_attr( $this->slug() ) );
     99        $active  = sprintf( '<a href="//wordpress.org/support/plugin/%s/active">%s</a>', esc_attr( $this->slug() ), __( 'Active Topics', 'wporg-forums' ) );
    99100        $reviews = sprintf( '<a href="//wordpress.org/support/plugin/%s/reviews/">Reviews</a>', esc_attr( $this->slug() ) );
    100101        ?>
     
    108109                <?php endif; ?>
    109110                <li><?php echo $support; ?></li>
     111                <li><?php echo $active; ?></li>
    110112                <li><?php echo $reviews; ?></li>
    111113            </ul>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php

    r4072 r4553  
    9595        $theme   = sprintf( '<a href="//wordpress.org/themes/%s/">%s</a>', esc_attr( $this->slug() ), esc_html( $this->theme->post_title ) );
    9696        $support = sprintf( '<a href="//wordpress.org/support/theme/%s/">Support Threads</a>', esc_attr( $this->slug() ) );
     97        $active  = sprintf( '<a href="//wordpress.org/support/theme/%s/active">%s</a>', esc_attr( $this->slug() ), __( 'Active Topics', 'wporg-forums' ) );
    9798        $reviews = sprintf( '<a href="//wordpress.org/support/theme/%s/reviews/">Reviews</a>', esc_attr( $this->slug() ) );
    9899        ?>
     
    102103                <li><?php echo $theme; ?></li>
    103104                <li><?php echo $support; ?></li>
     105                <li><?php echo $active; ?></li>
    104106                <li><?php echo $reviews; ?></li>
    105107            </ul>
Note: See TracChangeset for help on using the changeset viewer.