WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#19258 closed defect (bug) (invalid)

Parse error when leaving edit-post without saving

Reported by: DrewAPicture Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

I started writing a post, entered some text then changed my mind. I clicked out to a different menu, when prompted I clicked to leave the page without saving changes and received this error:

Parse error: syntax error, unexpected T_SL in (...)/wp-admin/includes/class-wp-posts-list-table.php on line 556

Note: The error appears even if a draft has previously been saved.

Repro:

  1. Posts -> Add New
  2. Enter some text in the editor
  3. Click another menu/link to leave the editing page
  4. Click to confirm the "Are you sure?" dialog to leave without saving

Change History (3)

comment:1 nacin2 years ago

nacin$ php -l wp-admin/includes/class-wp-posts-list-table.php
No syntax errors detected in wp-admin/includes/class-wp-posts-list-table.php

Any chance you have some cruft on your install? Try running a diff.

comment:2 DrewAPicture2 years ago

  • Resolution set to invalid
  • Status changed from new to closed
  • Version 3.3 deleted

comment:3 SergeyBiryukov2 years ago

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