Customizer header images: Fix randomizing headers.

props mcsf.
see #21785.


git-svn-id: https://develop.svn.wordpress.org/trunk@27688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-03-24 19:15:32 +00:00
parent d9ab8333c8
commit afde656058
2 changed files with 3 additions and 4 deletions

View File

@ -889,7 +889,7 @@ final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control
<span><span class="dice">&#9860;</span> <span><span class="dice">&#9860;</span>
<# if ( data.type === 'uploaded' ) { #> <# if ( data.type === 'uploaded' ) { #>
<?php _e( 'Randomize uploaded headers' ); ?> <?php _e( 'Randomize uploaded headers' ); ?>
<# } else if ( data.type === 'suggested' ) { #> <# } else if ( data.type === 'default' ) { #>
<?php _e( 'Randomize suggested headers' ); ?> <?php _e( 'Randomize suggested headers' ); ?>
<# } #> <# } #>
</span> </span>
@ -920,7 +920,7 @@ final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control
<span><span class="dice">&#9860;</span> <span><span class="dice">&#9860;</span>
<# if ( data.type === 'uploaded' ) { #> <# if ( data.type === 'uploaded' ) { #>
<?php _e( 'Randomizing uploaded headers' ); ?> <?php _e( 'Randomizing uploaded headers' ); ?>
<# } else if ( data.type === 'suggested' ) { #> <# } else if ( data.type === 'default' ) { #>
<?php _e( 'Randomizing suggested headers' ); ?> <?php _e( 'Randomizing suggested headers' ); ?>
<# } #> <# } #>
</span> </span>

View File

@ -136,8 +136,7 @@
extendedModel: function() { extendedModel: function() {
var c = this.model.get('collection'); var c = this.model.get('collection');
return _.extend(this.model.toJSON(), { return _.extend(this.model.toJSON(), {
// -1 to exclude the randomize button type: c.type,
nImages: c.size() - 1
}); });
}, },