Ticket #24716: move_view_switcher_to_left.patch
File move_view_switcher_to_left.patch, 2.4 KB (added by , 11 years ago) |
---|
-
wp-admin/css/list-tables-rtl.css
614 614 } 615 615 616 616 .view-switch { 617 float: left;617 float: right; 618 618 margin: 5px 8px 0 16px; 619 619 } 620 620 -
wp-admin/css/list-tables.css
614 614 } 615 615 616 616 .view-switch { 617 float: right;617 float:left; 618 618 margin: 5px 16px 0 8px; 619 619 } 620 620 -
wp-admin/includes/class-wp-list-table.php
896 896 wp_nonce_field( 'bulk-' . $this->_args['plural'] ); 897 897 ?> 898 898 <div class="tablenav <?php echo esc_attr( $which ); ?>"> 899 <?php 900 $this->pre_bulk_actions( $which ); ?> 899 901 900 902 <div class="alignleft actions bulkactions"> 901 903 <?php $this->bulk_actions(); ?> … … 1050 1052 1051 1053 printf( "<script type='text/javascript'>list_args = %s;</script>\n", json_encode( $args ) ); 1052 1054 } 1055 1056 /** 1057 * Perform any actions or inject additional html before the bulk actions 1058 * @param string $which Top or bottom 1059 * @since 4.0 1060 * @access protected 1061 */ 1062 protected function pre_bulk_actions( $which ) { 1063 1064 } 1053 1065 } -
wp-admin/includes/class-wp-media-list-table.php
1 1 <?php 2 2 3 /** 3 4 * Media Library List Table class. 4 5 * … … 106 107 <?php 107 108 } 108 109 110 /** 111 * Inserting view switcher before the bulk actions 112 * @param string $which Top or bottom 113 * @since 4.0 114 * @access protected 115 */ 116 protected function pre_bulk_actions( $which ) { 117 global $mode; 118 $this->view_switcher( $mode ); 119 } 120 109 121 public function current_action() { 110 122 if ( isset( $_REQUEST['find_detached'] ) ) 111 123 return 'find_detached'; … … 127 139 _e( 'No media attachments found.' ); 128 140 } 129 141 130 protected function pagination( $which ) {131 global $mode;132 133 parent::pagination( $which );134 135 $this->view_switcher( $mode );136 }137 138 142 /** 139 143 * Display a view switcher 140 144 *