[wp-meta] [Making WordPress.org] #7213: GlotPress project not re-activated after a theme is unsuspended

Making WordPress.org noreply at wordpress.org
Mon Sep 25 23:29:14 UTC 2023


#7213: GlotPress project not re-activated after a theme is unsuspended
-----------------------------+---------------------
 Reporter:  dd32             |       Owner:  dd32
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Theme Directory  |  Resolution:  fixed
 Keywords:                   |
-----------------------------+---------------------

Comment (by iandunn):

 In [changeset:"12917" 12917]:
 {{{
 #!CommitTicketReference repository="" revision="12917"
 Theme Directory: Return when published to prevent duplicate imports

 `wporg_themes_glotpress_mark_as_active_on_publish()` was only intended to
 run when a suspended/delisted theme was reinstated, but it was also
 running when a new version of a published theme was uploaded. That caused
 `wporg_themes_update_wpthemescom()` to run a second time, after it was
 originally called by the import process. The second time it was called
 with the _previous_ version of the theme, though, because it ran before
 the `_status` value was updated in the database. That caused previews on
 `wp-theme.com` to always show the previous version instead of the current
 one.

 Props iandunn, dufresnesteven, paulkevan
 See #7213
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7213#comment:7>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list