From 20cc53b9299a68a8d53429d63cf66918a868e115 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 22 Aug 2015 17:24:25 +0000 Subject: [PATCH] Add some JS Docs for Customizer. Props ericlewis. See #33503. Built from https://develop.svn.wordpress.org/trunk@33709 git-svn-id: http://core.svn.wordpress.org/trunk@33676 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/customize-loader.js | 4 ++++ wp-includes/js/customize-preview.js | 6 ++++-- wp-includes/version.php | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/wp-includes/js/customize-loader.js b/wp-includes/js/customize-loader.js index ce69a359c6..5bc34c4367 100644 --- a/wp-includes/js/customize-loader.js +++ b/wp-includes/js/customize-loader.js @@ -1,4 +1,8 @@ /* global _wpCustomizeLoaderSettings, confirm */ +/* + * Expose a public API that allows the customizer to be + * loaded on any page. + */ window.wp = window.wp || {}; (function( exports, $ ){ diff --git a/wp-includes/js/customize-preview.js b/wp-includes/js/customize-preview.js index e58c8d6d44..7cea7d3738 100644 --- a/wp-includes/js/customize-preview.js +++ b/wp-includes/js/customize-preview.js @@ -1,3 +1,6 @@ +/* + * Script run inside a Customizer preview frame. + */ (function( exports, $ ){ var api = wp.customize, debounce; @@ -30,8 +33,7 @@ */ api.Preview = api.Messenger.extend({ /** - * Requires params: - * - url - the URL of preview frame + * @param {string} url The URL of preview frame */ initialize: function( params, options ) { var self = this; diff --git a/wp-includes/version.php b/wp-includes/version.php index 003613a416..4d6148a994 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33708'; +$wp_version = '4.4-alpha-33709'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.