Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#20906 closed defect (bug) (fixed)

Incorrect docs for WP_Admin_Bar::remove_node()

Reported by: scribu Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: trivial Version:
Component: Inline Docs Keywords: has-patch commit
Focuses: Cc:


The doc says that it returns the removed node, but that's simply not true.

Attachments (1)

20906.diff (413 bytes) - added by scribu 3 years ago.

Download all attachments as: .zip

Change History (5)

3 years ago

#1 @nacin
3 years ago

It did, until we introduced get_node().

#2 @scribu
3 years ago

I know. Still a bug, either way. :P

#3 @SergeyBiryukov
3 years ago

  • Milestone changed from Awaiting Review to 3.5

#4 @nacin
3 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [21608]:

Remove the @return for WP_Admin_Bar::remove_node(). props scribu. fixes #20906.

Note: See TracTickets for help on using tickets.