network_step1
函数
network_step1 ( $errors = false )
- 参数
-
-
(false|WP_Error)
$errors
Optional. Error object. Default false.- Required: 否
- Default: false
-
(false|WP_Error)
- 定义位置
-
-
wp-admin/includes/network.php
, line 112
-
wp-admin/includes/network.php
- 引入
- 3.0.0
- 弃用
- –
Prints step 1 for Network installation process.
function network_step1( $errors = false ) {
global $is_apache;
if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
echo '' . __( 'Error:' ) . ' ' . sprintf(
/* translators: %s: DO_NOT_UPGRADE_GLOBAL_TABLES */
__( 'The constant %s cannot be defined when creating a network.' ),
'DO_NOT_UPGRADE_GLOBAL_TABLES'
) . '';
echo '
‘;
require_once ABSPATH . ‘wp-admin/admin-footer.php’;
die();
}
$active_plugins = get_option( ‘active_plugins’ );
if ( ! empty( $active_plugins ) ) {
echo ‘
‘ . __( ‘Warning:’ ) . ‘ ‘ . sprintf(
/* translators: %s: URL to Plugins screen. */
__( ‘Please deactivate your plugins before enabling the Network feature.’ ),
admin_url( ‘plugins.php?plugin_status=active’ )
) . ‘
‘;
echo ‘
‘ . __( ‘Once the network is created, you may reactivate your plugins.’ ) . ‘
‘;
echo ‘
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。