Make WordPress Core


Ignore:
Timestamp:
09/25/2015 07:35:48 PM (9 years ago)
Author:
westonruter
Message:

Customizer: Flesh out phpdoc description for _wp_customize_include().

Also add brackets around single-statement inline if statement.

Fixes #33488.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r34028 r34554  
    18981898 * Includes and instantiates the WP_Customize_Manager class.
    18991899 *
    1900  * Fires on a preview frame request (when ?wp_customize=on is in the URL) and
    1901  * on the Customizer interface page (wp-admin/customize.php).
     1900 * Loads the Customizer at plugins_loaded when accessing the customize.php admin
     1901 * page or when any request includes a wp_customize=on param, either as a GET
     1902 * query var or as POST data. This param is a signal for whether to bootstrap
     1903 * the Customizer when WordPress is loading, especially in the Customizer preview
     1904 * or when making Customizer Ajax requests for widgets or menus.
    19021905 *
    19031906 * @since 3.4.0
     
    19081911    if ( ! ( ( isset( $_REQUEST['wp_customize'] ) && 'on' == $_REQUEST['wp_customize'] )
    19091912        || ( is_admin() && 'customize.php' == basename( $_SERVER['PHP_SELF'] ) )
    1910     ) )
     1913    ) ) {
    19111914        return;
     1915    }
    19121916
    19131917    require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
Note: See TracChangeset for help on using the changeset viewer.