From 6a8889ea8c6ff04cf577d874f14019f084878dc1 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Mon, 14 Apr 2014 18:40:29 +0000 Subject: [PATCH] Inline documentation for hooks in wp-includes/class-wp-customize-widgets.php Fixes #27531. git-svn-id: https://develop.svn.wordpress.org/trunk@28117 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-widgets.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/wp-includes/class-wp-customize-widgets.php b/src/wp-includes/class-wp-customize-widgets.php index 72ff397e99..5416590b9a 100644 --- a/src/wp-includes/class-wp-customize-widgets.php +++ b/src/wp-includes/class-wp-customize-widgets.php @@ -379,6 +379,16 @@ final class WP_Customize_Widgets { 'description' => $GLOBALS['wp_registered_sidebars'][$sidebar_id]['description'], 'priority' => 1000 + array_search( $sidebar_id, array_keys( $wp_registered_sidebars ) ), ); + + /** + * Filter Customizer widget section arguments for a given sidebar. + * + * @since 3.9.0 + * + * @param array $section_args Array of Customizer widget section arguments. + * @param string $section_id Customizer section ID. + * @param int|string $sidebar_id Sidebar ID. + */ $section_args = apply_filters( 'customizer_widgets_section_args', $section_args, $section_id, $sidebar_id ); $this->manager->add_section( $section_id, $section_args ); @@ -1401,6 +1411,8 @@ final class WP_Customize_Widgets { if ( isset( $this->_captured_options[$option_name] ) ) { $value = $this->_captured_options[$option_name]; + + /** This filter is documented in wp-includes/option.php */ $value = apply_filters( 'option_' . $option_name, $value ); }