• Resolved getyoowoo

    (@getyoowoo)


    When I create a new code snippets item in the network admin it comes up twice in the individual site admins… This didn’t happen BEFORE 2.8.4

    When I check the Changelog is see this for the last version:

    * Fixed all snippets being treated as network snippets on non-multisite sites

    but I believe it breaks something new that wasn’t broken before..?

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Yes, I imagine you’re right. In fixing one problem, I have managed to create another.

    I’ll take a look at the plugin and see what I can do about this.

    Thread Starter getyoowoo

    (@getyoowoo)

    Thanks for looking into this m8. Keep us posted ??

    Any update to this. With many snippets, it is getting very crowded and confusing with double of all the network enabled ones.

    Plugin Author Shea Bunge

    (@bungeshea)

    Unfortunately, I have been unable to reproduce this, and that really is the first step to fixing it. I’ll need to keep trying, but without being able to figure out what exactly is going wrong, I can’t figure out how to fix it.

    Thread Starter getyoowoo

    (@getyoowoo)

    Also another thing:

    When you click on the snippets NAME… it opens up EMPTY (bad)
    When you click on the snippets EDIT… it comes up WITH CODE (good)

    From what I can tell, the list under a subsite is showing the Network Shared Snippets + The Accessible Snippets. That second part means it lists its local and Network snippets adding to the initial network snippets.

    If under a subsite you only show network shared snippets, it only shows 1 of each. If you show all that is mean it doubles up.

    If need be I am more than happy to let you log in and see the issue on my site.

    Plugin Author Shea Bunge

    (@bungeshea)

    @getyoowoo that is strange, as the links for both should be the same – wp-admin/admin.php?page=edit-snippet&id=[snippet id]. Is this the case for your site?

    @eangulus Ah, so it is showing shared network snippets once because they are shared network snippets, and another time because they are multisite snippets. I see now. Thank you for that information – I should be able to fix this now.

    Whats the difference with multisite and shared?

    The way I am using it is that if I have a Snippet that can be used on any subsite and not theme dependent, then I add it from the main site and Network Share it. I then go to each subsite that needs it and enable it. If I need it on every site I add it the same way but enable it network wide.

    If it is something particular for only 1 subsite, but not theme dependent then I go to the subsite, add snippet and enable from there.

    If it is something dependent on the theme, then I add to functions.php.

    So when I am under a subsite and looking at the snippets. If I have Show All as the filter, then I get single subsite snippets but double the network snippets.

    If I set the filter to shared on network (while still under the subsite) it then only shows a single instance of each network snippets.

    Hopefully, this makes it clearer (for me anyway).

    Plugin Author Shea Bunge

    (@bungeshea)

    Hey Shaun,

    I’ve just released version 2.8.5 which should fix this issue. Please try it out and let me know if it does. Thanks!

    Not sure if it’s you or mean, but I try to update, it says it’s completed and yet the file still shows as 2.8.4 and there is still an update available.

    Double checking my end at the moment.

    It’s not my end. I had other plugins to update and they worked fine.

    Updating Code snippets did change the date on the main code-snippets.php file but the contents is still 2.8.4

    OK, I had to install via downloading the zip from Github. Refused to update otherwise.

    Any way I can confirm the problem is fixed. No more duplicates.

    Thanks. Oh and this is a very handy plugin. I got tired of copying snippets from functions.php and dropping into all other subsites. No basically I only use functions.php if it is theme dependent. everything else goes into snippets. Much better way of doing things, (never liked the functions.php method)

    Did find a new bug.

    All the Syntax Highlighting is now gone. Just plain now. Notice when checking settings to that there are no Syntax Themes, only Default. (not sure if there was more there)

    Thread Starter getyoowoo

    (@getyoowoo)

    Here the problem remains…

    Let me explain with a screeny:

    Snippets on the NETWORK site in multi site
    Snippets on the NETWORK site in multi site

    Snippets on the SINGLE site in multi site
    Snippets on the SINGLE site in multi site

    Thread Starter getyoowoo

    (@getyoowoo)

    Lol Shaun has the same as me…

    Even though the link of the snippets NAME and EDIT are the same… When you click the NAME the snippets comes up empty.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Double items in Multi website sites’ is closed to new replies.