How does WordPress know that a plugin is belong to WordPress plugin repository and it need to pull the updates from the WordPress SVN?
And on the other end how does it know that another plugin does not belong to repository?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communitySimply put it doesn't know. WordPress core periodically submits all the plugin data to api.wordpress.org
(see wp_update_plugins()
) which responds with updates available.
Note that plugins are downloaded as archives, SVN doesn't participate in the process directly and is only used as back-end storage mechanism.
So "knowing" that plugin doesn't belong is essentially when API cannot find matching one. Which is often problematic with it making wrong matches and custom code is needed to exclude such plugins from update check.