Fix #397 WP 3.8.1 Fingerprint

This commit is contained in:
erwanlr
2014-01-24 00:30:35 +01:00
parent 196af51e2c
commit 7ba3a7dd2f
3 changed files with 14 additions and 8 deletions

View File

@@ -10,6 +10,12 @@
<wp-versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="wp_versions.xsd">
<file src="wp-includes/css/buttons-rtl.css">
<hash md5="fb062ed92b76638c161e80f4a5426586">
<version>3.8.1</version>
</hash>
</file>
<file src="wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js">
<hash md5="4de9f6b1aafe968e8509ffe7ee9bc973">
<version>3.8</version>

Binary file not shown.

View File

@@ -176,7 +176,7 @@ end
if @version
if version = Version.first(number: @version)
repository(:default).adapter.select('SELECT md5_hash, path_id, version_id, paths.value AS path FROM fingerprints LEFT JOIN paths ON path_id = id GROUP BY md5_hash ORDER BY path ASC').each do |f|
repository(:default).adapter.select('SELECT md5_hash, path_id, version_id, paths.value AS path FROM fingerprints LEFT JOIN paths ON path_id = id WHERE md5_hash NOT IN (SELECT DISTINCT md5_hash FROM fingerprints WHERE version_id != ?) ORDER BY path ASC', version.id).each do |f|
if f.version_id == version.id
puts "#{f.md5_hash} #{f.path}"
end