• Resolved gik25

    (@gik25)


    This piece of code from your plugin overwrites the values set by others

    add_filter( ‘wpseo_exclude_from_sitemap_by_post_ids’, function () {
    return array( $this->settings[‘404page_page_id’] );
    } );

    I think it should become:
    add_filter( ‘wpseo_exclude_from_sitemap_by_post_ids’, function ($alreadyExcluded) {
    return alreadyExcluded->Add(array( $this->settings[‘404page_page_id’] ));
    } );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘small bug with wpseo_exclude_from_sitemap_by_post_ids’ is closed to new replies.