[wp-trac] [WordPress Trac] #32465: Capital case chars in a plugin slug/name break the autoupdate mechanism.

WordPress Trac noreply at wordpress.org
Sat Jul 25 15:51:27 UTC 2015


#32465: Capital case chars in a plugin slug/name break the autoupdate mechanism.
-----------------------------+-----------------------
 Reporter:  caraffande       |       Owner:  dd32
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:  4.2.3
Component:  Upgrade/Install  |     Version:  4.2.2
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+-----------------------

Comment (by adamsilverstein):

 I also spent some time trying to reproduce this issue without any luck.
 Tried renaming plugin name, folder name, capitalizing, adding spaces, etc.
 In all cases the data-slug identifier matched the returned slug and the
 plugin was marked as updated.

 If the problem persists, it would be great to have clear steps to
 reproduce @caraffande! Thanks.

 Replying to [comment:6 dd32]:
 > Hi @caraffande,
 >
 > It was marked as fixed, as for me, the issue was resolved.
 > Can you elaborate on the '''exact''' steps you're using that shows the
 problem still? (including filenames & plugin headers). Furthermore, is
 this plugin using a 3rd-party update script or WordPress.org updates?
 >
 > The testing I've done is using a mixed-case folder names & filenames to
 duplicate, I set it up using the following:
 > {{{wp-content/plugins]$ mv akismet/ aKISmet && mv aKISmet/akismet.php
 aKISmet/aKISmet.php && sed -i 's/3.1.3/3.1.0/' aKISmet/aKISmet.php}}}
 >
 > Looking at your report closer though, I'm somewhat confused.. You seem
 to be indicating that you've got uppercase characters in the slug field,
 which isn't supposed to be possible here.
 > It does appear that two different sanitization methods are being used -
 `sanitize_title()` by the plugins page generation, and `sanitize_key()` by
 other code.. but as far as I can tell, for our purposes they should pretty
 close to one another.

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


More information about the wp-trac mailing list