Changeset 29137
- Timestamp:
- 07/13/2014 10:08:22 PM (11 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r28916 r29137 149 149 } 150 150 151 p ublicfunction get_views() {151 protected function get_views() { 152 152 global $post_id, $comment_status, $comment_type; 153 153 … … 202 202 } 203 203 204 p ublicfunction get_bulk_actions() {204 protected function get_bulk_actions() { 205 205 global $comment_status; 206 206 … … 226 226 } 227 227 228 p ublicfunction extra_tablenav( $which ) {228 protected function extra_tablenav( $which ) { 229 229 global $comment_status, $comment_type; 230 230 ?> … … 302 302 } 303 303 304 p ublicfunction get_sortable_columns() {304 protected function get_sortable_columns() { 305 305 return array( 306 306 'author' => 'comment_author', … … 583 583 class WP_Post_Comments_List_Table extends WP_Comments_List_Table { 584 584 585 p ublicfunction get_column_info() {585 protected function get_column_info() { 586 586 $this->_column_headers = array( 587 587 array( … … 596 596 } 597 597 598 p ublicfunction get_table_classes() {598 protected function get_table_classes() { 599 599 $classes = parent::get_table_classes(); 600 600 $classes[] = 'comments-box'; -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r29118 r29137 97 97 } 98 98 99 p rotectedfunction display_rows() {99 public function display_rows() { 100 100 global $cat_id; 101 101 -
trunk/src/wp-admin/includes/class-wp-list-table.php
r29133 r29137 334 334 * 335 335 * @since 3.1.0 336 * @access p ublic337 */ 338 p ublicfunction bulk_actions() {336 * @access protected 337 */ 338 protected function bulk_actions() { 339 339 if ( is_null( $this->_actions ) ) { 340 340 $no_new_actions = $this->_actions = $this->get_bulk_actions(); … … 763 763 * 764 764 * @since 3.1.0 765 * @access p rotected765 * @access public 766 766 * 767 767 * @param bool $with_id Whether to set the id attribute or not 768 768 */ 769 p rotectedfunction print_column_headers( $with_id = true ) {769 public function print_column_headers( $with_id = true ) { 770 770 list( $columns, $hidden, $sortable ) = $this->get_column_info(); 771 771 … … 914 914 * 915 915 * @since 3.1.0 916 * @access p rotected917 */ 918 p rotectedfunction display_rows_or_placeholder() {916 * @access public 917 */ 918 public function display_rows_or_placeholder() { 919 919 if ( $this->has_items() ) { 920 920 $this->display_rows(); … … 930 930 * 931 931 * @since 3.1.0 932 * @access p rotected933 */ 934 p rotectedfunction display_rows() {932 * @access public 933 */ 934 public function display_rows() { 935 935 foreach ( $this->items as $item ) 936 936 $this->single_row( $item ); … … 941 941 * 942 942 * @since 3.1.0 943 * @access p rotected943 * @access public 944 944 * 945 945 * @param object $item The current item 946 946 */ 947 p rotectedfunction single_row( $item ) {947 public function single_row( $item ) { 948 948 static $row_class = ''; 949 949 $row_class = ( $row_class == '' ? ' class="alternate"' : '' ); … … 1029 1029 * Send required variables to JavaScript land 1030 1030 * 1031 * @access p rivate1032 */ 1033 p rivatefunction _js_vars() {1031 * @access public 1032 */ 1033 public function _js_vars() { 1034 1034 $args = array( 1035 1035 'class' => get_class( $this ), -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r29133 r29137 233 233 } 234 234 235 p rotectedfunction display_rows() {235 public function display_rows() { 236 236 global $post; 237 237 -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r29118 r29137 251 251 } 252 252 253 p rotectedfunction display_rows() {253 public function display_rows() { 254 254 foreach ( $this->items as $theme ) 255 255 $this->single_row( $theme ); 256 256 } 257 257 258 p rotectedfunction single_row( $theme ) {258 public function single_row( $theme ) { 259 259 global $status, $page, $s, $totals; 260 260 -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r29118 r29137 140 140 } 141 141 142 p rotectedfunction display_rows() {142 public function display_rows() { 143 143 global $mode; 144 144 -
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r29118 r29137 217 217 } 218 218 219 p rotectedfunction display_rows() {219 public function display_rows() { 220 220 $plugins_allowedtags = array( 221 221 'a' => array( 'href' => array(),'title' => array(), 'target' => array() ), -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r29118 r29137 324 324 } 325 325 326 p rotectedfunction display_rows() {326 public function display_rows() { 327 327 global $status; 328 328 … … 334 334 } 335 335 336 p rotectedfunction single_row( $item ) {336 public function single_row( $item ) { 337 337 global $status, $page, $s, $totals; 338 338 -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r29118 r29137 359 359 } 360 360 361 p rotectedfunction display_rows( $posts = array(), $level = 0 ) {361 public function display_rows( $posts = array(), $level = 0 ) { 362 362 global $wp_query, $per_page; 363 363 … … 526 526 } 527 527 528 p rotectedfunction single_row( $post, $level = 0 ) {528 public function single_row( $post, $level = 0 ) { 529 529 global $mode; 530 530 static $alternate; -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r29118 r29137 145 145 } 146 146 147 p rotectedfunction display_rows_or_placeholder() {147 public function display_rows_or_placeholder() { 148 148 $taxonomy = $this->screen->taxonomy; 149 149 … … 241 241 } 242 242 243 p rotectedfunction single_row( $tag, $level = 0 ) {243 public function single_row( $tag, $level = 0 ) { 244 244 global $taxonomy; 245 245 $tag = sanitize_term( $tag, $taxonomy ); -
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r29002 r29137 177 177 } 178 178 179 p rotectedfunction display_rows() {179 public function display_rows() { 180 180 $themes = $this->items; 181 181 foreach ( $themes as $theme ) { … … 208 208 * public 'download_link' => string 'http://wordpress.org/themes/download/magazine-basic.1.1.zip' 209 209 */ 210 p rotectedfunction single_row( $theme ) {210 public function single_row( $theme ) { 211 211 global $themes_allowedtags; 212 212 … … 397 397 * 398 398 * @since 3.4.0 399 * @access p rivate399 * @access public 400 400 * 401 401 * @uses $tab Global; current tab within Themes->Install screen 402 402 * @uses $type Global; type of search. 403 403 */ 404 p rivatefunction _js_vars( $extra_args = array() ) {404 public function _js_vars( $extra_args = array() ) { 405 405 global $tab, $type; 406 406 parent::_js_vars( compact( 'tab', 'type' ) ); -
trunk/src/wp-admin/includes/class-wp-themes-list-table.php
r29118 r29137 115 115 } 116 116 117 p rotectedfunction display_rows_or_placeholder() {117 public function display_rows_or_placeholder() { 118 118 if ( $this->has_items() ) { 119 119 $this->display_rows(); … … 125 125 } 126 126 127 p rotectedfunction display_rows() {127 public function display_rows() { 128 128 $themes = $this->items; 129 129 … … 244 244 * 245 245 * @since 3.4.0 246 * @access p rivate246 * @access public 247 247 * 248 248 * @uses $this->features Array of all feature search terms. … … 250 250 * @uses _pagination_args['total_pages'] 251 251 */ 252 p rivatefunction _js_vars( $extra_args = array() ) {252 public function _js_vars( $extra_args = array() ) { 253 253 $search_string = isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : ''; 254 254 -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r28497 r29137 128 128 * 129 129 * @since 3.1.0 130 * @access p ublic130 * @access protected 131 131 * 132 132 * @return array An array of HTML links, one for each view. 133 133 */ 134 p ublicfunction get_views() {134 protected function get_views() { 135 135 global $wp_roles, $role; 136 136 … … 174 174 * 175 175 * @since 3.1.0 176 * @access p ublic176 * @access protected 177 177 * 178 178 * @return array Array of bulk actions. 179 179 */ 180 p ublicfunction get_bulk_actions() {180 protected function get_bulk_actions() { 181 181 $actions = array(); 182 182 … … 196 196 * 197 197 * @since 3.1.0 198 * @access p ublic198 * @access protected 199 199 * 200 200 * @param string $which Whether this is being invoked above ("top") 201 201 * or below the table ("bottom"). 202 202 */ 203 p ublicfunction extra_tablenav( $which ) {203 protected function extra_tablenav( $which ) { 204 204 if ( 'top' != $which ) 205 205 return; … … 273 273 * 274 274 * @since 3.1.0 275 * @access p ublic275 * @access protected 276 276 * 277 277 * @return array Array of sortable columns. 278 278 */ 279 p ublicfunction get_sortable_columns() {279 protected function get_sortable_columns() { 280 280 $c = array( 281 281 'username' => 'login', -
trunk/src/wp-admin/includes/list-table.php
r28531 r29137 100 100 } 101 101 102 p ublicfunction get_column_info() {102 protected function get_column_info() { 103 103 $columns = get_column_headers( $this->_screen ); 104 104 $hidden = get_hidden_columns( $this->_screen );
Note: See TracChangeset
for help on using the changeset viewer.