WordPress / WordPress/pattern-directory
Removing a Quote from Paragraph Does Not Enable Save Draft Option
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 134
- Forks
- 46
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 19
Description
Describe the bug
After adding a paragraph and selecting a quote from it, the "Save Draft" option is enabled as expected. However, if the quote is subsequently removed from the paragraph, the "Save Draft" option does not get enabled again. This behavior suggests that the system does not recognize the removal of a quote as a change that warrants a draft save, potentially leading to loss of progress or confusion.
To generate this bug you need to click save draft after adding it to the paragraph.
To Reproduce
Steps to reproduce the behavior:
- Start editing or creating a new block.
- Add a paragraph of text.
- Select a portion of the text as a quote, triggering the "Save Draft" option to become active/enabled.
- Save the draft with the quote included.
- Edit the page again and remove the quote from the paragraph.
- Observe the behaviour of the "Save Draft" option. it will be not enabled again
Expected behavior
It should enable the save draft option while removing the quote from the paragraph.
Screenshots
Not needed.
Desktop (please complete the following information):
- OS: MAC
- Browser Chrome
- Version 122.0.6261.94
Smartphone (please complete the following information):
NA
Additional context
Please create the quote paragraph first and save as draft after this only remove the quote you will find the issue.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is identified in the report. Reproduce the saved-quote scenario in the block editor, then trace the code that controls the Save Draft option when a quote is removed. Done means removing the quote enables Save Draft again and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100