WordPress.org

Make WordPress Core

Changeset 45432


Ignore:
Timestamp:
05/26/2019 02:35:58 PM (15 months ago)
Author:
SergeyBiryukov
Message:

I18N: Remove unnecessary markup from plugin action messages, for consistency with the rest of the admin.

Props ramiy.
Fixes #47238.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugins.php

    r45140 r45432  
    485485        printf(
    486486            /* translators: 1: plugin file, 2: error message */
    487             __( 'The plugin %1$s has been <strong>deactivated</strong> due to an error: %2$s' ),
     487            __( 'The plugin %1$s has been deactivated due to an error: %2$s' ),
    488488            '<code>' . esc_html( $plugin_file ) . '</code>',
    489489            $error->get_error_message()
     
    546546                <?php
    547547                if ( 1 == (int) $_GET['deleted'] ) {
    548                     _e( 'The selected plugin has been <strong>deleted</strong>.' );
     548                    _e( 'The selected plugin has been deleted.' );
    549549                } else {
    550                     _e( 'The selected plugins have been <strong>deleted</strong>.' );
     550                    _e( 'The selected plugins have been deleted.' );
    551551                }
    552552                ?>
     
    555555        <?php endif; ?>
    556556<?php elseif ( isset( $_GET['activate'] ) ) : ?>
    557     <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>activated</strong>.' ); ?></p></div>
     557    <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin activated.' ); ?></p></div>
    558558<?php elseif ( isset( $_GET['activate-multi'] ) ) : ?>
    559     <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins <strong>activated</strong>.' ); ?></p></div>
     559    <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins activated.' ); ?></p></div>
    560560<?php elseif ( isset( $_GET['deactivate'] ) ) : ?>
    561     <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>deactivated</strong>.' ); ?></p></div>
     561    <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin deactivated.' ); ?></p></div>
    562562<?php elseif ( isset( $_GET['deactivate-multi'] ) ) : ?>
    563     <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins <strong>deactivated</strong>.' ); ?></p></div>
     563    <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins deactivated.' ); ?></p></div>
    564564<?php elseif ( 'update-selected' == $action ) : ?>
    565565    <div id="message" class="updated notice is-dismissible"><p><?php _e( 'All selected plugins are up to date.' ); ?></p></div>
    566566<?php elseif ( isset( $_GET['resume'] ) ) : ?>
    567     <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>resumed</strong>.' ); ?></p></div>
     567    <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin resumed.' ); ?></p></div>
    568568<?php endif; ?>
    569569
Note: See TracChangeset for help on using the changeset viewer.