Opened 11 years ago
Closed 11 years ago
#25373 closed enhancement (fixed)
Improve the admin-bar feature comment
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Can we improve the comment for hiding the admin bar in class-wp-admin-bar.php
?
Suggested update applied.
Attachments (4)
Change History (14)
#2
@
11 years ago
That might be true actually. Either way, we could take care of the comment (or the snippet) if it's no longer in use or still needed in some way.
#3
@
11 years ago
- Keywords needs-patch added; has-patch 2nd-opinion removed
That's not a callback for hiding the toolbar. The callback controls the padding, see _admin_bar_bump_cb()
which is the default callback.
So yes, we can improve it, but with the correct description. :)
#6
@
11 years ago
Just noticed that "default" could be "browser default" or "WordPress default" so I added extra context here. Feedback?
#7
@
11 years ago
- Cc DrewAPicture added
- Milestone changed from Awaiting Review to 3.7
25373.3.patch looks good.
@DrewAPicture Can you take a look here?
#8
@
11 years ago
25373.3.patch: Looks good, just a couple of tweaks:
- We should probably say "for the Toolbar" here for consistent messaging
- Multi-line comments should be in block style
Note: See
TracTickets for help on using
tickets.
I believe this is actually legacy code from 3.1. As far as I know this method can't be used to disable the Toolbar any more. If that's actually the case, we should just remove the comment altogether.