Making WordPress.org

Ticket #4379: #4379.patch

File #4379.patch, 3.0 KB (added by ishitaka, 5 years ago)
  • wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/template-tags.php

     
    1010namespace WordPressdotorg\MainTheme;
    1111
    1212/**
     13 * Displays a table col with release information.
     14 */
     15function release_col() {
     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}
     26
     27/**
    1328 * Displays a table row with release information.
    1429 *
    1530 * @param array $release Release to be processed.
  • wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-releases.php

     
    6767                                                        ?>
    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_col(); ?>
    7571                                                                <?php release_row( $releases['latest'] ); ?>
    7672                                                        </table>
    7773                                                        <?php
     
    9288                                                                        ?>
    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_col(); ?>
    10092                                                                        <?php
    10193                                                                        foreach ( $branch_release as $release ) :
    10294                                                                                release_row( $release );
     
    112104                                                        <h3 id="betas"><?php esc_html_e( 'Beta &amp; RC releases', 'wporg' ); ?></h3>
    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_col(); ?>
    120108                                                                <?php
    121109                                                                foreach ( $releases['betas'] as $release ) :
    122110                                                                        release_row( $release );
     
    132120                                                        <h3 id="mu"><?php esc_html_e( 'MU releases', 'wporg' ); ?></h3>
    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_col(); ?>
    140124                                                                <?php
    141125                                                                foreach ( $releases['mu'] as $release ) :
    142126                                                                        release_row( $release );