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

PHP code in page is always commented #150

Closed
johnnyontheweb opened this issue Dec 31, 2020 · 3 comments
Closed

PHP code in page is always commented #150

johnnyontheweb opened this issue Dec 31, 2020 · 3 comments

Comments

@johnnyontheweb
Copy link

Hello all,
when editing pages with classic editor in Visual tab, on saving all the php code I have inserted in the document are commented.
For example
<?php if(is_user_logged_in()) : ?>
becomes <!--?php if(is_user_logged_in()) : ?-->

Is it a way to avoid this happens every time? I understand this can happen for a security reason, but I have legacy pages that need these line to be kept unaltered.
thanks in advance

@johnnyontheweb
Copy link
Author

Anyone? This issue still persists in actual version

@azaozz
Copy link
Contributor

azaozz commented May 10, 2024

Sounds like this is a problem with the (old) Edit Post screen, not with this plugin. Classic Editor plugin only enables the use of the old editor, it doesn't affect how it works.

If this is still a problem and has been tested with all other plugins disabled, and it seems to be an old bug on the Edit Post screen, please feel free to open a Trac ticket with the full description and how to reproduce it.

@azaozz azaozz closed this as completed May 10, 2024
@johnnyontheweb
Copy link
Author

Hello,
not very useful as answer after 3 years and a half, anyway better than nothing. I'll try and let you know, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants