Make WordPress Core


Ignore:
Timestamp:
04/07/2014 09:03:18 AM (11 years ago)
Author:
ocean90
Message:

Widget Customizer: Move WidgetCustomizer to wp.customize.Widgets. First pass.

see #27690.

File:
1 edited

Legend:

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

    r27971 r27985  
    918918        ?>
    919919        <span class="button-secondary add-new-widget" tabindex="0">
    920             <?php esc_html_e( 'Add a Widget' ); ?>
     920            <?php _e( 'Add a Widget' ); ?>
    921921        </span>
    922922
    923923        <span class="reorder-toggle" tabindex="0">
    924             <span class="reorder"><?php esc_html_e( 'Reorder' ); ?></span>
    925             <span class="reorder-done"><?php esc_html_e( 'Done' ); ?></span>
     924            <span class="reorder"><?php _ex( 'Reorder', 'Reorder widgets in Customizer' ); ?></span>
     925            <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering widgets in Customizer' ); ?></span>
    926926        </span>
    927927        <?php
     
    941941    public $height;
    942942    public $is_wide = false;
    943     public $is_live_previewable = false;
    944943
    945944    public function to_json() {
    946945        parent::to_json();
    947         $exported_properties = array( 'widget_id', 'widget_id_base', 'sidebar_id', 'width', 'height', 'is_wide', 'is_live_previewable' );
     946        $exported_properties = array( 'widget_id', 'widget_id_base', 'sidebar_id', 'width', 'height', 'is_wide' );
    948947        foreach ( $exported_properties as $key ) {
    949948            $this->json[ $key ] = $this->$key;
Note: See TracChangeset for help on using the changeset viewer.