| @@ -50,25 +50,13 @@ | ||
| 50 | 50 | $this->build_basic(); |
| 51 | 51 | $this->build_headline(); |
| 52 | 52 | $this->build_url(); |
| 53 | 53 | |
| 54 | - if ( true === $this->parsely->get_options()['full_metadata_in_non_posts'] ) { | |
| 55 | - $this->build_type( $this->post, 'non-post' ); | |
| 56 | - $this->build_main_entity( 'post' ); | |
| 57 | - $this->build_thumbnail_url( $this->post ); | |
| 58 | - $this->build_image( $this->post ); | |
| 59 | - $this->build_article_section( $this->post ); | |
| 60 | - $this->build_author( $this->post ); | |
| 61 | - $this->build_publisher(); | |
| 62 | - $this->build_keywords( $this->post ); | |
| 63 | - $this->build_metadata_post_times( $this->post ); | |
| 64 | - } | |
| 65 | - | |
| 66 | 54 | return $this->metadata; |
| 67 | 55 | } |
| 68 | 56 | |
| 69 | 57 | /** |
| 70 | - * Populates the headline field in the metadata object. | |
| 58 | + * Populates the `headline` field in the metadata object. | |
| 71 | 59 | * |
| 72 | 60 | * @since 3.4.0 |
| 73 | 61 | */ |
| 74 | 62 | private function build_headline(): void { |
| @@ -75,9 +63,9 @@ | ||
| 75 | 63 | $this->metadata['headline'] = $this->clean_value( get_the_title( $this->post ) ); |
| 76 | 64 | } |
| 77 | 65 | |
| 78 | 66 | /** |
| 79 | - * Populates the url field in the metadata object by getting the current page's URL. | |
| 67 | + * Populates the `url` field in the metadata object by getting the current page's URL. | |
| 80 | 68 | * |
| 81 | 69 | * @since 3.4.0 |
| 82 | 70 | */ |
| 83 | 71 | protected function build_url(): void { |