network activated scripts fire after site-specific once, intended or not?
-
Hi,
After fighting with your plugin for a while, we found out that for some reasons snippets that are network activated on a multisite installation have a lower priority then those on a particular site in the network itself.
Even if the network activated snippet has a lower priority set, 1, to that of the site specific snippet, 10.
This effectively means that network wide code, e.g. PHP class definitions, can’t be instantiated on the individual sites as those snippets run before the class is available which then effectively breaks the wordpress installation.
setup:
- class definition within the network admin and network activated “site specific activation” is off” setting is off (not that it makes any difference to the end result)
- * snippet on the subsite instantiates the class with a new class() defnition
- Running the latest version of Code Snippets and wordpress.
The topic ‘network activated scripts fire after site-specific once, intended or not?’ is closed to new replies.