| Server IP : 206.188.193.52 / Your IP : 216.73.217.55 Web Server : Apache System : Linux prod-iad-vuxweb1501ai 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : 2670060.2931588 ( 1910161) PHP Version : 7.4.33 Disable Function : shell_exec,passthru,exec,system,pcntl_exec MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /data/20/2/18/60/2670060/user/2931588/htdocs/nsiwordpress/wp-content/ |
Upload File : |
<?php
/*
This file goes in wp-content/install.php. It should be there before the WP installer is run.
The Jetpack plugin should alreday be in wp-content/plugins/jetpack/ beffore the WP installer is run.
*/
defined( 'JETPACK__INSTALL_PLUGIN_PATH' ) or define( 'JETPACK__INSTALL_PLUGIN_PATH', 'jetpack/jetpack.php' );
function install_jetpack() {
global $pagenow;
if ( !( 'install.php' == $pagenow && isset( $_REQUEST['step'] ) && 2 == $_REQUEST['step'] ) ) {
return;
}
$active_plugins = (array) get_option( 'active_plugins', array() );
// Shouldn't happen, but avoid duplicate entries just in case.
if ( !empty( $active_plugins ) && false !== array_search( JETPACK__INSTALL_PLUGIN_PATH, $active_plugins ) ) {
return;
}
$active_plugins[] = JETPACK__INSTALL_PLUGIN_PATH;
update_option( 'active_plugins', $active_plugins );
update_option( 'jetpack_activated', 3 );
update_option( 'jetpack_do_activate', 1 );
}
add_action( 'shutdown', 'install_jetpack' );