PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | modules/sitemaps/sitemap-constants.php +6 -2 13.7.216.3-a.1 View file →
@@ -6,8 +6,12 @@
6 6 * @since 4.8.0
7 7 * @author Automattic
8 8 */
9 9
10 +if ( ! defined( 'ABSPATH' ) ) {
11 + exit( 0 );
12 +}
13 +
10 14 /**
11 15 * Number of seconds between sitemap and news sitemap updates in development code.
12 16 * In production, sitemaps are cached for 12 hours.
13 17 * In development, sitemaps are cache for 1 minute.
@@ -41,9 +45,9 @@
41 45 * @link https://www.sitemaps.org/
42 46 * @since 4.8.0
43 47 */
44 48 if ( ! defined( 'JP_SITEMAP_MAX_ITEMS' ) ) {
45 - define( 'JP_SITEMAP_MAX_ITEMS', 2000 );
49 + define( 'JP_SITEMAP_MAX_ITEMS', 1000 );
46 50 }
47 51
48 52 /**
49 53 * Maximum size (in url nodes) of a news sitemap xml file.
@@ -147,9 +151,9 @@
147 151 * @return string The filename.
148 152 */
149 153 function jp_sitemap_filename( $type, $number = null ) {
150 154 if ( $number === null ) {
151 - return "error-not-int-$type-$number.xml";
155 + return "error-not-int-$type-null.xml";
152 156 } elseif ( JP_MASTER_SITEMAP_TYPE === $type ) {
153 157 return 'sitemap.xml';
154 158 } elseif ( JP_PAGE_SITEMAP_TYPE === $type ) {
155 159 return "sitemap-$number.xml";