FIX: PHP 8.0: Deprecate required parameters after optional parameters in function/method signatures

This commit is contained in:
savvasha
2021-09-26 15:50:22 +03:00
parent 35f4da95e7
commit 6edd62ff11
3 changed files with 3 additions and 3 deletions

View File

@@ -268,7 +268,7 @@ class SP_Admin_Menus {
$submenu_file = $s;
}
public static function sitemap_taxonomy_post_types( $post_types = array(), $taxonomy ) {
public static function sitemap_taxonomy_post_types( $post_types = array(), $taxonomy = 'sp_venue' ) {
$post_types = array_intersect( $post_types, sp_primary_post_types() );
// Remove teams from venues taxonomy post type array
if ( $taxonomy === 'sp_venue' && ( $key = array_search( 'sp_team', $post_types ) ) !== false ):