WordPress.org

Make WordPress Core

Ticket #19371: 19371.diff

File 19371.diff, 574 bytes (added by scribu, 7 years ago)
  • wp-includes/class-wp-admin-bar.php

    diff --git wp-includes/class-wp-admin-bar.php wp-includes/class-wp-admin-bar.php
    index 7a3e032..60f99df 100644
    class WP_Admin_Bar { 
    5757        }
    5858
    5959        public function remove_menu( $id ) {
    60                 $this->remove_node( $id );
     60                return $this->remove_node( $id );
    6161        }
    6262
    6363        /**
    class WP_Admin_Bar { 
    120120        }
    121121
    122122        public function remove_node( $id ) {
     123                $node = $this->nodes[ $id ];
    123124                unset( $this->nodes[ $id ] );
     125                return get_object_vars( $node );
    124126        }
    125127
    126128        public function render() {