Make WordPress Core

Opened 4 weeks ago

Last modified 3 weeks ago

#60418 new defect (bug)

Unwanted commented code

Reported by: asgmehra's profile asgmehra Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.4.3
Component: General Keywords: has-screenshots needs-testing-info
Focuses: ui, javascript, css, administration, template Cc:

Description

There are unwanted PHP commented code line showing when I update the wordpress theme. Test case: I have commented html code with PHP comment syntax in theme's functions.php file and then I start the theme to update on the "Updates" page. But when theme is updated, that commented code showing at top (Screenshot attached). I don't know it is a bug or not.

Attachments (1)

screenshot-localhost-2024.02.01-22_23_03.png (89.2 KB) - added by asgmehra 4 weeks ago.

Download all attachments as: .zip

Change History (4)

#1 @ajmcfadyen
3 weeks ago

Hi asgmehra,

What plugins and theme are you using? I think this issue may be caused by custom code or a 3rd party plugin.

Could you please confirm that the issue occurs with only the WooCommerce plugin enabled and a core theme active?

If modifying a theme it's best to use a child-theme rather than updating the theme directly; because future updates to the theme could override your edits.

This ticket was mentioned in Slack in #core-test by ankit-k-gupta. View the logs.


3 weeks ago

#3 @krupajnanda
3 weeks ago

  • Focuses administration added
  • Keywords needs-testing-info added

Hi @asgmehra,

Could you please check the same by deactivating all the plugins and see if the error still persists at your end? Also, if you can share the test environment details then it would be helpful us to further investigate the issue.

Thanks

Note: See TracTickets for help on using tickets.