@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * @uses api_request() |
| 98 | 98 | * |
| 99 | 99 | * @param array $_transient_data Update array build by WordPress. |
| 100 | - * @return array Modified update array with custom plugin data. |
|
| 100 | + * @return stdClass Modified update array with custom plugin data. |
|
| 101 | 101 | */ |
| 102 | 102 | public function check_update( $_transient_data ) { |
| 103 | 103 | |
@@ -10,7 +10,9 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | // Exit if accessed directly |
| 13 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 13 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 14 | + exit; |
|
| 15 | +} |
|
| 14 | 16 | |
| 15 | 17 | /** |
| 16 | 18 | * Allows plugins to use their own update API. |