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

WordPress Trac noreply at wordpress.org
Fri May 12 18:14:56 UTC 2017


#40744: Inline style shortcode for background-image issue
-----------------------------+------------------------------
 Reporter:  markusfroehlich  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Editor           |     Version:  4.7.4
 Severity:  normal           |  Resolution:
 Keywords:  close            |     Focuses:
-----------------------------+------------------------------
Changes (by azaozz):

 * keywords:   => close


Comment:

 Mixing shortcodes and HTML tags is a really bad practice. It's slow, hard
 to process, and prone to errors and numerous edge cases.

 This particular case isn't working because of a security restriction. The
 fix is to not use shortcode inside HTML attribute. If it has to be a
 shortcode, how about `[my-background-image-shortcode-thing id="1"]`
 instead of the <div>?

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


More information about the wp-trac mailing list