Ticket #51136: patch.diff
File patch.diff, 703 bytes (added by , 4 years ago) |
---|
-
wp-includes/sitemaps/class-wp-sitemaps.php
62 62 * @since 5.5.0 63 63 */ 64 64 public function init() { 65 if ( ! $this->sitemaps_enabled() ) { 66 return; 67 } 68 65 69 // These will all fire on the init hook. 66 70 $this->register_rewrites(); 67 71 68 72 add_action( 'template_redirect', array( $this, 'render_sitemaps' ) ); 69 73 70 if ( ! $this->sitemaps_enabled() ) {71 return;72 }73 74 74 $this->register_sitemaps(); 75 75 76 76 // Add additional action callbacks.