WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#19508 closed defect (bug) (fixed)

get_bookmarks() comment correction

Reported by: hearvox Owned by: nacin
Milestone: 3.4 Priority: normal
Severity: minor Version: 2.5
Component: Inline Docs Keywords: has-patch commit
Focuses: Cc:

Description

In the comments for get_bookmarks(), the parameters 'include' and 'exclude' are described as being for "categories", but what's being in-/ex-cluded is link_id(s).

So in file wp-includes/bookmark.php on lines 104-107:

 * 'include' - Default is empty string (string). Include other categories
 *              separated by commas.
 * 'exclude' - Default is empty string (string). Exclude other categories
 *              separated by commas.`

It should be:
"...Include bookmark ID(s) separated by commas." And "Exclude bookmark ID(s)..."

Attachments (1)

bookmark.diff (685 bytes) - added by hearvox 8 years ago.
Comment wording changed

Download all attachments as: .zip

Change History (5)

@hearvox
8 years ago

Comment wording changed

#1 @hearvox
8 years ago

  • Cc mbox@… added

#2 @helenyhou
8 years ago

  • Component changed from Comments to Inline Docs
  • Version changed from 3.3 to 2.5

#3 @SergeyBiryukov
8 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.4

#4 @nacin
8 years ago

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

In [19615]:

get_bookmarks() doc fix. props hearvox, fixes #19508.

Note: See TracTickets for help on using tickets.