[wp-hackers] Unique Theme/Plugin identifier

Alexander Höreth a.hoereth at gmail.com
Wed Jun 5 20:00:53 UTC 2013


Thanks Andrew. Atm I wanted to use author, plugin name, file name.
Idea of asking here was to do it the same way as .org because others maybe
already spent more thoughts on it.


2013/6/5 Andrew Nacin <wp at andrewnacin.com>

> 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().
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list