Ticket #14125: 14125.diff
File 14125.diff, 1.7 KB (added by , 14 years ago) |
---|
-
wp-admin/ms-sites.php
179 179 <table class="form-table"> 180 180 <?php 181 181 $editblog_default_role = 'subscriber'; 182 $sd_options = array(); 182 183 foreach ( $options as $option ) { 183 184 if ( $option->option_name == 'default_role' ) 184 185 $editblog_default_role = $option->option_value; … … 188 189 if ( is_serialized_string( $option->option_value ) ) { 189 190 $option->option_value = esc_html( maybe_unserialize( $option->option_value ), 'single' ); 190 191 } else { 191 $option->option_value = 'SERIALIZED DATA'; 192 $disabled = true; 193 $class = 'all-options disabled'; 192 $sd_options[] = $option; 193 continue; 194 194 } 195 195 } 196 196 if ( strpos( $option->option_value, "\n" ) !== false ) { … … 218 218 <p class="submit" style="text-align:center;"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Update Options' ) ?>" /></p> 219 219 </div> 220 220 </div> 221 <div id="nonedit_blogoptions" class="postbox" > 222 <h3 class="hndle"><span><?php _e( 'Non-editable site options' ); ?></span></h3> 223 <div class="inside"> 224 <table class="form-table"> 225 <?php 226 foreach ( $sd_options as $option ) { 227 ?> 228 <tr class="form-field"> 229 <th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th> 230 </tr> 231 <?php 232 } // End foreach 233 ?> 234 </table> 235 </div> 236 </div> 221 237 </div> 222 238 223 239 <div class="metabox-holder" style="width:49%;float:right;">