GoogleChromeLabs / wp-sitemaps

Proposal to integrate basic XML Sitemaps in WordPress Core
GNU General Public License v2.0
97 stars 26 forks source link

Update check for whether sitemaps exist in core #225

Closed pbiron closed 4 years ago

pbiron commented 4 years ago

Describe the bug

As a result of core #50724, the current check for whether sitemaps exist in core no longer works w/ 5.5 Beta 3+, resulting in a PHP fatal error.

Fatal error: Cannot declare class WP_Sitemaps, because the name is already in use

To Reproduce Steps to reproduce the behavior:

  1. Activate the feature plugin on a site running 5.5 Beta 3
  2. See error

Expected behavior The feature plugin should be a no-op.