Trouffman said:
I'm looking to implement this plugin on my website in addition to WPML
http://forum.wpml.org/topic.php?id=1023
The following change to revisionary/hardway/hardway-admin_rvy.php should fix your conflict:
change:
$query = str_replace("post_type = 'page'", "( post_type = 'page' OR ( post_type = 'revision' AND ( post_status = 'pending' OR post_status = 'future' ) AND post_parent IN ( SELECT ID from $wpdb->posts WHERE post_type = 'page' ) ) )", $query);
$query = str_replace("post_type = 'post'", "( post_type = 'post' OR ( post_type = 'revision' AND ( post_status = 'pending' OR post_status = 'future' ) AND post_parent IN ( SELECT ID from $wpdb->posts WHERE post_type = 'post' ) ) )", $query);
to:
$p = ( strpos( $query, 'p.post_type' ) ) ? 'p.' : '';
$query = str_replace("{$p}post_type = 'page'", "( {$p}post_type = 'page' OR ( {$p}post_type = 'revision' AND ( {$p}post_status = 'pending' OR {$p}post_status = 'future' ) AND {$p}post_parent IN ( SELECT ID from $wpdb->posts WHERE post_type = 'page' ) ) )", $query);
$query = str_replace("{$p}post_type = 'post'", "( {$p}post_type = 'post' OR ( {$p}post_type = 'revision' AND ( {$p}post_status = 'pending' OR {$p}post_status = 'future' ) AND {$p}post_parent IN ( SELECT ID from $wpdb->posts WHERE post_type = 'post' ) ) )", $query);