Ticket #4881 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

get_bookmark calls undefined function

Reported by: filosofo Assigned to: anonymous
Priority: normal Milestone: 2.3
Component: General Version: 2.3
Severity: normal Keywords: get_bookmark wp_get_link_cats has-patch
Cc: filosofo

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

get_bookmark.diff (0.6 kB) - added by filosofo on 08/31/07 22:24:07.

Change History

08/31/07 22:24:07 changed by filosofo

  • attachment get_bookmark.diff added.

08/31/07 22:36:16 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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