[wp-trac] [WordPress Trac] #60550: A plugin is deactivated if it is updated and the plugin folder has been renamed at some point.

WordPress Trac noreply at wordpress.org
Thu Feb 15 15:28:20 UTC 2024


#60550: A plugin is deactivated if it is updated and the plugin folder has been
renamed at some point.
--------------------------------------+------------------------------
 Reporter:  ReneHermi                 |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Plugins                   |     Version:  6.4.3
 Severity:  major                     |  Resolution:
 Keywords:  2nd-opinion dev-feedback  |     Focuses:  administration
--------------------------------------+------------------------------

Comment (by ReneHermi):

 A collegue just told me this behavior exist from the beginning and I
 assume it's caused by the zip folder structure where the plugin main
 folder name is the first folder of a plugin.zip.

 In that case I suggest adding a red colored plugin meta notice like this
 then:

 [img]https://monosnap.com/image/sJQnbqeC8GzGOg9eeR6zUPot005f8K[/img]


 "You have renamed the plugin folder plugin-name/plugin-name.php to
 something else. Please rename it or this plugin will be disabled on next
 update."

 This could be realized by a simple check if the plugin slug exist as
 folder inside the wp-content/plugins/ folder and would not be an expensive
 check.


 Screendesign https://monosnap.com/file/sJQnbqeC8GzGOg9eeR6zUPot005f8K

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


More information about the wp-trac mailing list