Revisions: use escaped templating for some of the tags.

Fixes #24775.

git-svn-id: http://core.svn.wordpress.org/trunk@24729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2013-07-18 14:01:58 +00:00
parent c185de5a28
commit 32522054c8
1 changed files with 10 additions and 10 deletions

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>