Making WordPress.org


Ignore:
Timestamp:
09/26/2019 02:53:04 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory Theme: Move the JS for redirecting #changelog to #developers for back-compat after the #developers element.

This ensures that the Development tab is opened automatically upon the redirect. Previously, the code used to work in Chrome, but not in Firefox.

Props netpassprodsr.
Fixes #4701. See #2771.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r8882 r9151  
    5252
    5353    <?php if ( ! get_query_var( 'plugin_advanced' ) ) : ?>
    54         <script type="text/javascript">if ( '#changelog' == window.location.hash ) { window.location.hash = '#developers'; }</script>
    5554        <span id="description"></span>
    5655        <span id="reviews"></span>
     
    7069            <li id="tablink-developers"><a href="#developers"><?php esc_html_e( 'Development', 'wporg-plugins' ); ?></a></li>
    7170        </ul>
     71        <script type="text/javascript">if ( '#changelog' == window.location.hash ) { window.location.hash = '#developers'; }</script>
    7272    <?php endif; ?>
    7373
Note: See TracChangeset for help on using the changeset viewer.