[wp-trac] [WordPress Trac] #36775: Shortcode stripping on frontend

WordPress Trac noreply at wordpress.org
Fri May 6 12:27:41 UTC 2016


#36775: Shortcode stripping on frontend
--------------------------+-----------------------------
 Reporter:  pixel8383     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  4.5.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 WordPress, since 3.6, introduced the
 [https://codex.wordpress.org/Audio_Shortcode audio tag]. It should be used
 like it:
 {{{
 [audio src="file.mp3"]
 }}}
 My old & wrong code used into my blog was formatted like the following.
 {{{
 [audio:file.mp3]
 }}}
 This was generating an issue on Jetpack (which I consider
 [https://wordpress.org/support/topic/stats-module-of-jetpack-causing-core-
 dump-file/ solved] now).
 Analyizing the issue we discovered that Wordpress is stripping out from
 front end this bad formatted shortcode.

 I then tried to use this non-existent shortcode:
 {{{
 [unuseful:file.mp3]
 }}}
 And the existent video one (badly implemented):
 {{{
 [video:file.mp3]
 }}}

 Both are rendered as plain text on the front end. So, only the bad
 formatted audio tag is being stripped.

 The funny thing is that I can't actually type sentences like ''[audio is
 very loud]'' because are being stripped off.

 I am not sure which one should be the default Wordpress behavior. For sure
 it's strange that's acting differently on audio/video or non-existing
 shortcodes.

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


More information about the wp-trac mailing list