WordPress.org

Making WordPress.org


Ignore:
Timestamp:
01/22/2015 08:03:42 PM (5 years ago)
Author:
dd32
Message:

Rosetta Downloads template: Code cleanup and removal of some PHP Notices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/download.php

    r465 r1165  
    1010    <div class="section releases">
    1111<?php
    12     if (!empty($releases)):
    13         if (isset($releases['latest'])):
     12    if ( ! empty( $releases ) ):
     13        if ( isset( $releases['latest'] ) ):
    1414            release_row(null, null, null, true);
    1515?>
    1616            <h3 id="latest"><?php _e('Latest release', 'rosetta'); ?></h3>
    1717            <table class="releases latest">
    18                 <?php echo release_row($releases['latest'], 'alt'); ?>
     18                <?php echo release_row( $releases['latest'], 'alt' ); ?>
    1919            </table>
    2020<?php
    2121        endif;
    22         if (is_array($releases['branches'])):
     22        if ( ! empty( $releases['branches'] ) ):
    2323?>
    2424            <a name="older" id="older"></a>
    2525<?php
    26         foreach ($releases['branches'] as $branch => $branch_rels):
    27             release_row(null, null, null, true);
     26        foreach ( $releases['branches'] as $branch => $branch_rels ):
     27            release_row( null, null, null, true );
    2828?>
    29             <h3><?php printf(__('%s Branch', 'rosetta'), $branch);?></h3>
     29            <h3><?php printf( __('%s Branch', 'rosetta'), $branch );?></h3>
    3030            <table class="releases">
    3131<?php
    32     foreach($branch_rels as $release):
     32    foreach ( $branch_rels as $release ):
    3333?>
    34                 <?php release_row($release, 'alt');?>
     34                <?php release_row( $release, 'alt' );?>
    3535<?php
    3636    endforeach;
     
    4040        endforeach;
    4141        endif; # any branches
    42         if (is_array($releases['betas'])):
     42        if ( ! empty( $releases['betas'] ) ):
    4343?>
    4444            <h3 id="betas"><?php _e('Beta &amp; RC releases', 'rosetta'); ?></h3>
    4545            <table id="beta" class="releases">
    4646<?php
    47     release_row(null, null, null, true);
    48     foreach($releases['betas'] as $release):
     47    release_row( null, null, null, true );
     48    foreach ( $releases['betas'] as $release ):
    4949?>
    50                 <?php release_row($release, 'alt', 'beta-first');?>
     50                <?php release_row( $release, 'alt', 'beta-first' ); ?>
    5151<?php
    5252    endforeach;
Note: See TracChangeset for help on using the changeset viewer.