Ticket #27144: pretty-site-settings.diff
File pretty-site-settings.diff, 1.6 KB (added by , 11 years ago) |
---|
-
src/wp-admin/network/site-settings.php
128 128 $class = 'all-options disabled'; 129 129 } 130 130 } 131 $optnames = array( 132 'siteurl' => __( 'Siteurl (WordPress Address)' ), 133 'home' => __( 'Home (Site Address)' ), 134 ); 135 if ( isset( $optnames[$option->option_name] ) ) { 136 $display_name = $optnames[$option->option_name]; 137 } else { 138 $display_name = ucwords( str_replace( "_", " ", $option->option_name ) ); 139 } 131 140 if ( strpos( $option->option_value, "\n" ) !== false ) { 132 141 ?> 133 142 <tr class="form-field"> 134 <th scope="row"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) )?></th>143 <th scope="row"><?php echo $display_name; ?></th> 135 144 <td><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo esc_textarea( $option->option_value ) ?></textarea></td> 136 145 </tr> 137 146 <?php 138 147 } else { 139 148 ?> 140 149 <tr class="form-field"> 141 <th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>150 <th scope="row"><?php echo $display_name; ?></th> 142 151 <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?> 143 152 <td><code><?php echo esc_html( $option->option_value ) ?></code></td> 144 153 <?php } else { ?>