One thing that's never been clear to me (especially since I haven't submitted a plugin to the repository) is how a plugin's unique "ID" (slug) is generated (i.e. this list).
- Is it a choice by the author at the point of SVN submission, or by a moderator?
- Is it the sanitized plugin name (title)?
- Is it the
plugin_basename
? - Is it the main plugin file (without the directory name)?
- Something else?
I'm curious as to which attribute(s) of a plugin link it to it's SVN counterpart (if it has one) for the plugin update API?
I ask, partly out of my nature to want to know, but also how to ensure (to some degree), my own one-off plugins won't clash with one in the SVN.
For example, if it was only 3), I could use a highly unique directory name, but keep my plugin name (title) short 'n sweet.
N.B. Whilst the "standard" file naming convention seems to be [my-plugin-name]/[my-plugin-name].php
, I've become fond of [my-plugin-name]/plugin.php
.
It gives all my plugins some consistency, it's clear that it's the "bootloader" (main) file, and from a petty standpoint I hate the repetition of the directory name.
This is another reason I ask the question, since 4) would screw me over. Plus I'd like to hear your thoughts on this "standard" too :)