- Timestamp:
- 05/19/2014 01:16:16 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r28293 r28493 10 10 class WP_Media_List_Table extends WP_List_Table { 11 11 12 function __construct( $args = array() ) {12 public function __construct( $args = array() ) { 13 13 $this->detached = isset( $_REQUEST['detached'] ) || isset( $_REQUEST['find_detached'] ); 14 14 … … 19 19 } 20 20 21 function ajax_user_can() {21 public function ajax_user_can() { 22 22 return current_user_can('upload_files'); 23 23 } 24 24 25 function prepare_items() {25 public function prepare_items() { 26 26 global $lost, $wp_query, $post_mime_types, $avail_post_mime_types; 27 27 … … 42 42 } 43 43 44 function get_views() {44 protected function get_views() { 45 45 global $wpdb, $post_mime_types, $avail_post_mime_types; 46 46 … … 75 75 } 76 76 77 function get_bulk_actions() {77 protected function get_bulk_actions() { 78 78 $actions = array(); 79 79 $actions['delete'] = __( 'Delete Permanently' ); … … 84 84 } 85 85 86 function extra_tablenav( $which ) {86 protected function extra_tablenav( $which ) { 87 87 ?> 88 88 <div class="alignleft actions"> … … 105 105 } 106 106 107 function current_action() {107 public function current_action() { 108 108 if ( isset( $_REQUEST['find_detached'] ) ) 109 109 return 'find_detached'; … … 118 118 } 119 119 120 function has_items() {120 public function has_items() { 121 121 return have_posts(); 122 122 } 123 123 124 function no_items() {124 public function no_items() { 125 125 _e( 'No media attachments found.' ); 126 126 } 127 127 128 function get_columns() {128 protected function get_columns() { 129 129 $posts_columns = array(); 130 130 $posts_columns['cb'] = '<input type="checkbox" />'; … … 181 181 } 182 182 183 function get_sortable_columns() {183 protected function get_sortable_columns() { 184 184 return array( 185 185 'title' => 'title', … … 191 191 } 192 192 193 function display_rows() {193 protected function display_rows() { 194 194 global $post; 195 195 … … 422 422 } 423 423 424 function _get_row_actions( $post, $att_title ) {424 private function _get_row_actions( $post, $att_title ) { 425 425 $actions = array(); 426 426
Note: See TracChangeset
for help on using the changeset viewer.