Opened 2 years ago
Closed 16 months ago
#17431 closed defect (bug) (fixed)
"show on screen" appears twice
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | UI | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
see images attached
Attachments (7)
Change History (29)
comment:1
scribu
— 2 years ago
- Keywords needs-patch added; ui-feedback removed
- Milestone changed from Awaiting Review to 3.2
comment:2
aaroncampbell
— 2 years ago
- Version changed from 3.2 to 3.1
It's like that on my 3.1 installs as well.
comment:3
aaroncampbell
— 2 years ago
It also affects the comments and the plugins screens. The text is the same, but it is given context for translation:
<h5><?php _ex('Show on screen', 'Metaboxes') ?></h5>
...
<h5><?php _ex('Show on screen', 'Screen Options') ?></h5>
I'm honestly not sure if this one is valid. I suppose we could come up with different text like "Number per page", but I'm not sure it's really a problem the way it is.
comment:4
scribu
— 2 years ago
If the text is the same in both cases, then it's not descriptive enough.
We either make it more descriptive or only show it once.
comment:5
follow-up:
↓ 9
westi
— 2 years ago
I'm sure we have fixed a similar bug in the past.
Maybe something has returned :(
comment:8
scribu
— 2 years ago
If you take a closer look at the patch, you will see that there's a different string for columns.
comment:10
westi
— 2 years ago
Oh yeah now I remember.
This code is so ghetto and fragile and just needs a rewrite from scratch with a proper api so it doesn't do wierd stuff :(
comment:11
scribu
— 2 years ago
Sure, but until then, we can fix the simple stuff.
comment:12
dcowgill
— 2 years ago
Tested and all looks good.
comment:13
scribu
— 2 years ago
Re 17431.2.diff: what typo?
comment:14
dd32
— 2 years ago
Re 17431.2.diff : what typo?
Extra whitespace in the final string.
comment:15
scribu
— 2 years ago
Ah, finally managed to see it, on line 1793.
Note that the new patch, on line 1766, has an extra space after : and another one at EOL.
comment:16
ryan
— 2 years ago
- Keywords ux-feedback added
comment:17
ryan
— 2 years ago
- Milestone changed from 3.2 to Future Release
comment:18
azaozz
— 2 years ago
Best would be to gather all the output HTML in a var and if not empty output "Show on screen" followed by the rest of the HTML.
comment:19
jane
— 18 months ago
- Keywords ux-feedback removed
It should only be there once per screen, but it's not really a big deal. Removing ux-feedback tag and letting the devs decide how to handle it.
comment:20
nacin
— 18 months ago
Given the changes to WP_Screen, these patches are stale. Here's a new one.
comment:21
SergeyBiryukov
— 18 months ago
- Milestone changed from Future Release to 3.4
comment:22
nacin
— 16 months ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In [19943]:
Confirmed.