Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27558 closed defect (bug) (fixed)

WP Views need to load some sort of "no items found" placeholder view if the item(s) needed for the preview are not found

Reported by: gcorne's profile gcorne Owned by: azaozz's profile azaozz
Milestone: 3.9 Priority: normal
Severity: major Version: 3.9
Component: Editor Keywords: has-patch commit ui-feedback
Focuses: javascript Cc:

Description

WP Views work by replacing the shortcode with a placeholder that is then filled with a preview after data is retrieved for the view via ajax calls. If there isn't any data, we need to populate the preview with some sort of "no items found" content body so that the view can be edited and is visible.

Attachments (2)

gallery-no-items.png (104.1 KB) - added by gcorne 10 years ago.
Look-and-feel of gallery with no items found
27558-01.patch (4.3 KB) - added by gcorne 10 years ago.

Download all attachments as: .zip

Change History (5)

#1 @gcorne
10 years ago

27558-01.patch adds a "No items found." state which is displayed when rendering the gallery wpview when no attachments are found and an ajax call to fetch attachments is not in progress.

@gcorne
10 years ago

Look-and-feel of gallery with no items found

#2 @gcorne
10 years ago

  • Keywords has-patch commit ui-feedback added

@gcorne
10 years ago

#3 @azaozz
10 years ago

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

In 27899:

Gallery preview: add a "No items found" state which is displayed when rendering the gallery wpview and no attachments are found. Props gcorne, fixes #27558

Note: See TracTickets for help on using tickets.