Make WordPress Core


Ignore:
Timestamp:
10/21/2015 08:37:54 PM (11 years ago)
Author:
azaozz
Message:

TinyMCE:

  • Sanitize and render HTML in captions when showing a gallery preview (wpView).
  • Encode/escape HTML entered in the text field in the wpLink dialog.

Props iseulde, kraftbj, jnylen0, shawarkhan.
Fixes #32616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r34049 r35341  
    12171217                        <# if ( attachment.caption ) { #>
    12181218                            <dd class="wp-caption-text gallery-caption">
    1219                                 {{ attachment.caption }}
     1219                                {{{ data.verifyHTML( attachment.caption ) }}}
    12201220                            </dd>
    12211221                        <# } #>
Note: See TracChangeset for help on using the changeset viewer.