[wp-trac] [WordPress Trac] #62422: Can't edit pages after update to 6.7 and also later after downgrade
WordPress Trac
noreply at wordpress.org
Tue Jan 7 17:40:24 UTC 2025
#62422: Can't edit pages after update to 6.7 and also later after downgrade
-------------------------------------------------+-------------------------
Reporter: levskipg | Owner: desrosj
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.7.2
Component: Editor | Version: 6.7
Severity: critical | Resolution:
Keywords: has-patch fixed-major dev-feedback | Focuses:
commit has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by dilip2615):
Hello
To fix the issue, ensure your custom scripts rely on WordPress's React
(`wp-element`) instead of a third-party version. Update your
`functions.php` to enqueue scripts properly:
```php
function enqueue_custom_scripts() {
wp_enqueue_script(
'my-custom-script',
get_template_directory_uri() . '/js/custom-script.js',
['wp-element'],
null,
true
);
}
add_action('wp_enqueue_scripts', 'enqueue_custom_scripts');
```
Ensure all block descriptions are strings and replace `createRoot` with
`ReactDOM.render`. Dequeue any conflicting React scripts. If the issue
persists, debug further by temporarily switching to a default theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62422#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list