#15228 closed defect (bug) (fixed)
Hello Dolly can't cope with the admin bar
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.1 | Priority: | highest omg bbq |
Severity: | normal | Version: | 3.1 |
Component: | Administration | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
And given the choice to deactivate Hello Dolly or turn off the admin bar, I had no choice but to turn off the admin bar.
Screenshot attached.
Attachments (2)
Change History (15)
#3
@
14 years ago
- Keywords 2nd-opinion has-patch needs-testing added; needs-patch removed
Added jQuery code to check the location of #wp-head and to change the position of #dolly accordingly.
Patch - hello.diff
PS - This is my first patch. Please point mistakes. Thanks.
#4
@
14 years ago
- Cc sbressler@… added
This is just about the most amusing bug I have seen :)
Using JS to position the text is too heavy-weight for a plugin that's meant to showcase the simplicity of writing a plugin. Absolute position in general is lackluster. Either remove the positioning and just attach the output to an appropriate admin filter or explicitly check for the existence of the admin bar.
#5
follow-up:
↓ 13
@
14 years ago
- Keywords needs-codex added; needs-testing removed
Okay. So here's a new one, this uses admin_notices action and works good. But there doesn't seems to be a documentation for admin_notices. Could anybody add that?
Attaching hello.diff
#9
@
14 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
admin_notices is only for the blog admin. We'll need to use all_admin_notices here.
That's annoying however, as linking both will mean that you'll get it twice, and adding all three (network, user) doesn't scale if we ever come up with a fourth. I've proposed a change to the functionality in #14696. If that goes through, this can be re-closed as fixed.
#11
follow-up:
↓ 12
@
14 years ago
@nacin Does that really mean I fixed my first bug in WordPress? :D
As @sbressler said, this plugin showcases simplicity of writing a plugin. I feel there should be some codex docs for the actions.
#12
in reply to:
↑ 11
@
14 years ago
Replying to kapeels:
@nacin Does that really mean I fixed my first bug in WordPress? :D
Yes! Congratulations. :)
As @sbressler said, this plugin showcases simplicity of writing a plugin. I feel there should be some codex docs for the actions.
It would be cool to eventually add some more inline documentation and comments, a la Twenty Ten.
Not looking so swell here :-(