From b0ddfb2435b89affa895455b40dd8b9c651ec196 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 10 Nov 2019 01:43:02 +0000 Subject: [PATCH] Docs: Move the `@link` tag for Customize API in `WP_Customize_Manager::add_setting()` and `WP_Customize_Setting` to a more appropriate place. See #48303. Built from https://develop.svn.wordpress.org/trunk@46691 git-svn-id: http://core.svn.wordpress.org/trunk@46491 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-manager.php | 5 +++-- wp-includes/class-wp-customize-setting.php | 3 +-- wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index d7d0835271..17a6fa5767 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -3674,6 +3674,8 @@ final class WP_Customize_Manager { * @since 3.4.0 * @since 4.5.0 Return added WP_Customize_Setting instance. * + * @link https://developer.wordpress.org/themes/customize-api + * * @param WP_Customize_Setting|string $id Customize Setting object, or ID. * @param array $args { * Optional. Array of properties for the new WP_Customize_Setting. Default empty array. @@ -3685,8 +3687,7 @@ final class WP_Customize_Manager { * @type string $transport Options for rendering the live preview of changes in Customizer. * Using 'refresh' makes the change visible by reloading the whole preview. * Using 'postMessage' allows a custom JavaScript to handle live changes. - * @link https://developer.wordpress.org/themes/customize-api - * Default is 'refresh' + * Default is 'refresh'. * @type callable $validate_callback Server-side validation callback for the setting's value. * @type callable $sanitize_callback Callback to filter a Customize setting value in un-slashed form. * @type callable $sanitize_js_callback Callback to convert a Customize PHP setting value to a value that is diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php index 08d5b1c348..6bd00f7537 100644 --- a/wp-includes/class-wp-customize-setting.php +++ b/wp-includes/class-wp-customize-setting.php @@ -13,6 +13,7 @@ * Handles saving and sanitizing of settings. * * @since 3.4.0 + * @link https://developer.wordpress.org/themes/customize-api * * @see WP_Customize_Manager */ @@ -71,8 +72,6 @@ class WP_Customize_Setting { * Set this value to 'postMessage' to enable a custom JavaScript handler to render changes to this setting * as opposed to reloading the whole page. * - * @link https://developer.wordpress.org/themes/customize-api - * * @since 3.4.0 * @var string */ diff --git a/wp-includes/version.php b/wp-includes/version.php index d40397ab3e..3f5940fb3d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46690'; +$wp_version = '5.4-alpha-46691'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.