Open bobbingwide opened 1 year ago
The code was failing since $attributes['className']
was already a string, so did not need to be imploded.
[className] => (string) " menu-item menu-item-type-post_type menu-item-object-page"
Simplest solution was to check if it was an array before calling implode. If not, then assign the string directly. This fixes the fatal.
I didn't check if the code was still necessary.
On
s.b/wordpress
I clicked on Appearance > Site Editor and ended up with this Fatal. Failed in 6.3, also fails in 6.2 and 6.1Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in C:\apache\htdocs\wordpress\wp-content\themes\fizzie\includes\navigation-link.php:82 Stack trace:
Additionally, the trace log shows a couple of Warnings from the code that's sending the fatal error email.