Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#46656 closed defect (bug) (duplicate)

whitespace in exports

Reported by: aristath's profile aristath Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2
Component: Export Keywords:
Focuses: Cc:


The issue: extra spacing gets added before elements. This causes things like title attributes in menus to break, content build using a page-builder to stop working etc.

This was done is this commit which broke the export functionality for us - or rather it broke content that gets imported on a site if said content has been exported using WP 5.1.1:

This was probably a coding-standards "fix" so things like this:
were replaced, the opening PHP tag went to the line below and indented. That indentation messes up things.

Change History (3)

#1 @aristath
5 years ago

This is a bug introduced in 5.1.1 and reverting the commit fixes the issue, so that is the simplest and fastest way to handle this. I'm not attaching a patch, if we don't want to revert the commit there are ways to fix it but not as simple or fast.

Last edited 5 years ago by aristath (previous) (diff)

#2 @sgastard
5 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

#3 @desrosj
5 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.