Integrated Boris HUISGEN's patch for permalinks to work properly

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@200849 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2010-02-01 21:45:55 +00:00
parent be67d11a9c
commit a7076de977

View File

@@ -157,6 +157,9 @@
if( false !== strpos( $sql, 'USE INDEX (comment_date_gmt)'))
$sql = str_replace( 'USE INDEX (comment_date_gmt)', '', $sql);
// HB : timestamp fix for permalinks
$sql = str_replace( 'post_date_gmt > 1970', 'post_date_gmt > to_timestamp (\1970\')', $sql);
// ZdMultiLang support hacks
$sql = preg_replace( '/post_type="([^"]+)"/', 'post_type=\'$1\'', $sql);
$sql = str_replace( 'link_url o_url', 'link_url AS o_url', $sql);