- Timestamp:
- 05/29/2015 08:16:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r32644 r32654 38 38 } 39 39 40 /** 41 * 42 * @return bool 43 */ 40 44 public function ajax_user_can() { 41 45 return current_user_can('upload_files'); … … 106 110 } 107 111 112 /** 113 * 114 * @return array 115 */ 108 116 protected function get_bulk_actions() { 109 117 $actions = array(); … … 152 160 } 153 161 162 /** 163 * 164 * @return string 165 */ 154 166 public function current_action() { 155 167 if ( isset( $_REQUEST['found_post_id'] ) && isset( $_REQUEST['media'] ) ) … … 165 177 } 166 178 179 /** 180 * 181 * @return bool 182 */ 167 183 public function has_items() { 168 184 return have_posts(); … … 222 238 } 223 239 240 /** 241 * 242 * @return array 243 */ 224 244 public function get_columns() { 225 245 $posts_columns = array(); … … 272 292 * to any posts. Default true. 273 293 */ 274 $posts_columns = apply_filters( 'manage_media_columns', $posts_columns, $this->detached ); 275 276 return $posts_columns; 277 } 278 294 return apply_filters( 'manage_media_columns', $posts_columns, $this->detached ); 295 } 296 297 /** 298 * 299 * @return array 300 */ 279 301 protected function get_sortable_columns() { 280 302 return array( … … 496 518 echo $this->row_actions( $this->_get_row_actions( $post, $att_title ) ); 497 519 } 498 520 499 521 echo '</td>'; 500 522 } … … 520 542 * @param WP_Post $post 521 543 * @param string $att_title 544 * 545 * @return array 522 546 */ 523 547 private function _get_row_actions( $post, $att_title ) { … … 568 592 * to any posts. Default true. 569 593 */ 570 $actions = apply_filters( 'media_row_actions', $actions, $post, $this->detached ); 571 572 return $actions; 594 return apply_filters( 'media_row_actions', $actions, $post, $this->detached ); 573 595 } 574 596 }
Note: See TracChangeset
for help on using the changeset viewer.