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, 3 insertions, 3 deletions
diff --git a/plugins/jetpack/modules/sitemaps/sitemap-librarian.php b/plugins/jetpack/modules/sitemaps/sitemap-librarian.php index c923c952..018aa36b 100644 --- a/plugins/jetpack/modules/sitemaps/sitemap-librarian.php +++ b/plugins/jetpack/modules/sitemaps/sitemap-librarian.php @@ -7,11 +7,11 @@ * in the sitemaps. * * @since 4.8.0 - * @package Jetpack + * @package automattic/jetpack */ /* Ensure sitemap constants are available. */ -require_once dirname( __FILE__ ) . '/sitemap-constants.php'; +require_once __DIR__ . '/sitemap-constants.php'; /** * This object handles any database interaction required @@ -306,7 +306,7 @@ class Jetpack_Sitemap_Librarian { $wpdb->prepare( "SELECT MAX(comment_date_gmt) FROM $wpdb->comments - WHERE comment_post_ID = %d AND comment_approved = '1' AND comment_type=''", + WHERE comment_post_ID = %d AND comment_approved = '1' AND comment_type in ( '', 'comment' )", $post_id ) ); |