echo '<div class="notice notice-warning"><p><strong>' .
__( 'Warning:'
) . '</strong> ' .
sprintf( /* translators: %s: URL to Plugins screen. */
__( 'Please <a href="%s">deactivate your plugins</a> before enabling the Network feature.'
),
admin_url( 'plugins.php?plugin_status=active'
) ) . '</p></div>';
echo '<p>' .
__( 'Once the network is created, you may reactivate your plugins.'
) . '</p>';
echo '</div>';
require_once ABSPATH . 'wp-admin/admin-footer.php';
die();
} $hostname =
get_clean_basedomain();
$has_ports =
strstr( $hostname, ':'
);
if ( ( false !==
$has_ports && !
in_array( $has_ports, array
( ':80', ':443'
), true
) ) ) { echo '<div class="error"><p><strong>' .
__( 'Error:'
) . '</strong> ' .
__( 'You cannot install a network of sites with your server address.'
) . '</p></div>';
echo '<p>' .
sprintf( /* translators: %s: Port number. */
__( 'You cannot use port numbers such as %s.'
),
'<code>' .
$has_ports . '</code>'
) . '</p>';
echo '<a href="' .
esc_url( admin_url() ) . '">' .
__( 'Go to Dashboard'
) . '</a>';
echo '</div>';
require_once ABSPATH . 'wp-admin/admin-footer.php';