[wp-hackers] Unique Theme/Plugin identifier

Andrew Nacin wp at andrewnacin.com
Wed Jun 5 19:57:27 UTC 2013


On Wed, Jun 5, 2013 at 3:56 PM, John Blackbourn <johnbillion+wp at gmail.com>wrote:

> On 5 June 2013 20:47, Mika A Epstein <ipstenu at ipstenu.org> wrote:
> > Plugin Slugs are unique, however :) That's how we do it.
>
> I don't believe that is how it works actually. A plugin can live in a
> directory with a different name locally and updates to it will still
> be found.
>
> IIRC from past threads, the API makes an informed decision based on
> the plugin name, author, URI, and filename. Maybe other fields too.


Correct, John.

WP.org uses a combination of the plugin slug, plugin name, plugin URL,
etc., to identify a plugin. Assume that we use any header sent back, we use.

Alex, for your GSoC project, use the plugin's slug + filename, as returned
by plugin_basename(), and as used for activate_plugins().


More information about the wp-hackers mailing list