Skip to content

Commit

Permalink
use get_stylesheet_directory instead of STYLESHEET (#27021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Addison-Stavlo authored Nov 17, 2020
1 parent 980b34e commit 9438924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/full-site-editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @return boolean Whether the current theme is an FSE theme or not.
*/
function gutenberg_is_fse_theme() {
return is_readable( STYLESHEETPATH . '/block-templates/index.html' );
return is_readable( get_stylesheet_directory() . '/block-templates/index.html' );
}

/**
Expand Down

0 comments on commit 9438924

Please sign in to comment.