Conditions | 4 |
Paths | 6 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace EmailLog\Addon; |
||
51 | public function load() { |
||
52 | if ( \EmailLog\Util\is_admin_non_ajax_request() ) { |
||
53 | $email_log = email_log(); |
||
54 | |||
55 | if ( ! $email_log->is_plugin_api_overridden() ) { |
||
56 | $override_plugin_api = new \EmailLog\Core\Request\OverridePluginAPI(); |
||
57 | $override_plugin_api->load(); |
||
58 | |||
59 | $email_log->plugin_api_overridden(); |
||
60 | } |
||
61 | } |
||
62 | |||
63 | if ( is_null( $this->updater ) ) { |
||
64 | return; |
||
65 | } |
||
66 | |||
67 | $this->updater->set_addon_data( $this->addon_name, $this->addon_version, $this->addon_author ); |
||
68 | $this->updater->load(); |
||
69 | } |
||
71 |