[wp-trac] [WordPress Trac] #21465: Wrong operator in wp-includes/bookmark.php

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 4 08:00:17 UTC 2012


#21465: Wrong operator in wp-includes/bookmark.php
---------------------------+----------------------
 Reporter:  carmenDi0xide  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  General        |     Version:  3.4.1
 Severity:  minor          |  Resolution:  invalid
 Keywords:                 |
---------------------------+----------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch =>
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 The line works as intended. It's a check if the specified link category
 exists, not a comparison.

 > I'd like to get links that belong to regular category terms

 Sounds like you're looking for `get_category_link()`: [[BR]]
 http://codex.wordpress.org/Function_Reference/get_category_link

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


More information about the wp-trac mailing list