mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
I18N: Remove unnecessary markup from plugin action messages, for consistency with the rest of the admin.
Props ramiy. Fixes #47238. Built from https://develop.svn.wordpress.org/trunk@45432 git-svn-id: http://core.svn.wordpress.org/trunk@45243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5db16738e
commit
6c50f22e4e
@ -484,7 +484,7 @@ if ( ! empty( $invalid ) ) {
|
|||||||
echo '<div id="message" class="error"><p>';
|
echo '<div id="message" class="error"><p>';
|
||||||
printf(
|
printf(
|
||||||
/* translators: 1: plugin file, 2: error message */
|
/* translators: 1: plugin file, 2: error message */
|
||||||
__( 'The plugin %1$s has been <strong>deactivated</strong> due to an error: %2$s' ),
|
__( 'The plugin %1$s has been deactivated due to an error: %2$s' ),
|
||||||
'<code>' . esc_html( $plugin_file ) . '</code>',
|
'<code>' . esc_html( $plugin_file ) . '</code>',
|
||||||
$error->get_error_message()
|
$error->get_error_message()
|
||||||
);
|
);
|
||||||
@ -545,26 +545,26 @@ elseif ( isset( $_GET['deleted'] ) ) :
|
|||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
if ( 1 == (int) $_GET['deleted'] ) {
|
if ( 1 == (int) $_GET['deleted'] ) {
|
||||||
_e( 'The selected plugin has been <strong>deleted</strong>.' );
|
_e( 'The selected plugin has been deleted.' );
|
||||||
} else {
|
} else {
|
||||||
_e( 'The selected plugins have been <strong>deleted</strong>.' );
|
_e( 'The selected plugins have been deleted.' );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php elseif ( isset( $_GET['activate'] ) ) : ?>
|
<?php elseif ( isset( $_GET['activate'] ) ) : ?>
|
||||||
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>activated</strong>.' ); ?></p></div>
|
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin activated.' ); ?></p></div>
|
||||||
<?php elseif ( isset( $_GET['activate-multi'] ) ) : ?>
|
<?php elseif ( isset( $_GET['activate-multi'] ) ) : ?>
|
||||||
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins <strong>activated</strong>.' ); ?></p></div>
|
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins activated.' ); ?></p></div>
|
||||||
<?php elseif ( isset( $_GET['deactivate'] ) ) : ?>
|
<?php elseif ( isset( $_GET['deactivate'] ) ) : ?>
|
||||||
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>deactivated</strong>.' ); ?></p></div>
|
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin deactivated.' ); ?></p></div>
|
||||||
<?php elseif ( isset( $_GET['deactivate-multi'] ) ) : ?>
|
<?php elseif ( isset( $_GET['deactivate-multi'] ) ) : ?>
|
||||||
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins <strong>deactivated</strong>.' ); ?></p></div>
|
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins deactivated.' ); ?></p></div>
|
||||||
<?php elseif ( 'update-selected' == $action ) : ?>
|
<?php elseif ( 'update-selected' == $action ) : ?>
|
||||||
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'All selected plugins are up to date.' ); ?></p></div>
|
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'All selected plugins are up to date.' ); ?></p></div>
|
||||||
<?php elseif ( isset( $_GET['resume'] ) ) : ?>
|
<?php elseif ( isset( $_GET['resume'] ) ) : ?>
|
||||||
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>resumed</strong>.' ); ?></p></div>
|
<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin resumed.' ); ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-45431';
|
$wp_version = '5.3-alpha-45432';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user