Make WordPress Core

Opened 5 years ago

Last modified 3 years ago

#46637 new defect (bug)

Corrupted functions.php file after editing in built-in theme editor

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.6.1
Component: Themes Keywords:
Focuses: Cc:


Got at least two reports of the following scenario.

When editing the functions.php file of a theme, WordPress says: "Unable to communicate back with site to check for fatal errors, so the PHP change was reverted." However, the reverted file has 0 bytes length, and has to be recovered from a backup copy.

From what I can see, this can only happen in two cases:

Don't have any more details at this point, created the ticket as a reference for investigation.

Change History (1)

#1 @muhammedswalihct
3 years ago

  • Version set to 5.6.1

I am also facing this exact same issue. Lost the entire functions.php file due to this.

Note: See TracTickets for help on using tickets.