Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#28924 closed defect (bug) (fixed)

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

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

Description

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
10 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.