WordPress.org

Make WordPress Core

Changes between Initial Version and Version 6 of Ticket #27188


Ignore:
Timestamp:
02/24/2014 09:08:19 PM (6 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27188

    • Property Summary changed from deactived_plugin behaves improperly to deactivated_plugin behaves improperly
    • Property Version changed from trunk to 2.9
    • Property Milestone changed from Awaiting Review to 3.9
    • Property Keywords has-patch added
  • Ticket #27188 – Description

    initial v6  
    1414}}}
    1515
    16 The plugin still shows that it is active. So if I hook in here to check if plugin has been deactivated, then it fails. Instead, the `deactived_plugin` hook should appear after the `update_option` call, which is where the plugin is actually deactivated.
     16The plugin still shows that it is active. So if I hook in here to check if plugin has been deactivated, then it fails. Instead, the `deactivated_plugin` hook should appear after the `update_option` call, which is where the plugin is actually deactivated.
    1717
    1818OR, the docs are wrong and should be updated.
    1919
    20 Attached is a sample addthis plugin extension that deactivates after Addthis is deactived by being forced to use `update_option_active_plugins` and `update_option_active_sitewide_plugins`.
     20Attached is a sample addthis plugin extension that deactivates after Addthis is deactivated by being forced to use `update_option_active_plugins` and `update_option_active_sitewide_plugins`.
    2121
    2222See [https://gist.github.com/wpsmith/26c2e07370ee8b4c3e3f Github Gist sample plugin] for [http://wordpress.org/plugins/addthis/ Addthis].