-
Notifications
You must be signed in to change notification settings - Fork 42
An item should not include both author and dc:creator #90
Comments
@glen-84 We then have to check as well:
I will have a deeper look into the code. Thanks for reporting! |
I think we must change the method public static function registerCoreExtensions()
{
$coreExtensions = [
'Atom',
'Content',
'DublinCore',
'GooglePlayPodcast',
'ITunes',
'Slash',
'Threading',
'WellFormedWeb',
];
foreach ($coreExtensions as $coreExtension) {
if (static::hasExtension($coreExtension)) {
static::registerExtension($coreExtension);
}
}
} With this change an extension can be removed (deregister): $extensionManager = new Zend\Feed\Writer\StandaloneExtensionManager();
$extensionManager->remove('DublinCore\Renderer\Entry');
$extensionManager->remove('DublinCore\Renderer\Feed');
Zend\Feed\Writer\Writer::setExtensionManager($extensionManager); @glen-84 |
It does seem to work, but shouldn't this be the default? (i.e. by default it shouldn't include both elements?) |
@glen-84
It was implemented in zend-feed before 2012 and I do not know if there was already a recommendation for this elements to that time. |
This repository has been closed and moved to laminas/laminas-feed; a new issue has been opened at laminas/laminas-feed#4. |
Using the W3C Feed Validation Service:
Code to reproduce the issue
n/a
Expected results
Only one of
author
anddc:creator
is included.Actual results
Both are included.
The text was updated successfully, but these errors were encountered: