Make WordPress Core


Ignore:
Timestamp:
01/18/2010 08:34:48 PM (15 years ago)
Author:
ryan
Message:

Coding standards, space after if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin-install.php

    r12742 r12752  
    2929function plugins_api($action, $args = null) {
    3030
    31     if( is_array($args) )
     31    if ( is_array($args) )
    3232        $args = (object)$args;
    3333
     
    326326        <tbody class="plugins">
    327327        <?php
    328             if( empty($plugins) )
     328            if ( empty($plugins) )
    329329                echo '<tr><td colspan="5">', __('No plugins match your request.'), '</td></tr>';
    330330
    331             foreach( (array) $plugins as $plugin ){
     331            foreach ( (array) $plugins as $plugin ){
    332332                if ( is_object($plugin) )
    333333                    $plugin = (array) $plugin;
     
    350350
    351351                $author = $plugin['author'];
    352                 if( ! empty($plugin['author']) )
     352                if ( ! empty($plugin['author']) )
    353353                    $author = ' <cite>' . sprintf( __('By %s'), $author ) . '.</cite>';
    354354
    355355                $author = wp_kses($author, $plugins_allowedtags);
    356356
    357                 if( isset($plugin['homepage']) )
     357                if ( isset($plugin['homepage']) )
    358358                    $title = '<a target="_blank" href="' . esc_attr($plugin['homepage']) . '">' . $title . '</a>';
    359359
     
    424424
    425425    $section = isset($_REQUEST['section']) ? stripslashes( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English.
    426     if( empty($section) || ! isset($api->sections[ $section ]) )
     426    if ( empty($section) || ! isset($api->sections[ $section ]) )
    427427        $section = array_shift( $section_titles = array_keys((array)$api->sections) );
    428428
Note: See TracChangeset for help on using the changeset viewer.