: sizeof(): Parameter must be an array or an object that implements Countable in public function notices() {
if ( isset( $_GET['invalidkeyerror'] ) && '1' == $_GET['invalidkeyerror'] ) {
appthemes_display_notice( 'error', __( 'Sorry, that key does not appear to be valid. Please try again.', APP_TD ) );
}
if ( isset( $this->error ) && sizeof( $this->error ) > 0 && $this->error->get_error_code() ) { //тут ошибка
$error_html = '<ul class="errors">';
foreach ( $this->error->errors as $error ) {
$error_html .= '<li>' . $error[0] . '</li>';
}
$error_html .= '</ul>';
appthemes_display_notice( 'error', $error_html );
}
}