sort_optimizations($optimizer->get_optimizations()); foreach ($optimizations as $id => $optimization) { if ('optimizetables' == $id && false === $does_server_allows_table_optimization) continue; // If we don't want to show optimization on the first tab. if (false === $optimization->display_in_optimizations_list()) continue; // This is an array, with attributes dom_id, activated, settings_label, info; all values are strings. $use_ajax = defined('WP_OPTIMIZE_DEBUG_OPTIMIZATIONS') && WP_OPTIMIZE_DEBUG_OPTIMIZATIONS ? false : true; $html = $optimization->get_settings_html($use_ajax); $optimize_table_list_disabled = ''; $optimize_table_list_data_disabled = ''; // Check if the DOM is optimize-db to generate a list of tables. if ('optimize-db' == $html['dom_id']) { $table_list = $optimizer->get_table_information(); // Make sure that optimization_table_inno_db is set. if ($table_list['inno_db_tables'] > 0 && 0 == $table_list['is_optimizable'] && 0 == $table_list['non_inno_db_tables']) { $optimize_table_list_disabled .= 'disabled'; $optimize_table_list_data_disabled = 'data-disabled="1"'; $html['activated'] = ''; } } $sensitive_items = array( 'clean-transient', 'clean-pingbacks', 'clean-trackbacks', 'clean-postmeta', 'clean-orphandata', 'clean-commentmeta', ); ?>
>
get_last_output(); if ($last_output) { echo join('
', $last_output); } else { echo '...'; } } else { echo join('
', $html['info']); } ?>