Revisions: use escaped templating for some of the tags.

Fixes #24775.

git-svn-id: https://develop.svn.wordpress.org/trunk@24729 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2013-07-18 14:01:58 +00:00
parent a1a78a7a6f
commit ef63a55d8f

View File

@ -133,9 +133,9 @@ require_once( './admin-header.php' );
<script id="tmpl-revisions-tooltip" type="text/html"> <script id="tmpl-revisions-tooltip" type="text/html">
<div class="revisions-tooltip-content"> <div class="revisions-tooltip-content">
<# if ( 'undefined' !== typeof data && 'undefined' !== typeof data.author ) { #> <# if ( 'undefined' !== typeof data && 'undefined' !== typeof data.author ) { #>
{{{ data.author.avatar }}} {{{ data.author.name }}}, {{{ data.author.avatar }}} {{ data.author.name }},
{{{ data.timeAgo }}} {{ data.timeAgo }}
({{{ data.dateShort }}}) ({{ data.dateShort }})
<# } #> <# } #>
</div> </div>
<div class="revisions-tooltip-arrow"></div> <div class="revisions-tooltip-arrow"></div>
@ -162,9 +162,9 @@ require_once( './admin-header.php' );
<div id="diff-title-from" class="diff-title"> <div id="diff-title-from" class="diff-title">
<strong><?php _ex( 'From:', 'Followed by post revision info' ); ?></strong> <strong><?php _ex( 'From:', 'Followed by post revision info' ); ?></strong>
<# if ( 'undefined' !== typeof data.from ) { #> <# if ( 'undefined' !== typeof data.from ) { #>
{{{ data.from.attributes.author.avatar }}} {{{ data.from.attributes.author.name }}}, {{{ data.from.attributes.author.avatar }}} {{ data.from.attributes.author.name }},
{{{ data.from.attributes.timeAgo }}} {{ data.from.attributes.timeAgo }}
({{{ data.from.attributes.dateShort }}}) ({{ data.from.attributes.dateShort }})
<# } #> <# } #>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -174,9 +174,9 @@ require_once( './admin-header.php' );
<div id="diff-title-to" class="diff-title"> <div id="diff-title-to" class="diff-title">
<strong><?php _ex( 'To:', 'Followed by post revision info' ); ?></strong> <strong><?php _ex( 'To:', 'Followed by post revision info' ); ?></strong>
<# if ( 'undefined' !== typeof data.to ) { #> <# if ( 'undefined' !== typeof data.to ) { #>
{{{ data.to.attributes.author.avatar }}} {{{ data.to.attributes.author.name }}}, {{{ data.to.attributes.author.avatar }}} {{ data.to.attributes.author.name }},
{{{ data.to.attributes.timeAgo }}} {{ data.to.attributes.timeAgo }}
({{{ data.to.attributes.dateShort }}}) ({{ data.to.attributes.dateShort }})
<# } #> <# } #>
</div> </div>
@ -189,7 +189,7 @@ require_once( './admin-header.php' );
<div class="loading-indicator"></div> <div class="loading-indicator"></div>
<div class="diff"> <div class="diff">
<# _.each( data.fields, function( field ) { #> <# _.each( data.fields, function( field ) { #>
<h3>{{{ field.name }}}</h3> <h3>{{ field.name }}</h3>
{{{ field.diff }}} {{{ field.diff }}}
<# }); #> <# }); #>
</div> </div>