[wp-trac] [WordPress Trac] #40744: Inline style shortcode for background-image issue

WordPress Trac noreply at wordpress.org
Fri May 12 10:12:05 UTC 2017


#40744: Inline style shortcode for background-image issue
-----------------------------+-----------------------------
 Reporter:  markusfroehlich  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  4.7.4
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Shortcodes in astyle attribute for example:
 {{{
 <div style="background-image: url("[my-shortcode id="1"]");"></div>
 }}}
 are not working, because in the function "safecss_filter_attr()"
 (w-includes/kses.php) (Line: 1688), the regex filters the "(" and return
 an empty string.

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


More information about the wp-trac mailing list