• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 5fe591e4aa7b2ab8e1b7e72a52790da7a6376543

09 Oct 2024 07:31AM UTC coverage: 49.389% (-5.2%) from 54.558%
5fe591e4aa7b2ab8e1b7e72a52790da7a6376543

push

github

web-flow
Merge pull request #21670 from Yoast/281-deal-with-all-regressions-that-were-created-by-the-change-of-the-ftc-location

281 deal with all regressions that were created by the change of the ftc location

7539 of 13565 branches covered (55.58%)

Branch coverage included in aggregate %.

4 of 9 new or added lines in 4 files covered. (44.44%)

4294 existing lines in 147 files now uncovered.

25666 of 53666 relevant lines covered (47.83%)

42471.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/integrations/exclude-attachment-post-type.php
1
<?php
2

3
namespace Yoast\WP\SEO\Integrations;
4

5
use Yoast\WP\SEO\Conditionals\Attachment_Redirections_Enabled_Conditional;
6

7
/**
8
 * Excludes Attachment post types from the indexable table.
9
 *
10
 * Posts with these post types will not be saved to the indexable table.
11
 */
12
class Exclude_Attachment_Post_Type extends Abstract_Exclude_Post_Type {
13

14
        /**
15
         * Returns the conditionals based in which this loadable should be active.
16
         *
17
         * @return array
18
         */
19
        public static function get_conditionals() {
2✔
20
                return [ Attachment_Redirections_Enabled_Conditional::class ];
2✔
21
        }
22

23
        /**
24
         * Returns the names of the post types to be excluded.
25
         * To be used in the wpseo_indexable_excluded_post_types filter.
26
         *
27
         * @return array The names of the post types.
28
         */
UNCOV
29
        public function get_post_type() {
×
UNCOV
30
                return [ 'attachment' ];
×
31
        }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc