Make WordPress Core


Ignore:
Timestamp:
08/04/2020 06:02:45 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Move the "Successfully installed the plugin" string to the correct Plugin_Upgrader method.

The string refers to the installation, and belongs in the ::install_strings() method, not in ::upgrade_strings().

Props sswebster, nateinaction.
Reviewed by whyisjake, SergeyBiryukov.
Merges [48734] to the 5.5 branch.
Fixes #50837.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/src/wp-admin/includes/class-plugin-upgrader.php

    r48687 r48735  
    6565                $this->strings['process_success']      = __( 'Plugin updated successfully.' );
    6666                $this->strings['process_bulk_success'] = __( 'Plugins updated successfully.' );
    67 
    68                 /* translators: 1: Plugin name, 2: Plugin version. */
    69                 $this->strings['process_success_specific'] = __( 'Successfully installed the plugin <strong>%1$s %2$s</strong>.' );
    7067        }
    7168
     
    8683                $this->strings['process_failed']      = __( 'Plugin installation failed.' );
    8784                $this->strings['process_success']     = __( 'Plugin installed successfully.' );
     85                /* translators: 1: Plugin name, 2: Plugin version. */
     86                $this->strings['process_success_specific'] = __( 'Successfully installed the plugin <strong>%1$s %2$s</strong>.' );
    8887
    8988                if ( ! empty( $this->skin->overwrite ) ) {
Note: See TracChangeset for help on using the changeset viewer.