Cannot Change Snippet Type
Closed this issue · 2 comments
Prerequisites
- 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
UI/UX
Description
My bad! I didn't look when adding a new CSS snippet, just started typing. Wound up in PHP, of course. I can't find any way to change the type on the snippets and move it under Styles except to pay attention and cut and paste to a new Styles.
BTW: All Snippets has the Type column. When I click it, it just disappears. That was where I was hoping to correct my error. It would be nice to be able to change it on both the Editor and the All Snippets.
Steps to reproduce
- Add New
- Leave in PHP and immediately type anything into the editor.
- Save Changes and Activate
Cannot (find a way to) change to Styles or anything other than PHP
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
I can't belive I'm not just missing something!I think this sort of thing is really by design – once you have created a snippet of a certain type, I can't really see a use case for switching to a different type, except for of course if you'd made a mistake in the initial creation.
I can appreciate how having this option might be convenient for those minority of cases, but I would not want it to make the process more confusing or prone to breaking existing snippets.
We're currently undergoing a UI/UX refresh so I'll see if this fits nicely into there.
@Mij-Strebor Thanks for the feedback but I think Shea gave a reasonable answer here and after review there is good likelihood this could cause users more problems than fix. However in saying this the new UI refresh which will be released soon should effectively remove this issue.