Make WordPress Core


Ignore:
Timestamp:
07/12/2020 01:20:58 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Make delete plugin message less scary.

This adds a check if the plugin actually has an uninstall routine before saying that its data will be deleted too.

Props samful, joostdevalk, joyously, Chouby, SergeyBiryukov.
Fixes #50346.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r48418 r48451  
    943943                }
    944944
     945                if ( is_uninstallable_plugin( $plugin_file ) ) {
     946                        $class .= ' is-uninstallable';
     947                }
     948
    945949                printf(
    946950                        '<tr class="%s" data-slug="%s" data-plugin="%s">',
Note: See TracChangeset for help on using the changeset viewer.