Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #57183, comment 2


Ignore:
Timestamp:
11/23/2022 11:57:48 AM (17 months ago)
Author:
riccardodicurti
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57183, comment 2

    v1 v2  
    77
    88I was looking at the code again, do you decrease the number of updates even if you delete a theme that doesn't need to be updated? I'm wrong?
     9
     10If you look a little above you can take a hint from here:
     11
     12
     13{{{
     14// Remove theme from update count.
     15if ( -1 !== _.indexOf( themes.upgrade, response.slug ) ) {
     16   themes.upgrade = _.without( themes.upgrade, response.slug );
     17   wp.updates.decrementCount( 'theme' );
     18}
     19}}}