Make WordPress Core

Changeset 26523


Ignore:
Timestamp:
12/02/2013 07:33:57 AM (11 years ago)
Author:
dd32
Message:

Themes: Standardise on dot notation for object access in the Templates. See #25948

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r26522 r26523  
    228228    <# if ( data.active ) { #>
    229229        <span class="current-label"><?php _e( 'Current Theme' ); ?></span>
    230         <# if ( data.actions['customize'] ) { #>
    231             <a class="button button-primary hide-if-no-customize" href="{{ data.actions['customize'] }}"><?php _e( 'Customize' ); ?></a>
     230        <# if ( data.actions.customize ) { #>
     231            <a class="button button-primary hide-if-no-customize" href="{{ data.actions.customize }}"><?php _e( 'Customize' ); ?></a>
    232232        <# } #>
    233233    <# } else { #>
    234         <a class="button button-primary activate" href="{{{ data.actions['activate'] }}}"><?php _e( 'Activate' ); ?></a>
    235         <a class="button button-secondary preview" href="{{{ data.actions['customize'] }}}"><?php _e( 'Live Preview' ); ?></a>
     234        <a class="button button-primary activate" href="{{{ data.actions.activate }}}"><?php _e( 'Activate' ); ?></a>
     235        <a class="button button-secondary preview" href="{{{ data.actions.customize }}}"><?php _e( 'Live Preview' ); ?></a>
    236236    <# } #>
    237237
     
    299299                <a class="button button-secondary" href="<?php echo admin_url( 'nav-menus.php' ); ?>"><?php _e( 'Menus' ); ?></a>
    300300                <?php } ?>
    301                 <?php if( current_theme_supports( 'widgets' ) ) { ?>
     301                <?php if ( current_theme_supports( 'widgets' ) ) { ?>
    302302                <a class="button button-secondary" href="<?php echo admin_url( 'widgets.php' ); ?>"><?php _e( 'Widgets' ); ?></a>
    303303                <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.