date = new WPSEO_Date_Helper(); } /** * Adds an author property to the $data if the WebPage is not represented. * * @deprecated 14.0 * @codeCoverageIgnore * * @param array $data The WebPage schema. * @param WP_Post $post The post the context is representing. * * @return array The WebPage schema. */ public function add_author( $data, $post ) { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\WebPage::add_author' ); return $this->stable->add_author( $data, $post ); } /** * If we have an image, make it the primary image of the page. * * @deprecated 14.0 * @codeCoverageIgnore * * @param array $data WebPage schema data. */ public function add_image( &$data ) { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\WebPage::add_image' ); $this->stable->add_image( $data ); } }