[wp-trac] [WordPress Trac] #22360: Database Error with previous_post_link and next_post_link functions
WordPress Trac
noreply at wordpress.org
Sun Nov 4 23:14:19 UTC 2012
#22360: Database Error with previous_post_link and next_post_link functions
-----------------------------+--------------------------
Reporter: neonwired | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: 3.4.2 | Severity: normal
Keywords: |
-----------------------------+--------------------------
Passing a value of ''1'' or ''true'' for the ''in_same_cat'' argument
results in a database error.
WordPress database error: [You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right syntax
to use near ') WHERE p.post_date < '2012-10-14 17:16:13' AND p.post_type =
'project' AND p.po' at line 1]
SELECT p.* FROM wp_posts AS p INNER JOIN wp_term_relationships AS tr ON
p.ID = tr.object_id INNER JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id
= tt.term_taxonomy_id AND tt.taxonomy = 'category' AND tt.term_id IN ()
WHERE p.post_date < '2012-10-14 17:16:13' AND p.post_type = 'project' AND
p.post_status = 'publish' AND tt.taxonomy = 'category' ORDER BY
p.post_date DESC LIMIT 1
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22360>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list