Fix PHP Warning on 'Add new product' page (https://github.com/woocommerce/woocommerce-admin/pull/7989)
* Fix method call * Add changelog * Add testing instructions Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
This commit is contained in:
parent
faf5d61f25
commit
7ea82c7778
|
@ -1,5 +1,15 @@
|
|||
# Testing instructions
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fix PHP Warning on 'Add new product' page
|
||||
|
||||
0. On a Jurassic Ninja site.
|
||||
1. Go to **WooCommerce** > **Home**.
|
||||
2. Press **Add my products** in the task list.
|
||||
3. Press **Add manually**.
|
||||
4. No PHP warning should be visible.
|
||||
|
||||
## 3.0.0
|
||||
|
||||
### Onboarding Workflow - Add number of employees field
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: Fix
|
||||
|
||||
Fix PHP Warning on 'Add new product' page #7989
|
|
@ -318,7 +318,7 @@ abstract class Task {
|
|||
* Set this as the active task across page loads.
|
||||
*/
|
||||
public function set_active() {
|
||||
if ( $this->is_complete ) {
|
||||
if ( $this->is_complete() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue