Make WordPress Core


Ignore:
Timestamp:
11/18/2010 05:37:00 AM (16 years ago)
Author:
nacin
Message:

Every time you nest a ternary operator, a kitten dies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r16454 r16455  
    2626        if ( ! defined( 'MULTISITE' ) )
    2727                wp_die( __( 'The Network creation panel is not for WordPress MU networks.' ) );
    28 }       
     28}
    2929
    3030// We need to create references to ms global tables to enable Network.
     
    313313
    314314        if ( $_POST ) {
    315                 $subdomain_install = allow_subdomain_install() ? ( allow_subdirectory_install() ? ! empty( $_POST['subdomain_install'] ) : true ) : false;
     315                if ( allow_subdomain_install() )
     316                        $subdomain_install = allow_subdirectory_install() ? ! empty( $_POST['subdomain_install'] ) : true;
     317                else
     318                        $subdomain_install = false;
    316319        } else {
    317320                if ( is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.