[wp-trac] Re: [WordPress Trac] #6547: Bug in Wordpress updated
plugins check
WordPress Trac
wp-trac at lists.automattic.com
Thu May 29 21:00:44 GMT 2008
#6547: Bug in Wordpress updated plugins check
----------------------------+-----------------------------------------------
Reporter: freediver | Owner: mdawaffe
Type: defect | Status: closed
Priority: high | Milestone: 2.6
Component: Administration | Version: 2.5
Severity: normal | Resolution: fixed
Keywords: |
----------------------------+-----------------------------------------------
Changes (by mdawaffe):
* status: new => closed
* resolution: => fixed
Comment:
The reported bug was fixed some time ago. The "JP Admin StylishBlue"
plugin was not returning the correct data because of another bug, which
has also now been fixed.
api.wordpress.org tries to guess what plugin you're talking about based on
a number of pieces of information:
* The Plugin URL of the plugin as reported by the plugin header.
Problem: some duplicates, changes from plugin version to plugin version.
* The local directory name of the plugin (if downloaded from the plugins
directory, most plugins will be installed in a subdirectory of wp-
content/plugins whose name matches that plugin's SVN directory). Problem:
Not everyone puts the plugins in the "expected" directories.
* The Plugin's name as reported by the plugin header (api.wordpress.org
compares this to the plugin's plugin header name NOT the readme.txt name).
Problem: Some duplicates, changes from version to version.
* Failing the above, the sanitized version of the plugin name
({{{sanitize_with_dashes()}}}). Problem: Same as above.
It weights the different factors (listed above from most to least
important).
The biggest problem is that api.wordpress.org only checks user-submitted
data against the ''most recent version'' of each plugin. A big help would
be to store some kind of signature for all versions of all plugins. I'll
work on getting that set up.
Another problem is duplicate data. Storing a signature for all plugins
and all versions would help some here too. Right now, if there are
plugins with duplicate plugin URLs, there can sometimes be mixups since
api.wordpress.org only compares the fields (URL, name, dir) one at a time
(URL =? URL, name =? name) instead of all at once (URL,name =? URL,name).
This is currently necessary because the data can change between plugin
versions; if we tried to compare all fields at once, we'd almost never get
matches.
--
Ticket URL: <http://trac.wordpress.org/ticket/6547#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list