[wp-trac] Re: [WordPress Trac] #6015: Allow plugin installations via web interface.

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 4 03:28:18 GMT 2008


#6015: Allow plugin installations via web interface.
-------------------------------------------------+--------------------------
 Reporter:  DD32                                 |        Owner:  westi   
     Type:  enhancement                          |       Status:  assigned
 Priority:  normal                               |    Milestone:  2.7     
Component:  Administration                       |      Version:          
 Severity:  normal                               |   Resolution:          
 Keywords:  plugin install blessed summerofcode  |  
-------------------------------------------------+--------------------------
Changes (by DD32):

  * milestone:  2.9 => 2.7

Comment:

 > attachment plugin-install.diff added.
 > GSOC work as of 3rd August

 Aand of course the HTML preview doesnt show up :)

 Note that there are ~5 new files with this patch, The diff can be
 downloaded directly from http://wordpress-
 soc-2008.googlecode.com/svn/trunk/dion/ as well.

 An extra image is needed, {{{/wp-admin/images/star.gif}}} which is
 available from http://wordpress-soc-2008.googlecode.com/svn/trunk/dion
 /wpadmin-images-star.gif

 There'll be more patches coming the next few weeks as the rest of the code
 recieves its tidying up.

 Notes:
  * All JS'ified functions work without javasscript(eg, changing tabs in
 plugin information dialogue)
  * There are a few TODO's mentioned in comments in the code, Most will
 receive attention shortly, There are a few which i'm not sure how to
 handle yet.
  * The installer code needs some error conditions to be checked, Its still
 nearly a exact replica of the upgrade code with a single block removed.
  * If the Plugin information dialogue detects the plugin is installed, and
 needs an upgrade, it'll offer to upgrade (instead of Install), If it
 detects it installed and doesnt see an update available, it assumes its at
 the latest version allready. (This is a TODO, Detecting if the plugin is
 installed currently checks for a folder/file of the plugin slug in the
 plugins folder)
  * A database Upgrade will be required after patching to add the
 install_plugins capability to the Admin role. (Db version 8530 was used
 from memory)
  * The API is finally live on api.wordpress.org so this code is now being
 released - I plan on writing a crude API documentation at some stage, to
 replace that message ;)
    * Warning: The API may change if its determined something isnt working
 right, However it all seems to be running *very* nicely right now.
 (Directed at people who want to use it for something else)
    * The API currently only returns 6 plugins per page, I feel it'd be
 nicer for more to be returned. Note that the views also have the paging
 removed, This is something that needs to change on the API side - I'll
 look into it, I originally included a per_page arg in the API, but it has
 been pretty much removed upon the move to use more BBPress internal
 Functions rather than my own hacked up mess :)
  * The code does not yet have the ability to accept an uploaded .zip file,
 However that functionality is planned.
    * The code needs to be changed to work with #7395, So i'll probably
 merge that in with this code too (To move the correct folder)
      * That should also stop zips like this one causing an issue: (ie. do
 not install if zip does not contain legit plugins)
 http://wordpress.org/extend/plugins/accelerate-your-advertising/
  * Plugins which have "Plugin Name:" in the Title are *not* worked around
 by the code, If the readme.txt file has odd data, odd data is displayed in
 the browser(sanitized of course :))
  * The API uses the new HTTP classes

 I cant think of much more right now, Other than that testers are needed &
 that i'm happy for this to be commited and worked on from there

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6015#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list