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:
parent
d9ab8333c8
commit
afde656058
@ -889,7 +889,7 @@ final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control
|
||||
<span><span class="dice">⚄</span>
|
||||
<# if ( data.type === 'uploaded' ) { #>
|
||||
<?php _e( 'Randomize uploaded headers' ); ?>
|
||||
<# } else if ( data.type === 'suggested' ) { #>
|
||||
<# } else if ( data.type === 'default' ) { #>
|
||||
<?php _e( 'Randomize suggested headers' ); ?>
|
||||
<# } #>
|
||||
</span>
|
||||
@ -920,7 +920,7 @@ final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control
|
||||
<span><span class="dice">⚄</span>
|
||||
<# if ( data.type === 'uploaded' ) { #>
|
||||
<?php _e( 'Randomizing uploaded headers' ); ?>
|
||||
<# } else if ( data.type === 'suggested' ) { #>
|
||||
<# } else if ( data.type === 'default' ) { #>
|
||||
<?php _e( 'Randomizing suggested headers' ); ?>
|
||||
<# } #>
|
||||
</span>
|
||||
|
@ -136,8 +136,7 @@
|
||||
extendedModel: function() {
|
||||
var c = this.model.get('collection');
|
||||
return _.extend(this.model.toJSON(), {
|
||||
// -1 to exclude the randomize button
|
||||
nImages: c.size() - 1
|
||||
type: c.type,
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user