- 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-posts-list-table.php
r27964 r28493 17 17 * @access protected 18 18 */ 19 var$hierarchical_display;19 protected $hierarchical_display; 20 20 21 21 /** … … 26 26 * @access protected 27 27 */ 28 var$comment_pending_count;28 protected $comment_pending_count; 29 29 30 30 /** … … 35 35 * @access private 36 36 */ 37 var$user_posts_count;37 private $user_posts_count; 38 38 39 39 /** … … 44 44 * @access private 45 45 */ 46 var$sticky_posts_count = 0;47 48 function __construct( $args = array() ) {46 private $sticky_posts_count = 0; 47 48 public function __construct( $args = array() ) { 49 49 global $post_type_object, $wpdb; 50 50 … … 75 75 } 76 76 77 function ajax_user_can() {77 public function ajax_user_can() { 78 78 return current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_posts ); 79 79 } 80 80 81 function prepare_items() {81 public function prepare_items() { 82 82 global $avail_post_stati, $wp_query, $per_page, $mode; 83 83 … … 110 110 } 111 111 112 function has_items() {112 public function has_items() { 113 113 return have_posts(); 114 114 } 115 115 116 function no_items() {116 public function no_items() { 117 117 if ( isset( $_REQUEST['post_status'] ) && 'trash' == $_REQUEST['post_status'] ) 118 118 echo get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash; … … 121 121 } 122 122 123 function get_views() {123 protected function get_views() { 124 124 global $locked_post_status, $avail_post_stati; 125 125 … … 182 182 } 183 183 184 function get_bulk_actions() {184 protected function get_bulk_actions() { 185 185 $actions = array(); 186 186 … … 198 198 } 199 199 200 function extra_tablenav( $which ) {200 protected function extra_tablenav( $which ) { 201 201 global $cat; 202 202 ?> … … 240 240 } 241 241 242 function current_action() {242 public function current_action() { 243 243 if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) 244 244 return 'delete_all'; … … 247 247 } 248 248 249 function pagination( $which ) {249 protected function pagination( $which ) { 250 250 global $mode; 251 251 … … 256 256 } 257 257 258 function get_table_classes() {258 protected function get_table_classes() { 259 259 return array( 'widefat', 'fixed', is_post_type_hierarchical( $this->screen->post_type ) ? 'pages' : 'posts' ); 260 260 } 261 261 262 function get_columns() {262 protected function get_columns() { 263 263 $post_type = $this->screen->post_type; 264 264 … … 346 346 } 347 347 348 function get_sortable_columns() {348 protected function get_sortable_columns() { 349 349 return array( 350 350 'title' => 'title', … … 355 355 } 356 356 357 function display_rows( $posts = array(), $level = 0 ) {357 protected function display_rows( $posts = array(), $level = 0 ) { 358 358 global $wp_query, $per_page; 359 359 … … 370 370 } 371 371 372 function _display_rows( $posts, $level = 0 ) {372 private function _display_rows( $posts, $level = 0 ) { 373 373 global $mode; 374 374 … … 385 385 } 386 386 387 function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {387 private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) { 388 388 global $wpdb; 389 389 … … 477 477 * @param int $per_page 478 478 */ 479 function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page ) {479 private function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page ) { 480 480 481 481 if ( ! isset( $children_pages[$parent] ) ) … … 522 522 } 523 523 524 function single_row( $post, $level = 0 ) {524 protected function single_row( $post, $level = 0 ) { 525 525 global $mode; 526 526 static $alternate; … … 880 880 * @since 3.1.0 881 881 */ 882 function inline_edit() {882 public function inline_edit() { 883 883 global $mode; 884 884
Note: See TracChangeset
for help on using the changeset viewer.