function render_nojs_configurable() { echo '<div class="clouds-sm"></div>'; echo '<div class="wrap configure-module">'; $module_name = preg_replace('/[^\\da-z\\-]+/', '', $_GET['configure']); if (Jetpack::is_module($module_name) && current_user_can('jetpack_configure_modules')) { Jetpack::admin_screen_configure_module($module_name); } else { echo '<h2>' . esc_html__('Error, bad module.', 'jetpack') . '</h2>'; } echo '</div><!-- /wrap -->'; }
function render_nojs_configurable($module_name) { $module_name = preg_replace('/[^\\da-z\\-]+/', '', $_GET['configure']); include_once JETPACK__PLUGIN_DIR . '_inc/header.php'; echo '<div class="wrap configure-module">'; if (Jetpack::is_module($module_name) && current_user_can('jetpack_configure_modules')) { Jetpack::admin_screen_configure_module($module_name); } else { echo '<h2>' . esc_html__('Error, bad module.', 'jetpack') . '</h2>'; } echo '</div><!-- /wrap -->'; }