[wp-trac] [WordPress Trac] #21159: get_bookmark() errors with non-existent id

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 13 05:46:59 UTC 2012


#21159: get_bookmark() errors with non-existent id
---------------------------------+------------------
 Reporter:  Mike Stop Continues  |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  3.5
Component:  General              |     Version:
 Severity:  normal               |  Resolution:
 Keywords:  has-patch            |
---------------------------------+------------------
Changes (by wonderboymusic):

 * keywords:   => has-patch
 * milestone:  Awaiting Review => 3.5


Comment:

 {{{$_bookmark}}} will be {{{null}}} if {{{$wpdb->get_row}}} returns
 nothing. Validates the returned value before querying and setting cache.
 Even though links are eventually being removed, the remaining tickets
 should be fixed for #21307 before moving to plugin.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21159#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list