mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 22:43:24 +09:00
yoda on Genesis
This commit is contained in:
@@ -24,7 +24,7 @@ class Display_Featured_Image_Genesis {
|
||||
}
|
||||
|
||||
public function run() {
|
||||
if ( basename( get_template_directory() ) !== 'genesis' ) {
|
||||
if ( 'genesis' !== basename( get_template_directory() ) ) {
|
||||
add_action( 'admin_init', array( $this, 'deactivate' ) );
|
||||
add_action( 'admin_notices', array( $this, 'error_message' ) );
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user