- Timestamp:
- 07/21/2020 01:55:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sitemaps/class-wp-sitemaps-registry.php
r48098 r48532 24 24 */ 25 25 private $sitemaps = array(); 26 27 /**28 * Maximum number of sitemaps to include in an index.29 *30 * @sincee 5.5.031 *32 * @var int Maximum number of sitemaps.33 */34 private $max_sitemaps = 50000;35 26 36 27 /** … … 70 61 71 62 /** 72 * Lists all registered sitemaps.63 * Returns all registered sitemap providers. 73 64 * 74 65 * @since 5.5.0 … … 77 68 */ 78 69 public function get_sitemaps() { 79 $total_sitemaps = count( $this->sitemaps );80 81 if ( $total_sitemaps > $this->max_sitemaps ) {82 return array_slice( $this->sitemaps, 0, $this->max_sitemaps, true );83 }84 85 70 return $this->sitemaps; 86 71 }
Note: See TracChangeset
for help on using the changeset viewer.