[wp-trac] [WordPress Trac] #15959: get_adjacent_post() can generate invalid SQL
WordPress Trac
noreply at wordpress.org
Thu Nov 8 21:16:16 UTC 2012
#15959: get_adjacent_post() can generate invalid SQL
-------------------------------------+---------------------
Reporter: dd32 | Owner: westi
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5
Component: Query | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing |
-------------------------------------+---------------------
Changes (by nacin):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"22472"]:
{{{
#!CommitTicketReference repository="" revision="22472"
Return nothing in get_adjacent_post() when $in_same_cat = true but the
post doesn't support (or otherwise have) categories. Avoids SQL error.
props batmoo, SergeyBiryukov. fixes #15959.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15959#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list