Make WordPress Core


Ignore:
Timestamp:
04/05/2019 03:32:31 PM (6 years ago)
Author:
flixos90
Message:

Bootstrap/Load: Remove extension from the list of paused extensions when it is deactivated.

With this change, fatal errors recorded before a plugin was deactivated or a theme was switched away from do not persist. This ensures that re-enabling it re-checks for fatal errors correctly.

Props aandrewdixon, dhanukanuwan, henrywright.
Fixes #46812.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r45114 r45115  
    767767                unset( $current[ $key ] );
    768768            }
     769        }
     770
     771        if ( $do_blog && wp_is_recovery_mode() ) {
     772            list( $extension ) = explode( '/', $plugin );
     773            wp_paused_plugins()->delete( $extension );
    769774        }
    770775
Note: See TracChangeset for help on using the changeset viewer.