phpcs
All checks were successful
All checks were successful
This commit is contained in:
parent
52401380b2
commit
b329177fc6
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ abstract class Event_Plugin {
|
||||||
|
|
||||||
// Check if we are on a edit page for the event, or on the settings page of the event plugin.
|
// Check if we are on a edit page for the event, or on the settings page of the event plugin.
|
||||||
$is_event_plugins_edit_page = 'edit' === $screen->base && static::get_post_type() === $screen->post_type;
|
$is_event_plugins_edit_page = 'edit' === $screen->base && static::get_post_type() === $screen->post_type;
|
||||||
$is_event_plugins_settings_page = in_array( $screen->id, static::get_settings_pages(), true);
|
$is_event_plugins_settings_page = in_array( $screen->id, static::get_settings_pages(), true );
|
||||||
|
|
||||||
return $is_event_plugins_edit_page || $is_event_plugins_settings_page;
|
return $is_event_plugins_edit_page || $is_event_plugins_settings_page;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue