Making WordPress.org


Ignore:
Timestamp:
08/16/2018 05:19:19 PM (7 years ago)
Author:
obenland
Message:

Main: Enable links to sha1 hashes on Rosetta sites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/template-tags.php

    r7403 r7616  
    1616 */
    1717function release_row( $release ) {
    18     $is_rosetta = defined( 'IS_ROSETTA_NETWORK' ) && IS_ROSETTA_NETWORK;
    1918    ?>
    2019    <tr>
     
    2221        <td><?php echo esc_html( date_i18n( get_option( 'date_format' ), $release['builton'] ) ); ?></td>
    2322        <td><a href="<?php echo esc_url( $release['zip_url'] ); ?>">zip</a><br>
    24             <small>(<a href="<?php echo esc_url( $release['zip_url'] . '.md5' ); ?>">md5</a><?php if ( ! $is_rosetta ) : ?> | <a href="<?php echo esc_url( $release['zip_url'] . '.sha1' ); ?>">sha1</a><?php endif; ?>)</small>
     23            <small>(<a href="<?php echo esc_url( $release['zip_url'] . '.md5' ); ?>">md5</a> | <a href="<?php echo esc_url( $release['zip_url'] . '.sha1' ); ?>">sha1</a>)</small>
    2524        </td>
    2625        <td><a href="<?php echo esc_url( $release['targz_url'] ); ?>">tar.gz</a><br>
    27             <small>(<a href="<?php echo esc_url( $release['targz_url'] . '.md5' ); ?>">md5</a><?php if ( ! $is_rosetta ) : ?> | <a href="<?php echo esc_url( $release['targz_url'] . '.sha1' ); ?>">sha1</a><?php endif; ?>)</small>
     26            <small>(<a href="<?php echo esc_url( $release['targz_url'] . '.md5' ); ?>">md5</a> | <a href="<?php echo esc_url( $release['targz_url'] . '.sha1' ); ?>">sha1</a>)</small>
    2827        </td>
    29         <?php if ( ! $is_rosetta ) : ?>
     28        <?php if ( ! defined( 'IS_ROSETTA_NETWORK' ) || ! IS_ROSETTA_NETWORK ) : ?>
    3029            <td>
    3130                <?php if ( ! empty( $release['iis_url'] ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.