Title: Bug | Erratic Button Behavior
Last modified: March 14, 2024

---

# Bug | Erratic Button Behavior

 *  Resolved [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/bug-erradic-button-behavior/)
 * Good Day,
 * When we try to create a code snippet without a title, we discovered [the buttons noted here](https://prnt.sc/OsuYXX0GRhHj)
   do not behave properly. We would like to recommend updating the code for the 
   affected buttons to ensure their behavior is correct when attempting to save 
   or activate a code snippet without a title.
 * Fix appreciated. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/bug-erradic-button-behavior/#post-17502445)
 * Hi [@generosus](https://wordpress.org/support/users/generosus/),
 * Just to clarify what the issue here is:
 * When you click on the bottom buttons and the snippet has no title, you receive
   the warning message, as expected. However, when you click on the top buttons 
   and the snippet has no title, no message is shown and the snippet saves.
 * Is this correct?
 *  Thread Starter [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/bug-erradic-button-behavior/#post-17503435)
 * Hi Shea,
 * Again, thanks for the prompt reply.
 * Yes, that is correct. How are those top buttons supposed to behave when there
   is no title? Would you like us to send you a screencast?
 * Cheers.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/bug-erradic-button-behavior/#post-17503458)
 * No, it sounds like they’re behaving as expected. It never really occurred that
   those top buttons would need a similar warning dialog, but we can definitely 
   add it in if you feel it’d be beneficial.
 *  Thread Starter [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/bug-erradic-button-behavior/#post-17503512)
 * Awesome! Yes, it would be great if you can update the behavior of the top buttons
   to match the respective bottom ones. Consistency is key 🙂
 * Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Bug | Erratic Button Behavior’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)

 * 4 replies
 * 2 participants
 * Last reply from: [generosus](https://wordpress.org/support/users/generosus/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/bug-erradic-button-behavior/#post-17503512)
 * Status: resolved