#23807 closed defect (bug) (fixed)
PHP Strict Mode : Bulk_Plugin_Upgrader_Skin::before() warning
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | minor | Version: | 3.5.1 |
Component: | Warnings/Notices | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
This is from core WP 3.5.1 on my dev box while installing the Debug Bar plugin. This is not the first plugin to trigger this message while testing. I do have strict mode and full warnings/debug messages enabled throughout WordPress and PHP.
Strict Standards: Declaration of Bulk_Plugin_Upgrader_Skin::before() should be compatible with that of Bulk_Upgrader_Skin::before() in /var/www/html/wp-admin/includes/class-wp-upgrader.php on line 1359 Strict Standards: Declaration of Bulk_Plugin_Upgrader_Skin::after() should be compatible with that of Bulk_Upgrader_Skin::after() in /var/www/html/wp-admin/includes/class-wp-upgrader.php on line 1359 Strict Standards: Declaration of Bulk_Theme_Upgrader_Skin::before() should be compatible with that of Bulk_Upgrader_Skin::before() in /var/www/html/wp-admin/includes/class-wp-upgrader.php on line 1394 Strict Standards: Declaration of Bulk_Theme_Upgrader_Skin::after() should be compatible with that of Bulk_Upgrader_Skin::after() in /var/www/html/wp-admin/includes/class-wp-upgrader.php on line 1394
Attachments (1)
Change History (7)
#1
@
12 years ago
- Component changed from Upgrade/Install to Warnings/Notices
- Description modified (diff)
- Milestone changed from Awaiting Review to 3.6
#2
@
12 years ago
- Owner set to ryan
- Resolution set to fixed
- Status changed from new to closed
In 23749:
#3
follow-up:
↓ 4
@
11 years ago
Does Bulk_Upgrader_Skin
also have to match the declarations of the above methods in WP_Upgrader_Skin
?
#4
in reply to:
↑ 3
@
11 years ago
Replying to soulseekah:
Does
Bulk_Upgrader_Skin
also have to match the declarations of the above methods inWP_Upgrader_Skin
?
Well, it doesn't produce the strict standards warning, so I guess we're good. As far as I can see, adding new optional arguments in overridden methods is fine, removing or changing existing arguments is not.
Note: See
TracTickets for help on using
tickets.
I believe this patch addresses the problem.