diff options
Diffstat (limited to 'plugins/jetpack/modules/sitemaps/sitemap-librarian.php')
-rw-r--r-- | plugins/jetpack/modules/sitemaps/sitemap-librarian.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/sitemaps/sitemap-librarian.php b/plugins/jetpack/modules/sitemaps/sitemap-librarian.php index f56a0ff8..4c41d095 100644 --- a/plugins/jetpack/modules/sitemaps/sitemap-librarian.php +++ b/plugins/jetpack/modules/sitemaps/sitemap-librarian.php @@ -325,10 +325,11 @@ class Jetpack_Sitemap_Librarian { "SELECT * FROM $wpdb->posts WHERE post_type='attachment' - AND post_mime_type IN ('image/jpeg','image/png','image/gif') + AND post_mime_type LIKE %s AND ID>%d ORDER BY ID ASC LIMIT %d;", + 'image/%', $from_id, $num_posts ) @@ -357,10 +358,11 @@ class Jetpack_Sitemap_Librarian { "SELECT * FROM $wpdb->posts WHERE post_type='attachment' - AND post_mime_type IN ('video/mpeg','video/wmv','video/mov','video/avi','video/ogg') + AND post_mime_type LIKE %s AND ID>%d ORDER BY ID ASC LIMIT %d;", + 'video/%', $from_id, $num_posts ) |