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:
@@ -157,6 +157,9 @@
|
|||||||
if( false !== strpos( $sql, 'USE INDEX (comment_date_gmt)'))
|
if( false !== strpos( $sql, 'USE INDEX (comment_date_gmt)'))
|
||||||
$sql = str_replace( 'USE INDEX (comment_date_gmt)', '', $sql);
|
$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
|
// ZdMultiLang support hacks
|
||||||
$sql = preg_replace( '/post_type="([^"]+)"/', 'post_type=\'$1\'', $sql);
|
$sql = preg_replace( '/post_type="([^"]+)"/', 'post_type=\'$1\'', $sql);
|
||||||
$sql = str_replace( 'link_url o_url', 'link_url AS o_url', $sql);
|
$sql = str_replace( 'link_url o_url', 'link_url AS o_url', $sql);
|
||||||
|
Reference in New Issue
Block a user