From 2c73d0274bea97daba85c6d3180b4a2cb5bf4dfe Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 8 Dec 2021 22:17:57 +0400 Subject: [PATCH] Fix WP 5.9 check --- lib/compat/wordpress-5.9/template-parts.php | 4 ++-- lib/compat/wordpress-5.9/templates.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/compat/wordpress-5.9/template-parts.php b/lib/compat/wordpress-5.9/template-parts.php index ff91d574bfb4e7..102c9275be4085 100644 --- a/lib/compat/wordpress-5.9/template-parts.php +++ b/lib/compat/wordpress-5.9/template-parts.php @@ -12,8 +12,8 @@ */ // Only run any of the code in this file if the version is less than 5.9. -// wp_is_block_theme was introduced in 5.9. -if ( ! function_exists( 'wp_is_block_theme' ) ) { +// wp_list_users was introduced in 5.9. +if ( ! function_exists( 'wp_list_users' ) ) { /** * Registers block editor 'wp_template_part' post type. */ diff --git a/lib/compat/wordpress-5.9/templates.php b/lib/compat/wordpress-5.9/templates.php index 18f6f871adcf08..d5bdf1c55c4866 100644 --- a/lib/compat/wordpress-5.9/templates.php +++ b/lib/compat/wordpress-5.9/templates.php @@ -12,8 +12,8 @@ */ // Only run any of the code in this file if the version is less than 5.9. -// wp_is_block_theme was introduced in 5.9. -if ( ! function_exists( 'wp_is_block_theme' ) ) { +// wp_list_users was introduced in 5.9. +if ( ! function_exists( 'wp_list_users' ) ) { /** * Registers block editor 'wp_template' post type. */