summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/sitemaps.php')
-rw-r--r--plugins/jetpack/modules/sitemaps.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/sitemaps.php b/plugins/jetpack/modules/sitemaps.php
new file mode 100644
index 00000000..8122b91d
--- /dev/null
+++ b/plugins/jetpack/modules/sitemaps.php
@@ -0,0 +1,26 @@
+<?php
+/**
+ * Module Name: Sitemaps
+ * Module Description: Creates sitemaps to allow your site to be easily indexed by search engines.
+ * Sort Order: 13
+ * First Introduced: 3.9
+ * Requires Connection: No
+ * Auto Activate: Public
+ * Module Tags: Recommended, Traffic
+ * Additional Search Queries: sitemap, traffic, search, site map, seo
+ */
+
+/**
+ * Check site privacy before activating sitemaps.
+ *
+ * @module sitemaps
+ */
+function jetpack_sitemaps_activate() {
+ Jetpack::check_privacy( __FILE__ );
+}
+
+add_action( 'jetpack_activate_module_sitemaps', 'jetpack_sitemaps_activate' );
+
+if ( '1' == get_option( 'blog_public' ) ) {
+ include_once 'sitemaps/sitemaps.php';
+} \ No newline at end of file