[wp-trac] [WordPress Trac] #34439: Consider removing the "list of files which will be deleted"

WordPress Trac noreply at wordpress.org
Tue Dec 15 05:57:10 UTC 2015


#34439: Consider removing the "list of files which will be deleted"
--------------------------+--------------------------------
 Reporter:  afercia       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  4.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  ui, accessibility
--------------------------+--------------------------------

Comment (by knutsp):

 Don't forget there are a lot of private plugins out there. Developers
 following recommendations has been pulling functionality snippets out of
 the (child) theme's `functions.php` and into small plugins. Some has
 chosen to put them into a single folder, knowing that trying to delete one
 warns you that other files will be deleted, too.

 Accidentially deleting a small, no longer needed plugin, that for some
 reason has been "bundeled" into the folder of another, important one, with
 the somewhat surprising side effect that the important one also gets
 deleted, may break things. While maybe not recommended, it has been de
 facto supported for about 10 years to make bundles of private plugins. In
 some cases they also share a library.

 Suggestion: If there are several detectable plugins in the same folder,
 only delete the plugin main file (not the entire folder).

 When the last plugin of such non-recommended bundle is deleted then the
 folder will be removed as usual. Should also work when bach deleting.

 If this check is implemented then I think it's ok to remove the list of
 files.

 And: WordPress does not remove legacy functionality just because it
 probably isn't useful for 80% of the users. This rule applies mainly to
 development of new features.

 As @nacin wrote: Smarter algorithms, smarter defaults
 [https://nacin.com/2015/05/24/smart-algorithms-defaults/]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34439#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list