From a9b3e85dd385536f1ed6756c11db8ce4d38897c6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 10 Nov 2019 01:41:43 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@46691 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 5 +++-- src/wp-includes/class-wp-customize-setting.php | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index d7d0835271..17a6fa5767 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/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/src/wp-includes/class-wp-customize-setting.php b/src/wp-includes/class-wp-customize-setting.php index 08d5b1c348..6bd00f7537 100644 --- a/src/wp-includes/class-wp-customize-setting.php +++ b/src/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 */