[wp-trac] [WordPress Trac] #46656: whitespace in exports

WordPress Trac noreply at wordpress.org
Tue Mar 26 13:37:46 UTC 2019


#46656: whitespace in exports
--------------------------+-----------------------------
 Reporter:  aristath      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Export        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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:
 https://core.trac.wordpress.org/changeset?old_path=%2Ftags%2F5.0.3%2Fsrc
 %2Fwp-
 admin%2Fincludes%2Fexport.php&old=45013&new_path=%2Ftags%2F5.1.1%2Fsrc
 %2Fwp-admin%2Fincludes%2Fexport.php&new=45013&sfp_email=&sfph_mail=#file0

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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46656>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list