Ticket #15849: placeholder.15849.diff
File placeholder.15849.diff, 4.5 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-list-table.php
647 647 } 648 648 649 649 /** 650 * Display the table or a message if there are no items650 * Display the table 651 651 * 652 652 * @since 3.1.0 653 653 * @access public 654 654 */ 655 655 function display() { 656 if ( $this->has_items() ) {657 $this->display_table();658 } else {659 ?>660 <br class="clear" />661 <p><?php $this->no_items(); ?></p>662 <?php663 }664 }665 666 /**667 * Get a list of CSS classes for the <table> tag668 *669 * @since 3.1.0670 * @access protected671 *672 * @return array673 */674 function get_table_classes() {675 return array( 'widefat', 'fixed', $this->_args['plural'] );676 }677 678 /**679 * Display the full table680 *681 * @since 3.1.0682 * @access public683 */684 function display_table() {685 656 extract( $this->_args ); 686 657 687 658 $this->display_tablenav( 'top' ); … … 701 672 </tfoot> 702 673 703 674 <tbody id="the-list"<?php if ( $singular ) echo " class='list:$singular'"; ?>> 704 <?php $this->display_rows (); ?>675 <?php $this->display_rows_or_placeholder(); ?> 705 676 </tbody> 706 677 </table> 707 678 <?php 708 709 679 $this->display_tablenav( 'bottom' ); 710 680 } 711 681 712 682 /** 683 * Get a list of CSS classes for the <table> tag 684 * 685 * @since 3.1.0 686 * @access protected 687 * 688 * @return array 689 */ 690 function get_table_classes() { 691 return array( 'widefat', 'fixed', $this->_args['plural'] ); 692 } 693 694 /** 713 695 * Generate the table navigation above or below the table 714 696 * 715 697 * @since 3.1.0 … … 749 731 * @since 3.1.0 750 732 * @access protected 751 733 */ 734 function display_rows_or_placeholder() { 735 if ( $this->has_items() ) { 736 $this->display_rows(); 737 } else { 738 echo '<tr class="no-items"><td colspan="2">'; 739 $this->no_items(); 740 echo '</td></tr>'; 741 } 742 } 743 744 /** 745 * Generate the table rows 746 * 747 * @since 3.1.0 748 * @access protected 749 */ 752 750 function display_rows() { 753 751 foreach ( $this->items as $item ) 754 752 $this->single_row( $item ); … … 823 821 extract( $this->_pagination_args ); 824 822 825 823 ob_start(); 826 $this->display_rows ();824 $this->display_rows_or_placeholder(); 827 825 $rows = ob_get_clean(); 828 826 829 827 $response = array( 'rows' => $rows ); -
wp-admin/includes/class-wp-theme-install-list-table.php
126 126 return array(); 127 127 } 128 128 129 function display _table() {129 function display() { 130 130 ?> 131 131 <div class="tablenav"> 132 132 <div class="alignleft actions"> -
wp-admin/includes/class-wp-themes-list-table.php
83 83 printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) ); 84 84 } 85 85 86 function display _table() {86 function display() { 87 87 ?> 88 88 <div class="tablenav"> 89 89 <?php $this->pagination( 'top' ); ?> -
wp-admin/includes/class-wp-comments-list-table.php
254 254 ); 255 255 } 256 256 257 function display _table() {257 function display() { 258 258 extract( $this->_args ); 259 259 260 260 $this->display_tablenav( 'top' ); -
wp-admin/edit-tags.php
241 241 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" /> 242 242 <input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" /> 243 243 244 <?php $wp_list_table->display _table(); ?>244 <?php $wp_list_table->display(); ?> 245 245 246 246 <br class="clear" /> 247 247 </form> -
wp-admin/css/global.dev.css
425 425 font-size: 11px; 426 426 } 427 427 428 .widefat .no-items td { 429 border-bottom-width: 0; 430 } 431 428 432 .widefat td { 429 433 padding: 3px 7px; 430 434 vertical-align: top;