WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/03/2019 10:12:32 PM (13 months ago)
Author:
whyisjake
Message:

Toolbar: Use add_node() instead of add_menu() in core.

This patch replaces all references to the add_menu() method with the add_node() one. (Also some code structure modifications for wp_admin_bar_appearance_menu().)

Fixes: #19647
Props: linuxologos, paulschreiber, morganestes, akibjorklund, nacin, whyisjake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/latest-comments.php

    r46607 r46642  
    4242 */
    4343function render_block_core_latest_comments( $attributes = array() ) {
     44    // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
    4445    $comments = get_comments(
    45         /** This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php */
    4646        apply_filters(
    4747            'widget_comments_args',
Note: See TracChangeset for help on using the changeset viewer.