Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function __construct( $errors ) { |
||
22 | |||
23 | // In this class, we will only handle errors with the blog token, so ignoring if there are only errors with user tokens. |
||
24 | if ( ! isset( $errors[0] ) || ! isset( $errors['invalid'] ) ) { |
||
25 | add_action( 'jetpack_notices', array( $this, 'admin_notice' ) ); |
||
26 | } |
||
27 | |||
28 | } |
||
29 | |||
45 |