[wp-trac] [WordPress Trac] #32253: List table: posts navigation links pointing to same page
WordPress Trac
noreply at wordpress.org
Fri Aug 7 20:48:43 UTC 2015
#32253: List table: posts navigation links pointing to same page
-----------------------------------+--------------------------------
Reporter: rianrietveld | Owner: afercia
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.3
Component: Administration | Version: 4.1
Severity: normal | Resolution: fixed
Keywords: has-patch ui-feedback | Focuses: ui, accessibility
-----------------------------------+--------------------------------
Comment (by netweblogic):
Replying to [comment:22 slackbot]:
> ''This ticket was mentioned in [https://make.wordpress.org/chat/ Slack]
in #core by netweblogic.
[https://wordpress.slack.com/archives/core/p1438978903004344 View the
logs].''
This patch seems to break the display when using paginate_links in the
admin area. For example:
{{{
$return = '<div class="tablenav"><div class="tablenav-pages">';
$base = !empty($base) ? $base:esc_url_raw(add_query_arg( 'pno', '%#%' ));
$nav = paginate_links( array(
'base' => $base,
'total' => ceil($total / $limit),
'current' => $page,
'add_args' => $vars
));
$return .= sprintf( '<span class="displaying-num">Displaying %s–%s
of %s </span>%s',
number_format_i18n( ( $page - 1 ) * $limit + 1 ),
number_format_i18n( min( $page * $limit, $total ) ),
number_format_i18n( $total ),
$nav
);
$return .= '</div></div>';
}}}
ends up with this now:
[[Image(https://www.dropbox.com/s/oy5a6oa9xkg6eh9/07-08-2015%2022-18-52.png?dl=1)]]
might not be a core issue, but maybe something worth considering, anyone
else using this similarly may experience breakages in their UI.
For my situation the fix is quite straightforward, the newly added width
is the main problem causer, overriding that with an auto value for my
paginations solves the issue:
{{{
.tablenav .tablenav-pages a,
.tablenav-pages-navspan {
display: inline-block;
width: 7px;
...
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32253#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list