Skip to content

Saving an empty snippet does not show a warning on Pro #197

Closed
@sheabunge

Description

@sheabunge

Current behavior

When saving a snippet using the small 'Save Changes' button above the code editor, if the snippet us missing its name or its code, a dialog box should appear for confirmation.

Expected behavior

The dialog box works correctly in Core, but not Pro.

Steps to reproduce

  1. Snippets > Add New
  2. leave fields unchanged
  3. click the small 'Save Changes' button above the code editor.
  4. see how snippet saves without triggering dialog box.

WordPress version

Version 6.7.1

Code Snippets version

3.6.6.1

Code Snippets license

Pro

Anything else?

Originally raised by Generosus here: https://wordpress.org/support/topic/two-findings-v3-6-6-1/

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions