Remove the "See more" toggle from the At a Glance dashboard widget. Fixes #26614.
git-svn-id: https://develop.svn.wordpress.org/trunk@27583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a053f70f11
commit
d91dd88edc
@ -664,12 +664,6 @@ form.initial-form.quickpress-open input#title {
|
||||
padding: 8px 12px 4px;
|
||||
}
|
||||
|
||||
#future-posts .show-more,
|
||||
#published-posts .show-more {
|
||||
float: right;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
#future-posts ul,
|
||||
#published-posts ul {
|
||||
clear: both;
|
||||
|
@ -530,7 +530,6 @@ function wp_dashboard_site_activity() {
|
||||
echo '<div id="activity-widget">';
|
||||
|
||||
$future_posts = wp_dashboard_recent_posts( array(
|
||||
'display' => 2,
|
||||
'max' => 5,
|
||||
'status' => 'future',
|
||||
'order' => 'ASC',
|
||||
@ -538,7 +537,6 @@ function wp_dashboard_site_activity() {
|
||||
'id' => 'future-posts',
|
||||
) );
|
||||
$recent_posts = wp_dashboard_recent_posts( array(
|
||||
'display' => 2,
|
||||
'max' => 5,
|
||||
'status' => 'publish',
|
||||
'order' => 'DESC',
|
||||
@ -566,8 +564,7 @@ function wp_dashboard_site_activity() {
|
||||
* @param array $args {
|
||||
* An array of query and display arguments.
|
||||
*
|
||||
* @type int $display Number of posts to display.
|
||||
* @type int $max Maximum number of posts to query.
|
||||
* @type int $max Number of posts to display.
|
||||
* @type string $status Post status.
|
||||
* @type string $order Designates ascending ('ASC') or descending ('DESC') order.
|
||||
* @type string $title Section title.
|
||||
@ -591,10 +588,6 @@ function wp_dashboard_recent_posts( $args ) {
|
||||
|
||||
echo '<div id="' . $args['id'] . '" class="activity-block">';
|
||||
|
||||
if ( $posts->post_count > $args['display'] ) {
|
||||
echo '<small class="show-more hide-if-no-js"><a href="#">' . sprintf( __( 'See %s more…'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>';
|
||||
}
|
||||
|
||||
echo '<h4>' . $args['title'] . '</h4>';
|
||||
|
||||
echo '<ul>';
|
||||
@ -625,9 +618,7 @@ function wp_dashboard_recent_posts( $args ) {
|
||||
_draft_or_post_title()
|
||||
);
|
||||
|
||||
$hidden = $i >= $args['display'] ? ' class="hidden"' : '';
|
||||
echo "<li{$hidden}>$text</li>";
|
||||
$i++;
|
||||
echo "<li>$text</li>";
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
|
@ -123,12 +123,6 @@ jQuery(document).ready( function($) {
|
||||
|
||||
$( '.meta-box-sortables' ).sortable( 'option', 'containment', 'document' );
|
||||
|
||||
// Activity Widget
|
||||
$( '.show-more a' ).on( 'click', function(e) {
|
||||
$( this ).fadeOut().closest('.activity-block').find( 'li.hidden' ).fadeIn().removeClass( 'hidden' );
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
function autoResizeTextarea() {
|
||||
// Add a hidden div. We'll copy over the text from the textarea to measure its height.
|
||||
$('body').append( '<div class="quick-draft-textarea-clone" style="display: none;"></div>' );
|
||||
|
Loading…
Reference in New Issue
Block a user