Make WordPress Core


Ignore:
Timestamp:
03/04/2014 08:20:28 PM (12 years ago)
Author:
nacin
Message:

Update the Customizer API inline docs.

props ericlewis.
fixes #27065.

File:
1 edited

Legend:

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

    r26085 r27398  
    11<?php
    22/**
    3  * Customize Controls
     3 * Theme Customize Screen.
    44 *
    55 * @package WordPress
     
    1010define( 'IFRAME_REQUEST', true );
    1111
     12/** Load WordPress Administration Bootstrap */
    1213require_once( dirname( __FILE__ ) . '/admin.php' );
     14
    1315if ( ! current_user_can( 'edit_theme_options' ) )
    1416    wp_die( __( 'Cheatin&#8217; uh?' ) );
     
    200202    ), wp_login_url() );
    201203
     204    // Prepare customizer settings to pass to Javascript.
    202205    $settings = array(
    203206        'theme'    => array(
     
    228231    );
    229232
     233    // Prepare Customize Setting objects to pass to Javascript.
    230234    foreach ( $wp_customize->settings() as $id => $setting ) {
    231235        $settings['settings'][ $id ] = array(
     
    235239    }
    236240
     241    // Prepare Customize Control objects to pass to Javascript.
    237242    foreach ( $wp_customize->controls() as $id => $control ) {
    238243        $control->to_json();
Note: See TracChangeset for help on using the changeset viewer.