summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/sitemaps/sitemap-constants.php')
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-constants.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/jetpack/modules/sitemaps/sitemap-constants.php b/plugins/jetpack/modules/sitemaps/sitemap-constants.php
index ce732557..706a9501 100644
--- a/plugins/jetpack/modules/sitemaps/sitemap-constants.php
+++ b/plugins/jetpack/modules/sitemaps/sitemap-constants.php
@@ -15,10 +15,10 @@
* @since 7.7.0
*/
if ( defined( 'JETPACK_DEV_DEBUG' ) && JETPACK_DEV_DEBUG ) {
- if ( ! defined( 'JP_SITEMAP_INTERVAL') ) {
+ if ( ! defined( 'JP_SITEMAP_INTERVAL' ) ) {
define( 'JP_SITEMAP_INTERVAL', 60 );
}
- if ( ! defined( 'JP_NEWS_SITEMAP_INTERVAL') ) {
+ if ( ! defined( 'JP_NEWS_SITEMAP_INTERVAL' ) ) {
define( 'JP_NEWS_SITEMAP_INTERVAL', 60 );
}
}
@@ -147,7 +147,7 @@ if ( ! defined( 'JP_VIDEO_SITEMAP_INDEX_TYPE' ) ) {
* @return string The filename.
*/
function jp_sitemap_filename( $type, $number = null ) {
- if ( is_null( $number ) ) {
+ if ( $number === null ) {
return "error-not-int-$type-$number.xml";
} elseif ( JP_MASTER_SITEMAP_TYPE === $type ) {
return 'sitemap.xml';