You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
The issue still exists against the latest stable version of Code Snippets.
Type of Bug
A Code Snippet
Description
In a multi-site, the option to 'Allow this snippet to be activated on individual sites on the network' does not save (and automatically disables the snippet on any individual site where it was activated for that site).
What I would expect is that the snippet would be available for activation on individual sites in that network, and that if it had previously already been active prior to saving the snippet, that it would remain active.
What happens is that the snippet is not made available to be activated on individual sites in the network, and if it had been activated for any individual site, it is now deactivated.
My work-around is to directly edit the 'shared_network_snippets' meta_key in the database for the network. And then I go and re-enable for all individual sites that use it.
Steps to reproduce
Steps to reproduce, in a multi-site setup, with multiple networks:
Add new or edit an existing snippet
Tick the option 'Allow this snippet to be activated on individual sites on the network'
Save changes
Refresh the page to see that the option is no longer ticked
Isolating the problem
This bug happens with only the Code Snippets plugin active (Free or Pro).
This bug happens with a Blank WordPress theme active. For example: (Hello theme).
I can reproduce this bug consistently following the steps above.
Comment
My actual environment is a multi-network setup, in other words, many multi-sites.
There is a slight complexity in that while the snippet is the same across all networks (in other words... if it gets edited through one network all networks reflect the same change), the option to 'Allow this snippet to be activated on individual sites on the network' can however be different per network.
I did checked with multi-network functionality turned off and the issue still occurred, so I'm guessing it's a multi-site issue, rather than being unique to a multi-network setup.
The text was updated successfully, but these errors were encountered:
same issue for me (v3.6.5)
I try some patchs that seems to work, waiting for an official bugfix
(not sure it cover all cases, but for basic snippet edition), seems ok
Prerequisites
Type of Bug
A Code Snippet
Description
In a multi-site, the option to 'Allow this snippet to be activated on individual sites on the network' does not save (and automatically disables the snippet on any individual site where it was activated for that site).
What I would expect is that the snippet would be available for activation on individual sites in that network, and that if it had previously already been active prior to saving the snippet, that it would remain active.
What happens is that the snippet is not made available to be activated on individual sites in the network, and if it had been activated for any individual site, it is now deactivated.
My work-around is to directly edit the 'shared_network_snippets' meta_key in the database for the network. And then I go and re-enable for all individual sites that use it.
Steps to reproduce
Steps to reproduce, in a multi-site setup, with multiple networks:
Isolating the problem
Comment
The text was updated successfully, but these errors were encountered: