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

Yoast / wordpress-seo / 5066322038

pending completion
5066322038

push

github

GitHub
Merge pull request #20316 from Yoast/JRF/ghactions-run-more-selectively

2550 of 29012 relevant lines covered (8.79%)

0.32 hits per line

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

0.0
/src/presentations/indexable-error-page-presentation.php
1
<?php
2

3
namespace Yoast\WP\SEO\Presentations;
4

5
/**
6
 * Class Indexable_Error_Page_Presentation.
7
 *
8
 * Presentation object for indexables.
9
 */
10
class Indexable_Error_Page_Presentation extends Indexable_Presentation {
11

12
        /**
13
         * Generates the robots value.
14
         *
15
         * @return array The robots value.
16
         */
17
        public function generate_robots() {
18
                $robots = $this->get_base_robots();
×
19

20
                $robots['index'] = 'noindex';
×
21

22
                return $this->filter_robots( $robots );
×
23
        }
24

25
        /**
26
         * Generates the title.
27
         *
28
         * @return string The title.
29
         */
30
        public function generate_title() {
31
                if ( $this->model->title ) {
×
32
                        return $this->model->title;
×
33
                }
34

35
                return $this->options->get_title_default( 'title-404-wpseo' );
×
36
        }
37
}
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