Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#28924 closed defect (bug) (fixed)

Local autosave may throw error for suspend() and resume()

Reported by: azaozz Owned by: azaozz
Milestone: 4.0 Priority: normal
Severity: normal Version: 3.9
Component: Autosave Keywords:
Focuses: Cc:


In (the rare) case when the browser doesn't support sessionStorage, wp.autosave.local returns early and doesn't expose any methods. Plugins that are trying to use any of them would trigger an error unless they check specifically if the method exists.

Ideally it should always expose the methods and they should return early when the browser doesn't support sessionStorage.

Change History (1)

#1 @azaozz
7 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 29192:

Autosave: always expose the wp.autosave.local methods, fixes #28924.

Note: See TracTickets for help on using tickets.