[wp-trac] [WordPress Trac] #33881: Tags auto-suggest: double trailing space after tags separator

WordPress Trac noreply at wordpress.org
Tue Sep 15 15:19:05 UTC 2015


#33881: Tags auto-suggest: double trailing space after tags separator
----------------------------+-----------------------------
 Reporter:  afercia         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.3
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 To reproduce, let's first check where it works correctly:

 - go in the Posts screen and Quick Edit a post
 - in the Tags textarea, type something to make the suggestions "tooltip"
 appear
 - click on a suggestion
 - the new Tag is inserted in the textarea followed by the default tag
 separator (comma) and just one space

 Do the same thing in:
 - Edit a post > the Tags postbox
 - in Press This, in the Tags sidebar
 here, the new tag is followed by a comma and two spaces.

 Looks like `suggest.js` already takes care to add a trailing space, thus
 the [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/js/tags-
 box.js?rev=31895#L180 trailing space in tags-box.js at line 180] maybe
 should be removed. Unless I'm missing something :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33881>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list