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:
@@ -342,7 +342,14 @@ function update_nag() {
|
||||
);
|
||||
}
|
||||
|
||||
echo "<div class='update-nag notice notice-warning inline'>$msg</div>";
|
||||
wp_admin_notice(
|
||||
$msg,
|
||||
array(
|
||||
'type' => 'warning',
|
||||
'additional_classes' => array( 'update-nag', 'inline' ),
|
||||
'paragraph_wrap' => false,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -884,7 +891,14 @@ function maintenance_nag() {
|
||||
$msg = __( 'An automated WordPress update has failed to complete! Please notify the site administrator.' );
|
||||
}
|
||||
|
||||
echo "<div class='update-nag notice notice-warning inline'>$msg</div>";
|
||||
wp_admin_notice(
|
||||
$msg,
|
||||
array(
|
||||
'type' => 'warning',
|
||||
'additional_classes' => array( 'update-nag', 'inline' ),
|
||||
'paragraph_wrap' => false,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1049,19 +1063,12 @@ function wp_recovery_mode_nag() {
|
||||
$url = add_query_arg( 'action', WP_Recovery_Mode::EXIT_ACTION, $url );
|
||||
$url = wp_nonce_url( $url, WP_Recovery_Mode::EXIT_ACTION );
|
||||
|
||||
?>
|
||||
<div class="notice notice-info">
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: Recovery Mode exit link. */
|
||||
__( 'You are in recovery mode. This means there may be an error with a theme or plugin. To exit recovery mode, log out or use the Exit button. <a href="%s">Exit Recovery Mode</a>' ),
|
||||
esc_url( $url )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
$message = sprintf(
|
||||
/* translators: %s: Recovery Mode exit link. */
|
||||
__( 'You are in recovery mode. This means there may be an error with a theme or plugin. To exit recovery mode, log out or use the Exit button. <a href="%s">Exit Recovery Mode</a>' ),
|
||||
esc_url( $url )
|
||||
);
|
||||
wp_admin_notice( $message, array( 'type' => 'info' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user