Issues (15)

examples/example.php (7 issues)

Labels
Severity
1
<div class="block">
2
    <div class="block__heading">
3
        <h1><?= esc_html($fields['heading']) ?></h1>
0 ignored issues
show
The function esc_html was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

3
        <h1><?= /** @scrutinizer ignore-call */ esc_html($fields['heading']) ?></h1>
Loading history...
4
    </div>
5
    <div class="block__image">
6
        <?= wp_get_attachment_image($fields['image'], 'full') ?>
0 ignored issues
show
The function wp_get_attachment_image was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

6
        <?= /** @scrutinizer ignore-call */ wp_get_attachment_image($fields['image'], 'full') ?>
Loading history...
7
    </div>
8
    <div class="block__content">
9
        <?= apply_filters('the_content', $fields['content']) ?>
0 ignored issues
show
The function apply_filters was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

9
        <?= /** @scrutinizer ignore-call */ apply_filters('the_content', $fields['content']) ?>
Loading history...
10
    </div>
11
    <?php if ($associations->have_posts()) : ?>
12
        <div class="block__associations">
13
            <ul class="block__associations-list">
14
                <?php while ($associations->have_posts()) : $associations->the_post(); ?>
15
                    <li class="block__associations-item">
16
                        <a class="block__associations-link" href="<?= esc_url(get_the_permalink()) ?>">
0 ignored issues
show
The function get_the_permalink was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
                        <a class="block__associations-link" href="<?= esc_url(/** @scrutinizer ignore-call */ get_the_permalink()) ?>">
Loading history...
The function esc_url was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
                        <a class="block__associations-link" href="<?= /** @scrutinizer ignore-call */ esc_url(get_the_permalink()) ?>">
Loading history...
17
                            <?= esc_html(get_the_title()) ?>
0 ignored issues
show
The function get_the_title was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
                            <?= esc_html(/** @scrutinizer ignore-call */ get_the_title()) ?>
Loading history...
18
                        </a>
19
                    </li>
20
                <?php endwhile; ?>
21
            </ul>
22
        </div>
23
        <?php wp_reset_postdata(); ?>
0 ignored issues
show
The function wp_reset_postdata was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

23
        <?php /** @scrutinizer ignore-call */ wp_reset_postdata(); ?>
Loading history...
24
    <?php endif; ?>
25
</div>
26