diff --git a/src/wp-includes/class-walker-nav-menu.php b/src/wp-includes/class-walker-nav-menu.php
index 5f4a53691c..519e690d56 100644
a
|
b
|
class Walker_Nav_Menu extends Walker { |
170 | 170 | $output .= $indent . '<li' . $id . $class_names . '>'; |
171 | 171 | |
172 | 172 | $atts = array(); |
173 | | $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; |
| 173 | $atts['title'] = ''; |
174 | 174 | $atts['target'] = ! empty( $item->target ) ? $item->target : ''; |
175 | 175 | if ( '_blank' === $item->target && empty( $item->xfn ) ) { |
176 | 176 | $atts['rel'] = 'noopener noreferrer'; |
… |
… |
class Walker_Nav_Menu extends Walker { |
185 | 185 | * |
186 | 186 | * @since 3.6.0 |
187 | 187 | * @since 4.1.0 The `$depth` parameter was added. |
| 188 | * @since 5.6.0 The `title` attribute is not printed anymore. |
188 | 189 | * |
189 | 190 | * @param array $atts { |
190 | 191 | * The HTML attributes applied to the menu item's `<a>` element, empty strings are ignored. |
191 | 192 | * |
192 | | * @type string $title Title attribute. |
193 | 193 | * @type string $target Target attribute. |
194 | 194 | * @type string $rel The rel attribute. |
195 | 195 | * @type string $href The href attribute. |
… |
… |
class Walker_Nav_Menu extends Walker { |
209 | 209 | } |
210 | 210 | } |
211 | 211 | |
212 | | /** This filter is documented in wp-includes/post-template.php */ |
213 | | $title = apply_filters( 'the_title', $item->title, $item->ID ); |
| 212 | // The title attribute is not used anymore. |
| 213 | $title = ''; |
214 | 214 | |
215 | 215 | /** |
216 | 216 | * Filters a menu item's title. |
217 | 217 | * |
218 | 218 | * @since 4.4.0 |
| 219 | * @since 5.6.0 The `title` attribute was removed. |
219 | 220 | * |
220 | | * @param string $title The menu item's title. |
| 221 | * @param string $title The menu item's title. Not displayed anymore. |
221 | 222 | * @param WP_Post $item The current menu item. |
222 | 223 | * @param stdClass $args An object of wp_nav_menu() arguments. |
223 | 224 | * @param int $depth Depth of menu item. Used for padding. |
… |
… |
class Walker_Nav_Menu extends Walker { |
226 | 227 | |
227 | 228 | $item_output = $args->before; |
228 | 229 | $item_output .= '<a' . $attributes . '>'; |
229 | | $item_output .= $args->link_before . $title . $args->link_after; |
| 230 | $item_output .= $args->link_before . $args->link_after; |
230 | 231 | $item_output .= '</a>'; |
231 | 232 | $item_output .= $args->after; |
232 | 233 | |