[wp-trac] [WordPress Trac] #5115: WordPress updates don't work for plugins with spaces in their name

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 30 10:38:41 GMT 2007


#5115: WordPress updates don't work for plugins with spaces in their name
-----------------------------+----------------------------------------------
 Reporter:  Quandary         |       Owner:  anonymous
     Type:  defect           |      Status:  new      
 Priority:  highest omg bbq  |   Milestone:  2.3.1    
Component:  General          |     Version:  2.3      
 Severity:  normal           |    Keywords:           
-----------------------------+----------------------------------------------
 Updates are not shown for plugins that have space(s) in the name displayed
 in the plugin page (and, by extension, plugins that do not have a display
 name that is ''exactly'' the same as the SVN directory name). Switching
 the spaces to dashes in the plugin's header information causes updates to
 register correctly again.

 This problem could be solved in a number of ways:

  1. Add support for a new metadata tag for either the display name, or the
 repository name, so that the two values can differ. Specifying the latter
 is probably more backwards-compatible.
  1. Have either the client or the server normalize " " to "-".
  1. Force all the plugin writers to have their plugin names ''exactly''
 match their depot names.

 I'd really like to see the first option happen, but I don't know how much
 work it entails. In any case, the fact that this matchup has to happen
 ''should'' be documented somewhere, because it will break the update
 feature for an unknown number of plugins.

 I've attached an HTTP request demonstrating this problem, checking against
 the In Series plugin (you can change In+Series to In-Series in the file to
 see the update info working correctly). Simply execute cat request.txt |
 nc api.wordpress.org 80 to see the results.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5115>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list