Make WordPress Core

Changeset 48094


Ignore:
Timestamp:
06/19/2020 05:58:17 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Sitemaps: Rename the wp_sitemaps_is_enabled filter to wp_sitemaps_enabled.

This makes it more consistent with the other filters of the similar purpose.

Props arpitgshah.
Fixes #50428. See #50117.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sitemaps.php

    r48093 r48094  
    3232     * @param bool $is_enabled Whether XML Sitemaps are enabled or not. Defaults to true for public sites.
    3333     */
    34     $is_enabled = (bool) apply_filters( 'wp_sitemaps_is_enabled', $is_enabled );
     34    $is_enabled = (bool) apply_filters( 'wp_sitemaps_enabled', $is_enabled );
    3535
    3636    if ( ! $is_enabled ) {
Note: See TracChangeset for help on using the changeset viewer.