WordPress.org

Making WordPress.org

Opened 2 years ago

Closed 23 months ago

#2475 closed defect (fixed)

Remove themes from wp-themes.com upon theme status moving to draft in addition to being suspended.

Reported by: dd32 Owned by: Otto42
Milestone: Priority: normal
Component: Theme Directory Keywords: has-patch
Cc:

Description

Right now we remove themes from wp-themes.com upon theme suspension, but not upon the status of the theme being moved back to Draft.

This causes problems when themes are delisted, but not suspended. An example of this is when the theme causes PHP fatal errors, which with the move to PHP7 recently is much more common - those themes are being moved to draft to allow the author to fix the problem, rather than being outright suspended.

tl;dr: Upon status = draft, call wporg_themes_remove_wpthemescom( $theme_slug ).

Attachments (1)

meta-2475.patch (979 bytes) - added by SergeyBiryukov 2 years ago.

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
2 years ago

  • Keywords has-patch added; needs-patch removed

#2 @Otto42
23 months ago

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

In 5572:

Theme Directory: Remove theme from previewer on move to draft. Fixes #2475, props @SergeyBiryukov

Note: See TracTickets for help on using tickets.