Skip to content

Site-wide snippets always evaluate before network-wide snippets #245

@sheabunge

Description

@sheabunge

Current behavior

On multisite networks, side-wide snippets are always evaluated before network-wide snippets, due to how they are fetched and processed from the database.

Expected behavior

Snippets should rely on the 'priority' field to determine evaluation order, ignoring other factors such as whether they are network or site snippets.

Steps to reproduce

  1. 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)
  2. snippet on the subsite instantiates the class with a new class() defnition

WordPress version

latest

Code Snippets version

latest

Code Snippets license

Core (free), Pro

Anything else?

Also see:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions