Direct access to protected $doc->_links property breaks forward compat #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In
MokoOG::applySeoTags()at line 196, the code directly accesses$doc->_links:_linksis an internal property ofHtmlDocument. This will break if Joomla changes the internal structure and may emit deprecation notices in Joomla 6.Fix
Use Joomla's public API:
$doc->getHeadData()to read and$doc->setHeadData()to write, or check for$doc->removeHeadLink()if available.File
src/packages/plg_system_mokoog/src/Extension/MokoOG.php:196-199Branch created:
feature/39-direct-access-to-protected-links-propert