WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/02/2021 03:11:54 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Plugins: Make sure Hello Dolly translations are deleted when the plugin is deleted.

Follow-up to [19965], [29856].

Props costdev, Otshelnik-Fm, JeffPaul, SergeyBiryukov.
Fixes #52817.

File:
1 edited

Legend:

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

    r50921 r51064  
    10001000        }
    10011001
     1002        $plugin_slug = dirname( $plugin_file );
     1003
     1004        if ( 'hello.php' === $plugin_file ) {
     1005            $plugin_slug = 'hello-dolly';
     1006        }
     1007
    10021008        // Remove language files, silently.
    1003         $plugin_slug = dirname( $plugin_file );
    10041009        if ( '.' !== $plugin_slug && ! empty( $plugin_translations[ $plugin_slug ] ) ) {
    10051010            $translations = $plugin_translations[ $plugin_slug ];
Note: See TracChangeset for help on using the changeset viewer.