Making WordPress.org

Ticket #2767: 2767.patch

File 2767.patch, 1.9 KB (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

     
    125125        <ul class="tabs clear">
    126126                <li id="tablink-description"><a href='#description'><?php _e( 'Details', 'wporg-plugins' ); ?></a></li>
    127127                <li id="tablink-reviews"><a href='#reviews'><?php _e( 'Reviews', 'wporg-plugins' ); ?></a></li>
    128 <?php if ( isset( $content[ 'installation' ] ) ) { ?>
    129                 <li id="tablink-installation"><a href='#installation'><?php _e( 'Installation', 'wporg-plugins' ); ?></a></li>
    130 <?php } ?>
    131                 <li id="tablink-support"><a href='https://wordpress.org/support/plugin/<?php echo $post->post_name; ?>'><?php _e( 'Support', 'wporg-plugins' ); ?></a></li>
     128                <?php if ( isset( $content[ 'installation' ] ) ) { ?>
     129                        <li id="tablink-installation"><a href='#installation'><?php _e( 'Installation', 'wporg-plugins' ); ?></a></li>
     130                <?php } ?>
     131                <li id="tablink-support"><?php
     132                        /*
     133                         * bbPress and BuddyPress get special treatment here.
     134                         * In the future we could open this up to all plugins that define a custom support URL.
     135                         */
     136                        if ( 'buddypress' === $post->post_name ) {
     137                                $support_url = 'https://buddypress.org/support/';
     138                        } elseif ( 'bbpress' === $post->post_name ) {
     139                                $support_url = 'https://bbpress.org/forums/';
     140                        } else {
     141                                $support_url = 'https://wordpress.org/support/plugin/' . $post->post_name;
     142                        }
     143                ?><a href='<?php echo esc_url( $support_url ); ?>'><?php _e( 'Support', 'wporg-plugins' ); ?></a></li>
    132144                <li id="tablink-developers"><a href='#developers'><?php _e( 'Development', 'wporg-plugins' ); ?></a></li>
    133145    </ul>
    134146<?php } ?>