Making WordPress.org

Ticket #2854: 2854.2.diff

File 2854.2.diff, 2.6 KB (added by audrasjb, 7 years ago)

Add missing echo instruction to the permalink :P

  • wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
    index 9a5655a..0de306a 100644
    a b $content = Plugin_Directory::instance()->split_post_content_into_pages( get_the_ 
    115115                ?></span>
    116116        </header><!-- .entry-header -->
    117117
    118 <?php if ( ! get_query_var( 'plugin_advanced' ) ) { ?>
     118<?php if ( get_query_var( 'plugin_advanced' ) ) { ?>
     119        <span id="description"></span>
     120        <span id="reviews"></span>
     121        <span id="installation"></span>
     122        <span id="developers"></span>
     123        <ul class="tabs clear">
     124                <li id="tablink-description"><a href='<?php echo esc_url( get_permalink() ); ?>/#description'><?php _e( 'Details', 'wporg-plugins' ); ?></a></li>
     125                <li id="tablink-reviews"><a href='<?php echo esc_url( get_permalink() ); ?>/#reviews'><?php _e( 'Reviews', 'wporg-plugins' ); ?></a></li>
     126        <?php if ( isset( $content[ 'installation' ] ) ) { ?>
     127                <li id="tablink-installation"><a href='<?php echo esc_url( get_permalink() ); ?>/#installation'><?php _e( 'Installation', 'wporg-plugins' ); ?></a></li>
     128        <?php } ?>
     129                <li id="tablink-support"><a href='<?php echo Template::get_support_url(); ?>'><?php _e( 'Support', 'wporg-plugins' ); ?></a></li>
     130                <li id="tablink-developers"><a href='<?php echo esc_url( get_permalink() ); ?>/#developers'><?php _e( 'Development', 'wporg-plugins' ); ?></a></li>
     131    </ul>
     132<?php } else { ?>
    119133        <span id="description"></span>
    120134        <span id="reviews"></span>
    121135        <span id="installation"></span>
    $content = Plugin_Directory::instance()->split_post_content_into_pages( get_the_ 
    123137        <ul class="tabs clear">
    124138                <li id="tablink-description"><a href='#description'><?php _e( 'Details', 'wporg-plugins' ); ?></a></li>
    125139                <li id="tablink-reviews"><a href='#reviews'><?php _e( 'Reviews', 'wporg-plugins' ); ?></a></li>
    126 <?php if ( isset( $content[ 'installation' ] ) ) { ?>
     140        <?php if ( isset( $content[ 'installation' ] ) ) { ?>
    127141                <li id="tablink-installation"><a href='#installation'><?php _e( 'Installation', 'wporg-plugins' ); ?></a></li>
    128 <?php } ?>
     142        <?php } ?>
    129143                <li id="tablink-support"><a href='<?php echo Template::get_support_url(); ?>'><?php _e( 'Support', 'wporg-plugins' ); ?></a></li>
    130144                <li id="tablink-developers"><a href='#developers'><?php _e( 'Development', 'wporg-plugins' ); ?></a></li>
    131145    </ul>