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>
|
<span><span class="dice">⚄</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">⚄</span>
|
<span><span class="dice">⚄</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>
|
||||||
|
@ -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
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user