Hi @fringewood
Seems like a javascript error. I have tried logging in wp dashboard on 6.7 in latest Safari and couldn’t replicate.
It could be a plugin/theme conflict or an extension in Safari. Try using the incognito and if it doesn’t help try to disable plugins 1 by 1 to find the culprit. You can also try switching to default theme.
You can also try adding this to your theme functions.php file but I didn’t tested it
// Add this code to your theme's functions.php or a custom plugin
function fix_react_in_safari() {
// Only apply fix if user is in admin area
if (!is_admin()) return;
// Dequeue problematic React and ReactDOM versions
wp_dequeue_script('react');
wp_dequeue_script('react-dom');
// Enqueue stable versions of React and ReactDOM
wp_enqueue_script(
'react-stable',
'https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.production.min.js',
array(),
'17.0.2',
true
);
wp_enqueue_script(
'react-dom-stable',
'https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.production.min.js',
array('react-stable'),
'17.0.2',
true
);
// Add compatibility layer for newer React features
wp_add_inline_script('react-dom-stable', "
if (typeof window.createRoot === 'undefined') {
window.createRoot = function(container) {
return {
render: function(element) {
ReactDOM.render(element, container);
},
unmount: function() {
ReactDOM.unmountComponentAtNode(container);
}
};
};
}
");
}
add_action('admin_enqueue_scripts', 'fix_react_in_safari', 100);