From 233dc322bf7a37dc0fe583ef0879a2716d695d1f Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 7 Jul 2020 17:04:05 +0000 Subject: [PATCH] Docs: Reference the documentation of the new `navigation_widgets_format` filter instead of repeating it. Follow-up to [48349]. Props johnbillion. Fixes #48170. git-svn-id: https://develop.svn.wordpress.org/trunk@48388 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets/class-wp-widget-archives.php | 9 +-------- src/wp-includes/widgets/class-wp-widget-categories.php | 9 +-------- src/wp-includes/widgets/class-wp-widget-meta.php | 9 +-------- src/wp-includes/widgets/class-wp-widget-pages.php | 9 +-------- .../widgets/class-wp-widget-recent-comments.php | 9 +-------- src/wp-includes/widgets/class-wp-widget-recent-posts.php | 9 +-------- src/wp-includes/widgets/class-wp-widget-rss.php | 9 +-------- 7 files changed, 7 insertions(+), 56 deletions(-) diff --git a/src/wp-includes/widgets/class-wp-widget-archives.php b/src/wp-includes/widgets/class-wp-widget-archives.php index 12af44f2c9..f050d6427b 100644 --- a/src/wp-includes/widgets/class-wp-widget-archives.php +++ b/src/wp-includes/widgets/class-wp-widget-archives.php @@ -125,14 +125,7 @@ class WP_Widget_Archives extends WP_Widget { } else { $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; - /** - * Filters the HTML format of widgets with navigation links. - * - * @since 5.5.0 - * - * @param string $format The type of markup to use in widgets with navigation links. - * Accepts 'html5', 'xhtml'. - */ + /** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */ $format = apply_filters( 'navigation_widgets_format', $format ); if ( 'html5' === $format ) { diff --git a/src/wp-includes/widgets/class-wp-widget-categories.php b/src/wp-includes/widgets/class-wp-widget-categories.php index 5663411143..dee9a040a7 100644 --- a/src/wp-includes/widgets/class-wp-widget-categories.php +++ b/src/wp-includes/widgets/class-wp-widget-categories.php @@ -112,14 +112,7 @@ class WP_Widget_Categories extends WP_Widget { } else { $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; - /** - * Filters the HTML format of widgets with navigation links. - * - * @since 5.5.0 - * - * @param string $format The type of markup to use in widgets with navigation links. - * Accepts 'html5', 'xhtml'. - */ + /** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */ $format = apply_filters( 'navigation_widgets_format', $format ); if ( 'html5' === $format ) { diff --git a/src/wp-includes/widgets/class-wp-widget-meta.php b/src/wp-includes/widgets/class-wp-widget-meta.php index 746072e3af..275cba0ab8 100644 --- a/src/wp-includes/widgets/class-wp-widget-meta.php +++ b/src/wp-includes/widgets/class-wp-widget-meta.php @@ -56,14 +56,7 @@ class WP_Widget_Meta extends WP_Widget { $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; - /** - * Filters the HTML format of widgets with navigation links. - * - * @since 5.5.0 - * - * @param string $format The type of markup to use in widgets with navigation links. - * Accepts 'html5', 'xhtml'. - */ + /** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */ $format = apply_filters( 'navigation_widgets_format', $format ); if ( 'html5' === $format ) { diff --git a/src/wp-includes/widgets/class-wp-widget-pages.php b/src/wp-includes/widgets/class-wp-widget-pages.php index b1bf40c50b..de1d4894f9 100644 --- a/src/wp-includes/widgets/class-wp-widget-pages.php +++ b/src/wp-includes/widgets/class-wp-widget-pages.php @@ -93,14 +93,7 @@ class WP_Widget_Pages extends WP_Widget { $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; - /** - * Filters the HTML format of widgets with navigation links. - * - * @since 5.5.0 - * - * @param string $format The type of markup to use in widgets with navigation links. - * Accepts 'html5', 'xhtml'. - */ + /** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */ $format = apply_filters( 'navigation_widgets_format', $format ); if ( 'html5' === $format ) { diff --git a/src/wp-includes/widgets/class-wp-widget-recent-comments.php b/src/wp-includes/widgets/class-wp-widget-recent-comments.php index 5b6b93fea4..77e4fe8851 100644 --- a/src/wp-includes/widgets/class-wp-widget-recent-comments.php +++ b/src/wp-includes/widgets/class-wp-widget-recent-comments.php @@ -126,14 +126,7 @@ class WP_Widget_Recent_Comments extends WP_Widget { $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; - /** - * Filters the HTML format of widgets with navigation links. - * - * @since 5.5.0 - * - * @param string $format The type of markup to use in widgets with navigation links. - * Accepts 'html5', 'xhtml'. - */ + /** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */ $format = apply_filters( 'navigation_widgets_format', $format ); if ( 'html5' === $format ) { diff --git a/src/wp-includes/widgets/class-wp-widget-recent-posts.php b/src/wp-includes/widgets/class-wp-widget-recent-posts.php index 7b1ff9ee6d..57510a1cee 100644 --- a/src/wp-includes/widgets/class-wp-widget-recent-posts.php +++ b/src/wp-includes/widgets/class-wp-widget-recent-posts.php @@ -95,14 +95,7 @@ class WP_Widget_Recent_Posts extends WP_Widget { $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; - /** - * Filters the HTML format of widgets with navigation links. - * - * @since 5.5.0 - * - * @param string $format The type of markup to use in widgets with navigation links. - * Accepts 'html5', 'xhtml'. - */ + /** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */ $format = apply_filters( 'navigation_widgets_format', $format ); if ( 'html5' === $format ) { diff --git a/src/wp-includes/widgets/class-wp-widget-rss.php b/src/wp-includes/widgets/class-wp-widget-rss.php index 8cd993689c..5d209ef919 100644 --- a/src/wp-includes/widgets/class-wp-widget-rss.php +++ b/src/wp-includes/widgets/class-wp-widget-rss.php @@ -97,14 +97,7 @@ class WP_Widget_RSS extends WP_Widget { $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; - /** - * Filters the HTML format of widgets with navigation links. - * - * @since 5.5.0 - * - * @param string $format The type of markup to use in widgets with navigation links. - * Accepts 'html5', 'xhtml'. - */ + /** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */ $format = apply_filters( 'navigation_widgets_format', $format ); if ( 'html5' === $format ) {