Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -854,7 +854,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
||||
* @param bool $network_wide Whether to enable the plugin for all sites in the network.
|
||||
* Default false.
|
||||
* @param bool $silent Prevent calling activation hooks. Default false.
|
||||
* @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation.
|
||||
* @return true|WP_Error True when finished or WP_Error if there were errors during a plugin activation.
|
||||
*/
|
||||
function activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) {
|
||||
if ( ! is_array( $plugins ) ) {
|
||||
@@ -2440,7 +2440,7 @@ function wp_get_plugin_error( $plugin ) {
|
||||
*
|
||||
* @param string $plugin Single plugin to resume.
|
||||
* @param string $redirect Optional. URL to redirect to. Default empty string.
|
||||
* @return bool|WP_Error True on success, false if `$plugin` was not paused,
|
||||
* @return true|WP_Error True on success, false if `$plugin` was not paused,
|
||||
* `WP_Error` on failure.
|
||||
*/
|
||||
function resume_plugin( $plugin, $redirect = '' ) {
|
||||
@@ -2497,13 +2497,17 @@ function paused_plugins_notice() {
|
||||
return;
|
||||
}
|
||||
|
||||
printf(
|
||||
'<div class="notice notice-error"><p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p></div>',
|
||||
$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' )
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2571,8 +2575,8 @@ function deactivated_plugins_notice() {
|
||||
);
|
||||
}
|
||||
|
||||
printf(
|
||||
'<div class="notice notice-warning"><p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p></div>',
|
||||
$message = sprintf(
|
||||
'<strong>%s</strong><br>%s</p><p><a href="%s">%s</a>',
|
||||
sprintf(
|
||||
/* translators: %s: Name of deactivated plugin. */
|
||||
__( '%s plugin deactivated during WordPress upgrade.' ),
|
||||
@@ -2582,6 +2586,7 @@ function deactivated_plugins_notice() {
|
||||
esc_url( admin_url( 'plugins.php?plugin_status=inactive' ) ),
|
||||
__( 'Go to the Plugins screen' )
|
||||
);
|
||||
wp_admin_notice( $message, array( 'type' => 'warning' ) );
|
||||
}
|
||||
|
||||
// Empty the options.
|
||||
|
||||
Reference in New Issue
Block a user