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/themes.php

    r12743 r12752  
    1717    $ct = current_theme_info();
    1818    $allowed_themes = apply_filters("allowed_themes", get_site_allowed_themes() );
    19     if( $allowed_themes == false )
     19    if ( $allowed_themes == false )
    2020        $allowed_themes = array();
    2121
    2222    $blog_allowed_themes = wpmu_get_blog_allowedthemes();
    23     if( is_array( $blog_allowed_themes ) )
     23    if ( is_array( $blog_allowed_themes ) )
    2424        $allowed_themes = array_merge( $allowed_themes, $blog_allowed_themes );
    25     if( $blog_id != 1 )
     25    if ( $blog_id != 1 )
    2626        unset( $allowed_themes[ "h3" ] );
    2727
    28     if( isset( $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] ) == false )
     28    if ( isset( $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] ) == false )
    2929        $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] = true;
    3030
    3131    reset( $themes );
    32     foreach( $themes as $key => $theme ) {
    33         if( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) {
     32    foreach ( $themes as $key => $theme ) {
     33        if ( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) {
    3434            unset( $themes[ $key ] );
    3535        }
     
    6868
    6969require_once('admin-header.php');
    70 if( is_multisite() && is_super_admin() ) {
     70if ( is_multisite() && is_super_admin() ) {
    7171    ?><div id="message0" class="updated fade"><p><?php _e('Administrator: new themes must be activated in the <a href="wpmu-themes.php">Themes Admin</a> page before they appear here.'); ?></p></div><?php
    7272}
Note: See TracChangeset for help on using the changeset viewer.