Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#26434 closed defect (bug) (fixed)

Themes: when initiating a search, avoid triggering a reset event when it's not necessary

Reported by: matveb Owned by: nacin
Priority: normal Milestone: 3.8
Component: Customize Version: 3.8
Severity: normal Keywords:
Cc: Focuses:

Description

The first time the collection is reset we are triggering a re-rendering of the view (with exactly the same data) that is not needed at that point, as we are only preparing the data for searching. Passing silent: true should be marginally more performant.

Attachments (1)

26434.diff​ (1.0 KB ) - added by matveb 13 years ago.

Download all attachments as: .zip

Change History (4)

#1 @matveb
13 years ago

Patch above also removes a self = this assignment that can be cleaned up for this context.

#2 @nacin
13 years ago

  • Milestone Awaiting Review → 3.8

#3 @nacin
13 years ago

  • Owner set to nacin
  • Resolution → fixed
  • Status new → closed

In 26685:

Themes: when initiating a search, avoid triggering a reset event when it's not necessary.

props matveb.
fixes #26434.

Note: See TracTickets for help on using tickets.