Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51117, comment 9


Ignore:
Timestamp:
05/04/2023 11:08:13 PM (3 years ago)
Author:
RavanH
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51117, comment 9

    initial v1  
    1 Currently using this as a patch (via plugin) solving all issues. The functions `is_sitemap()` and `is_sitemap_stylesheet()` are not technically needed in this context but seem logical to have available (and use)...
     1Currently using the following as a patch (via plugin) solving all issues. The functions `is_sitemap()` and `is_sitemap_stylesheet()` are not technically needed in this context but seem logical to have available (and use)...
     2
     3Note that hooking `wp_sitemaps_loaded()` into `parse_request` will render the sitemap (or stylesheet) early and then exit, thereby skipping the unneeded main query altogether.
    24
    35{{{