#9392 closed defect (bug) (worksforme)
PHP notices in "Right Now" dashboard widget
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | lowest | |
Severity: | minor | Version: | 2.8 |
Component: | Warnings/Notices | Keywords: | has-patch |
Focuses: | Cc: |
Description
Some notices show up for me on the dashboard in the "Right Now" widget. Attached patch fixes them and since the code looked ugly as hell with the isset()
tests, I spaced it out to make it easier to read.
Attachments (2)
Change History (18)
#6
@
16 years ago
Haven't read, but they're consecutive tickets that Viper both reported, so I'd leave this one open.
#10
@
15 years ago
- Cc westi added
- Keywords reporter-feedback added
Testing this on 3.0-alpha with WP_DEBUG enabled and a number of different themes I don't see and notices.
Do I need a particular theme to reproduce this issue or is it just fixed?
#11
@
15 years ago
Reviewed, I do not get notices any longer as well in trunk.
While doing the review I did fidle with the bits a bit. That function should return by reference because it's handling over an object to get this PHP 4 safe.
#13
@
15 years ago
- Keywords commit added; reporter-feedback dev-feedback removed
- Milestone changed from Future Release to 3.0
I like it. It cleans things up without changing the slightest bit of functionality, and it fixes the notices. Definitely needs committer review.
#14
@
15 years ago
- Keywords commit removed
- Resolution set to worksforme
- Status changed from new to closed
The patch is pointless as far as I can see.
There are no notices.
I tested with a worse case style.css:
/* Theme Name: Bad theme Template: default */
I get no notices and checking the return from get_themes()
all those array elements are setup for all themes.
Closing as Works for Me.
maybe we should fix get_current_theme() instead