Opened 22 months ago
Last modified 19 months ago
#6591 new defect (bug)
Add Note or Feedback comment Add/Editor not working
Reported by: | mayur8991 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | Developer Hub | Keywords: | has-screenshots |
Cc: |
Description
Go to Any function of wordpress
For Ex : https://developer.wordpress.org/reference/functions/wp_get_attachment_url/
Try to Add comment which having some php code
for test i'm trying to add
Ex :
<?php
$media = get_attached_media('image', $post->ID);
foreach($media as $post_images) { ?>
<img src="<?php echo esc_url(wp_get_attachment_url( $post_images->ID )); ?>" />
<?php } ?>
After adding above code switch to preview and it display completely wrong code
i have tried with inbuilt [php] & [code] none works
Check the screenshot attached
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
before