WordPress.org

Make WordPress Core

Changeset 27688


Ignore:
Timestamp:
03/24/2014 07:15:32 PM (6 years ago)
Author:
nacin
Message:

Customizer header images: Fix randomizing headers.

props mcsf.
see #21785.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r27620 r27688  
    890890                    <# if ( data.type === 'uploaded' ) { #>
    891891                        <?php _e( 'Randomize uploaded headers' ); ?>
    892                     <# } else if ( data.type === 'suggested' ) { #>
     892                    <# } else if ( data.type === 'default' ) { #>
    893893                        <?php _e( 'Randomize suggested headers' ); ?>
    894894                    <# } #>
     
    921921                    <# if ( data.type === 'uploaded' ) { #>
    922922                        <?php _e( 'Randomizing uploaded headers' ); ?>
    923                     <# } else if ( data.type === 'suggested' ) { #>
     923                    <# } else if ( data.type === 'default' ) { #>
    924924                        <?php _e( 'Randomizing suggested headers' ); ?>
    925925                    <# } #>
  • trunk/src/wp-includes/js/customize-views.js

    r27643 r27688  
    137137            var c = this.model.get('collection');
    138138            return _.extend(this.model.toJSON(), {
    139                 // -1 to exclude the randomize button
    140                 nImages: c.size() - 1
     139                type: c.type,
    141140            });
    142141        },
Note: See TracChangeset for help on using the changeset viewer.