Making WordPress.org

Changeset 8622


Ignore:
Timestamp:
04/10/2019 03:58:51 PM (5 years ago)
Author:
coffee2code
Message:

Main theme: Conditionally output last 'col' tag to prevent display of blank column under Firefox.

Props ishitaka.
Fixes #4379.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main
Files:
2 edited

Legend:

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

    r7616 r8622  
    99
    1010namespace WordPressdotorg\MainTheme;
     11
     12/**
     13 * Displays table col tags.
     14 */
     15function release_cols() {
     16    ?>
     17    <col width="15%" />
     18    <col width="25%" />
     19    <col width="15%" />
     20    <col width="15%" />
     21    <?php if ( ! defined( 'IS_ROSETTA_NETWORK' ) || ! IS_ROSETTA_NETWORK ) : ?>
     22        <col width="15%" />
     23    <?php endif; ?>
     24    <?php
     25}
    1126
    1227/**
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-releases.php

    r8456 r8622  
    6868                            <h3 id="latest"><?php esc_html_e( 'Latest release', 'wporg' ); ?></h3>
    6969                            <table class="releases latest">
    70                                 <col width="15%" />
    71                                 <col width="25%" />
    72                                 <col width="15%" />
    73                                 <col width="15%" />
    74                                 <col width="15%" />
     70                                <?php release_cols(); ?>
    7571                                <?php release_row( $releases['latest'] ); ?>
    7672                            </table>
     
    9389                                </h3>
    9490                                <table class="releases">
    95                                     <col width="15%" />
    96                                     <col width="25%" />
    97                                     <col width="15%" />
    98                                     <col width="15%" />
    99                                     <col width="15%" />
     91                                    <?php release_cols(); ?>
    10092                                    <?php
    10193                                    foreach ( $branch_release as $release ) :
     
    113105                            <p><?php esc_html_e( 'These were testing releases and are only available here for archival purposes.', 'wporg' ); ?></p>
    114106                            <table id="beta" class="releases">
    115                                 <col width="15%" />
    116                                 <col width="25%" />
    117                                 <col width="15%" />
    118                                 <col width="15%" />
    119                                 <col width="15%" />
     107                                <?php release_cols(); ?>
    120108                                <?php
    121109                                foreach ( $releases['betas'] as $release ) :
     
    133121                            <p><?php esc_html_e( 'WordPress MU releases made prior to MU being merged into WordPress 3.0', 'wporg' ); ?></p>
    134122                            <table class="releases">
    135                                 <col width="15%" />
    136                                 <col width="30%" />
    137                                 <col width="15%" />
    138                                 <col width="15%" />
    139                                 <col width="15%" />
     123                                <?php release_cols(); ?>
    140124                                <?php
    141125                                foreach ( $releases['mu'] as $release ) :
Note: See TracChangeset for help on using the changeset viewer.