From 605f2883e457536f475b03f0da89dece477ab206 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 9 Dec 2021 03:41:00 +0000 Subject: [PATCH] Fix WP 5.9 check (#37235) --- 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 ff91d574bfb4e..102c9275be408 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 18f6f871adcf0..d5bdf1c55c486 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. */