paused_plugins_notice

The timeline below displays how wordpress function paused_plugins_notice has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Renders an admin notice in case some plugins have been paused due to errors.
 *
 * @since 5.2.0
 *
 * @global string                       $pagenow         The filename of the current screen.
 * @global WP_Paused_Extensions_Storage $_paused_plugins
 */
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;
    }
    $message = sprintf('<strong>%s</strong><br>%s</p><p><a href="%s">%s</a>', __('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'));
    wp_admin_notice($message, array('type' => 'error'));
}

WordPress Version: 6.4

/**
 * Renders an admin notice in case some plugins have been paused due to errors.
 *
 * @since 5.2.0
 *
 * @global string $pagenow The filename of the current screen.
 */
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;
    }
    $message = sprintf('<strong>%s</strong><br>%s</p><p><a href="%s">%s</a>', __('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'));
    wp_admin_notice($message, array('type' => 'error'));
}

WordPress Version: 6.1

/**
 * Renders an admin notice in case some plugins have been paused due to errors.
 *
 * @since 5.2.0
 *
 * @global string $pagenow The filename of the current screen.
 */
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('<div class="notice notice-error"><p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p></div>', __('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'));
}

WordPress Version: 5.7

/**
 * Renders an admin notice in case some plugins have been paused due to errors.
 *
 * @since 5.2.0
 *
 * @global string $pagenow
 */
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('<div class="notice notice-error"><p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p></div>', __('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'));
}

WordPress Version: 5.2

/**
 * Renders an admin notice in case some plugins have been paused due to errors.
 *
 * @since 5.2.0
 */
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('<div class="notice notice-error"><p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p></div>', __('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'));
}