WordPress.org

Make WordPress Core

Changeset 16109


Ignore:
Timestamp:
10/31/2010 01:29:23 AM (8 years ago)
Author:
scribu
Message:

WP_List_Table::no_items() consistency fixes. See #14579

Location:
trunk/wp-admin/includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-list-table.php

    r16061 r16109  
    617617            $this->display_table();
    618618        } else {
    619             echo '<br class="clear">';
    620             $this->extra_tablenav( 'top' );
    621             echo '<br class="clear">';
    622             echo '<p>';
    623             $this->no_items();
    624             echo '</p>';
     619?>
     620        <br class="clear">
     621        <p><?php $this->no_items(); ?></p>
     622<?php
    625623        }
    626624    }
  • trunk/wp-admin/includes/list-table-media.php

    r16073 r16109  
    129129
    130130    function no_items() {
     131        global $detached;
     132       
     133        if ( $detached ) {
     134?>
     135        <div class="tablenav">
     136            <?php $this->extra_tablenav( 'top' ); ?>
     137        </div>
     138        <br class="clear">
     139<?php
     140        }
     141
    131142        _e( 'No media attachments found.' );
    132143    }
  • trunk/wp-admin/includes/list-table-posts.php

    r16073 r16109  
    123123
    124124        if ( isset( $_REQUEST['post_status'] ) && 'trash' == $_REQUEST['post_status'] )
    125             echo $post_type_object->labels->not_found_in_trash;
     125            echo $post_type_object->labels->not_found_in_trash . '.';
    126126        else
    127             echo $post_type_object->labels->not_found;
     127            echo $post_type_object->labels->not_found . '.';
    128128    }
    129129
Note: See TracChangeset for help on using the changeset viewer.