Ticket #14125: 14125.2.diff
File 14125.2.diff, 1.5 KB (added by , 14 years ago) |
---|
-
wp-admin/network/site-options.php
89 89 <?php 90 90 $blog_prefix = $wpdb->get_blog_prefix( $id ); 91 91 $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '\_%' AND option_name NOT LIKE '%user_roles'" ); 92 $sd_options = array(); 92 93 foreach ( $options as $option ) { 93 94 if ( $option->option_name == 'default_role' ) 94 95 $editblog_default_role = $option->option_value; … … 98 99 if ( is_serialized_string( $option->option_value ) ) { 99 100 $option->option_value = esc_html( maybe_unserialize( $option->option_value ), 'single' ); 100 101 } else { 101 $option->option_value = 'SERIALIZED DATA'; 102 $disabled = true; 103 $class = 'all-options disabled'; 102 $sd_options[] = $option; 103 continue; 104 104 } 105 105 } 106 106 if ( strpos( $option->option_value, "\n" ) !== false ) { … … 128 128 <?php submit_button(); ?> 129 129 </form> 130 130 131 <h3><?php _e( 'Non-editable site options' ); ?></h3> 132 <table class="form-table"> 133 <?php foreach ( $sd_options as $option ) { ?> 134 <tr class="form-field"> 135 <th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th> 136 </tr> 137 <?php } // End foreach ?> 138 </table> 139 131 140 </div> 132 141 <?php 133 require('../admin-footer.php'); 134 No newline at end of file 142 require('../admin-footer.php');