WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#4881 closed defect (bug) (fixed)

get_bookmark calls undefined function

Reported by: filosofo Owned by:
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.3
Component: General Keywords: get_bookmark wp_get_link_cats has-patch
Focuses: Cc:

Description

get_bookmark, which is defined in wp-includes/bookmarks.php and is therefore presumably available to be used outside the admin area, calls wp_get_link_cats, which is defined only within the admin area, creating a fatal error if called elsewhere.

My patch just does on one line what wp_get_link_cats does anyways, using the taxonomy api.

Attachments (1)

get_bookmark.diff (652 bytes) - added by filosofo 8 years ago.

Download all attachments as: .zip

Change History (2)

@filosofo8 years ago

comment:1 @ryan8 years ago

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

(In [5997]) Don't use unavailable func. Props filosofo. fixes #4881

Note: See TracTickets for help on using tickets.