• 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.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Image3leavedclover

    (@3leavedclover)

    It would help if I knew if this was intended behaviour and if so how to change the order so PHP snippets with class definitions can be activated network-wide whilst their instantiation (configuration usually) can be done on the individual sites in the network.

    Or that this is a bug and needs to be fixed.

    Plugin Contributor ImageVerdi Heinz

    (@ver3)

    Hi @3leavedclover we’ve added your message to a list of things we need to investigate. We’ll need a little bit more time. If there is anything new on your end, please do let us know. For now I’ll mark this one as resolved, as we’ve already moved it to our Dev board. Feel free to reopen at any time.

    Thread Starter Image3leavedclover

    (@3leavedclover)

    hi,

    Hope you do report back if/when this is fixed as I presume this wasn’t expected behaviour.

    It would save me a lot of headaches or possibly code in multiple places (not advisable and a nightmare to keep in sync).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘network activated scripts fire after site-specific once, intended or not?’ is closed to new replies.