When you visit the page that has only one edit, the sameAs schema doesn't include dateModified, as the article wasn't modified (only created)
Although the Google testing tools says that dateModified is recommended field but:
- it also says that the dateModified should be more recent than datePublished
- there is no mention what to do if there is no modification date (only creation date).
Please, verify what to do in this scenario, and
- or add dateModified with same value as datePublished
- leave a note, that in this cases dateModified is not necessary
Also, for getEarliestRevTime(), do we need to check that it exists? E.g.:
$firstRevisionTimestamp = $title->getEarliestRevTime(); if ( $firstRevisionTimestamp ) { $schema['datePublished'] = wfTimestamp( TS_ISO_8601, $firstRevisionTimestamp ); }