[wp-trac] [WordPress Trac] #30461: WP 4.0.1 stock contact form bug: parsing problems?

WordPress Trac noreply at wordpress.org
Sun Nov 23 06:20:57 UTC 2014


#30461: WP 4.0.1 stock contact form bug:  parsing problems?
--------------------------+-----------------------------
 Reporter:  grayson.king  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.0.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The stock contact form (not a plugin) is misbehaving in 4.0.1 where it
 behaved fine in earlier versions.  Specifically, it seems to have trouble
 with parsing of the shortcode.  The contact form builder generates
 shortcode with ''single quotes'' (') surrounding each label.  But at some
 stage these seem to get translated into ''right single quotes'' (’), which
 appears to screw up WP's parser.

 For example if I wanted a field named "How did you first hear about us?",
 the shortcode would look something like this:

 {{{
 [contact-form subject='Test1'][contact-field label='How did you first hear
 about us?' type='text'/][/contact-form]
 }}}

 All looks good.  But somehow the ''single quotes'' (HTML ') get
 translated to ''right single quotes'' (HTML ’) somewhere along the
 way.  Which causes major problems for the parser.

 The displayed heading for the field in the example above should be:
 '''How did you first hear about us?'''

 But instead it shows:
 '''’How'''

 This is a problem for anyone using the stock contact form in WordPress!
 Can someone please fix it?

 For an example of a page that's not displaying properly (at least for now,
 until I find a work-around to this bug), please check out the following:

 http://poleclinometer.com/contact/

 The final field in this form should read:
 '''How did you hear about PoleClinometer?'''

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


More information about the wp-trac mailing list