Skip to content

Commit

Permalink
Fix conditional check "Theme File Editor" menu (#37616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Dec 23, 2021
1 parent 2962120 commit 24bc4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-5.9/move-theme-editor-menu-item.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
*/

/*
* If _add_plugin_file_editor_to_tools is defined, it means the plugin
* If wp_list_users is defined, it means the plugin
* is running on WordPress 5.9, so no need to change menu location.
*/
if ( ! function_exists( '_add_plugin_file_editor_to_tools' ) ) {
if ( ! function_exists( 'wp_list_users' ) ) {
/**
* Moves the "theme editor" under "tools" in block themes.
*/
Expand Down

0 comments on commit 24bc4d7

Please sign in to comment.