[wp-trac] [WordPress Trac] #23307: shortcode_parse_atts may return empty string

WordPress Trac noreply at wordpress.org
Sun Nov 9 11:28:44 UTC 2014


#23307: shortcode_parse_atts may return empty string
-----------------------------------+-----------------------------
 Reporter:  GaryJ                  |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Shortcodes             |     Version:
 Severity:  minor                  |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+-----------------------------

Comment (by GaryJ):

 Saying that, we have one or two other `else` / `default:` instances in
 core that are commented as "We should never hit this, but ...", so for the
 sake of one line, I think the `else` should probably be kept in (and
 suitably commented), in case there's some odd character with odd encoding
 that doesn't get removed in a default `trim()` but fails `\S`.

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


More information about the wp-trac mailing list