paused_plugins_notice

函数


paused_plugins_notice ( No parameters )
定义位置
  • wp-admin/includes/plugin.php
    , line 2483
引入
5.2.0
弃用

Renders an admin notice in case some plugins have been paused due to errors.

function paused_plugins_notice() {
	if ( 'plugins.php' === $GLOBALS['pagenow'] ) {
		return;
	}

	if ( ! current_user_can( 'resume_plugins' ) ) {
		return;
	}

	if ( ! isset( $GLOBALS['_paused_plugins'] ) || empty( $GLOBALS['_paused_plugins'] ) ) {
		return;
	}

	printf(
		'

%s
%s

%s

', __( 'One or more plugins failed to load properly.' ), __( 'You can find more details and make changes on the Plugins screen.' ), esc_url( admin_url( 'plugins.php?plugin_status=paused' ) ), __( 'Go to the Plugins screen' ) ); }