Changeset 49177
- Timestamp:
- 10/16/2020 06:30:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-tag-cloud.php
r47593 r49177 91 91 } 92 92 93 $format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml'; 94 95 /** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */ 96 $format = apply_filters( 'navigation_widgets_format', $format ); 97 98 if ( 'html5' === $format ) { 99 // The title may be filtered: Strip out HTML and make sure the aria-label is never empty. 100 $title = trim( strip_tags( $title ) ); 101 $aria_label = $title ? $title : $default_title; 102 echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">'; 103 } 104 93 105 echo '<div class="tagcloud">'; 94 106 … … 96 108 97 109 echo "</div>\n"; 110 111 if ( 'html5' === $format ) { 112 echo '</nav>'; 113 } 114 98 115 echo $args['after_widget']; 99 116 }
Note: See TracChangeset
for help on using the changeset viewer.