Ticket #19371: 19371b.diff
File 19371b.diff, 475 bytes (added by , 13 years ago) |
---|
-
class-wp-admin-bar.
old new 120 120 } 121 121 122 122 public function remove_node( $id ) { 123 $node = $this->nodes[ $id ]; 124 unset( $this->nodes[ $id ] ); 125 return get_object_vars( $node ); 123 if(!empty($this->nodes[ $id ])){ 124 $node = $this->nodes[ $id ]; 125 unset( $this->nodes[ $id ] ); 126 return get_object_vars( $node ); 127 } 126 128 } 127 129 128 130 public function render() {