[wp-trac] [WordPress Trac] #50499: Slug field should not autocorrect in Quick Edit view

WordPress Trac noreply at wordpress.org
Tue Nov 9 23:44:03 UTC 2021


#50499: Slug field should not autocorrect in Quick Edit view
----------------------------------------+---------------------
 Reporter:  swb1192                     |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  5.9
Component:  Quick/Bulk Edit             |     Version:  5.5
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch has-testing-info  |     Focuses:
----------------------------------------+---------------------
Changes (by costdev):

 * keywords:  has-patch needs-testing has-testing-info => has-patch has-
     testing-info


Comment:

 == Test Report

 === TL;DR

 Patch is successful. Ready for `commit`.

 === Env
 * WordPress 5.9-alpha-20211109.232952
 * Chrome 95.0.4638.69
 * Windows 10
 * Theme: Twenty Twenty One
 * Gutenberg Editor
 * Plugins: None

 === Steps to test
 1. Navigate to **Posts**.
 2. Hover over a post and click Quick Edit.
 3. Right-click on the slug field and click **Inspect (Element)**.
 4. The selected line should read:
     <input type="text" name="post_name" value>

 5. Apply the patch.
 6. Repeat steps 1-3.
 7. The selected line should now read:
     <input type="text" name="post_name" value autocomplete="off"
 spellcheck="false">

 === Additional testing

 1. Navigate to **Posts**.
 2. Hover over a post and click **Quick Edit**.
 3. Enter a new slug, spelled incorrectly.
 4. Click **Update**.
 5. Refresh.
 6. Hover over the same post and click **Quick Edit**.
 7. Empty its slug field.
 8. Type the first character of the slug you set in (3).

 Before the patch, it should predict that you want the previous slug you
 typed.

 9. Apply the patch.
 10. Repeat steps 1-7.

 After the patch, it shouldn't predict anything.

 === Results
 - Patch:
 https://core.trac.wordpress.org/attachment/ticket/50499/50499.diff
 50499.diff]
 - Before patch: The slug field does not have `autocomplete` set to `off`
 and `spellcheck` set to `false`. It autocompletes and autocorrects in
 browsers that support these features.
 - After patch: The slug field has `autocomplete` set to `off` and
 spellcheck set to `false`. It does not autocomplete or autocorrect in
 browsers that support these features.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50499#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list