- 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-posts-list-table.php
r32644 r32654 101 101 } 102 102 103 /** 104 * 105 * @return bool 106 */ 103 107 public function ajax_user_can() { 104 108 return current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_posts ); … … 148 152 } 149 153 154 /** 155 * 156 * @return bool 157 */ 150 158 public function has_items() { 151 159 return have_posts(); … … 164 172 * @since 4.2.0 165 173 * 166 * @return bool Whether the current ivew is the "All" view.174 * @return bool Whether the current view is the "All" view. 167 175 */ 168 176 protected function is_base_request() { … … 255 263 } 256 264 265 /** 266 * 267 * @return array 268 */ 257 269 protected function get_bulk_actions() { 258 270 $actions = array(); … … 324 336 } 325 337 338 /** 339 * 340 * @return string 341 */ 326 342 public function current_action() { 327 343 if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) … … 344 360 } 345 361 362 /** 363 * 364 * @return array 365 */ 346 366 protected function get_table_classes() { 347 367 return array( 'widefat', 'fixed', 'striped', is_post_type_hierarchical( $this->screen->post_type ) ? 'pages' : 'posts' ); 348 368 } 349 369 370 /** 371 * 372 * @return array 373 */ 350 374 public function get_columns() { 351 375 $post_type = $this->screen->post_type; … … 428 452 * @param array $post_columns An array of column names. 429 453 */ 430 $posts_columns = apply_filters( "manage_{$post_type}_posts_columns", $posts_columns ); 431 432 return $posts_columns; 433 } 434 454 return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns ); 455 } 456 457 /** 458 * 459 * @return array 460 */ 435 461 protected function get_sortable_columns() { 436 462 return array( … … 489 515 * @param int $pagenum 490 516 * @param int $per_page 491 * @return false|null492 517 */ 493 518 private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) { … … 500 525 501 526 if ( ! $pages ) 502 return false;527 return; 503 528 } 504 529 … … 597 622 */ 598 623 private function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page, &$to_display ) { 599 600 624 if ( ! isset( $children_pages[$parent] ) ) 601 625 return; … … 605 629 606 630 foreach ( $children_pages[$parent] as $page ) { 607 608 631 if ( $count >= $end ) 609 632 break;
Note: See TracChangeset
for help on using the changeset viewer.