Skip to content

Commit

Permalink
Fix WP 5.9 check (#37235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Dec 9, 2021
1 parent 3f3cfff commit 605f288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-5.9/template-parts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/compat/wordpress-5.9/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 605f288

Please sign in to comment.