Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing posts is broken #4

Open
8ctopus opened this issue Jan 31, 2025 · 0 comments
Open

Editing posts is broken #4

8ctopus opened this issue Jan 31, 2025 · 0 comments

Comments

@8ctopus
Copy link

8ctopus commented Jan 31, 2025

These two lines break editing (clicking the media button doesn't work) and the Yoast SEO also doesn't work.

wp_deregister_script( 'wp-block-editor' ); // Block editor script.
wp_deregister_script( 'wp-blocks' ); // Block-related script.

Image

suggested fix:

            if (!is_user_logged_in()) {
                wp_deregister_script( 'wp-blocks' );            // Block-related script.
                wp_deregister_script( 'wp-dom-ready' );         // DOM-ready script.
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant