mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
Better docs for Plugin_Upgrader::deactivate_plugin_before_upgrade()
. Props DrewAPicture. Fixes #29088.
git-svn-id: https://develop.svn.wordpress.org/trunk@30762 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d948f0bf32
commit
fce20e9784
@ -1015,9 +1015,11 @@ class Plugin_Upgrader extends WP_Upgrader {
|
|||||||
* Hooked to the {@see 'upgrader_pre_install'} filter by {@see Plugin_Upgrader::upgrade()}.
|
* Hooked to the {@see 'upgrader_pre_install'} filter by {@see Plugin_Upgrader::upgrade()}.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
|
* @since 4.1.0 Added a return value.
|
||||||
*
|
*
|
||||||
* @param bool|WP_Error $return Upgrade offer return.
|
* @param bool|WP_Error $return Upgrade offer return.
|
||||||
* @param array $plugin Plugin package arguments.
|
* @param array $plugin Plugin package arguments.
|
||||||
|
* @return bool|WP_Error The passed in $return param or {@see WP_Error}.
|
||||||
*/
|
*/
|
||||||
public function deactivate_plugin_before_upgrade($return, $plugin) {
|
public function deactivate_plugin_before_upgrade($return, $plugin) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user