Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#17431 closed defect (bug) (fixed)

"show on screen" appears twice

Reported by: arena's profile arena Owned by: nacin's profile nacin
Milestone: 3.4 Priority: normal
Severity: normal Version: 3.1
Component: UI Keywords: has-patch
Focuses: Cc:

Description

see images attached

Attachments (7)

Posts.jpg (18.2 KB) - added by arena 15 years ago.
Users.jpg (11.6 KB) - added by arena 15 years ago.
17431.diff (1.3 KB) - added by scribu 15 years ago.
17431.2.diff (1.2 KB) - added by dcowgill 15 years ago.
Updated diff and fixed typo.
17431.3.diff (652 bytes) - added by dcowgill 15 years ago.
Removing extra white spaces.
17431.4.diff (1.2 KB) - added by dcowgill 15 years ago.
Corrected version.
17431.5.diff (1.5 KB) - added by nacin 14 years ago.

Download all attachments as: .zip

Change History (29)

@arena
15 years ago

@arena
15 years ago

#1 @scribu
15 years ago

  • Keywords needs-patch added; ui-feedback removed
  • Milestone changed from Awaiting Review to 3.2

Confirmed.

#2 @aaroncampbell
15 years ago

  • Version changed from 3.2 to 3.1

It's like that on my 3.1 installs as well.

#3 @aaroncampbell
15 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.

#4 @scribu
15 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.

Last edited 15 years ago by scribu (previous) (diff)

#5 follow-up: @westi
15 years ago

I'm sure we have fixed a similar bug in the past.

Maybe something has returned :(

@scribu
15 years ago

#6 @scribu
15 years ago

  • Keywords has-patch added; needs-patch removed

#7 @arena
15 years ago

Not sure 'Boxes to show' will fit for columns !!??

#8 @scribu
15 years ago

If you take a closer look at the patch, you will see that there's a different string for columns.

#9 in reply to: ↑ 5 @scribu
15 years ago

Replying to westi:

I'm sure we have fixed a similar bug in the past.

Maybe something has returned :(

The context was introduced in [14636], so it was never really fixed, in this sense.

#10 @westi
15 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 :(

#11 @scribu
15 years ago

Sure, but until then, we can fix the simple stuff.

@dcowgill
15 years ago

Updated diff and fixed typo.

#12 @dcowgill
15 years ago

Tested and all looks good.

#13 @scribu
15 years ago

Re 17431.2.diff: what typo?

#14 @dd32
15 years ago

Re 17431.2.diff : what typo?

Extra whitespace in the final string.

#15 @scribu
15 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.

#16 @ryan
15 years ago

  • Keywords ux-feedback added

@dcowgill
15 years ago

Removing extra white spaces.

@dcowgill
15 years ago

Corrected version.

#17 @ryan
15 years ago

  • Milestone changed from 3.2 to Future Release

#18 @azaozz
15 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.

#19 @jane
14 years 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.

#20 @nacin
14 years ago

Given the changes to WP_Screen, these patches are stale. Here's a new one.

@nacin
14 years ago

#21 @SergeyBiryukov
14 years ago

  • Milestone changed from Future Release to 3.4

#22 @nacin
14 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [19943]:

Only show 'Show on screen' once in screen options. fixes #17431.

Note: See TracTickets for help on using tickets.