Changeset 48162
- Timestamp:
- 06/25/2020 08:54:40 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r48151 r48162 373 373 374 374 /** 375 * Get an associative array ( id => link ) with the list 376 * of views available on this table. 375 * Gets the list of views available on this table. 376 * 377 * The format is an associative array: 378 * - `'id' => 'link'` 377 379 * 378 380 * @since 3.1.0 … … 385 387 386 388 /** 387 * Display the list of views available on this table.389 * Displays the list of views available on this table. 388 390 * 389 391 * @since 3.1.0 … … 418 420 419 421 /** 420 * Get an associative array ( option_name => option_title ) with the list 421 * of bulk actions available on this table. 422 * Gets the list of bulk actions available on this table. 423 * 424 * The format is an associative array: 425 * - `'option_name' => 'option_title'` 422 426 * 423 427 * @since 3.1.0 … … 430 434 431 435 /** 432 * Display the bulk actions dropdown.436 * Displays the bulk actions dropdown. 433 437 * 434 438 * @since 3.1.0 … … 440 444 if ( is_null( $this->_actions ) ) { 441 445 $this->_actions = $this->get_bulk_actions(); 446 442 447 /** 443 448 * Filters the list table Bulk Actions drop-down. … … 453 458 */ 454 459 $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores 455 $two = ''; 460 461 $two = ''; 456 462 } else { 457 463 $two = '2'; … … 479 485 480 486 /** 481 * Get the current action selected from the bulk actions dropdown.482 * 483 * @since 3.1.0 484 * 485 * @return string|false The action name or False if no action was selected487 * Gets the current action selected from the bulk actions dropdown. 488 * 489 * @since 3.1.0 490 * 491 * @return string|false The action name. False if no action was selected. 486 492 */ 487 493 public function current_action() { … … 620 626 621 627 /** 622 * Display a view switcher628 * Displays a view switcher. 623 629 * 624 630 * @since 3.1.0 … … 652 658 653 659 /** 654 * Display a comment count bubble660 * Displays a comment count bubble. 655 661 * 656 662 * @since 3.1.0 … … 746 752 747 753 /** 748 * Get the current page number754 * Gets the current page number. 749 755 * 750 756 * @since 3.1.0 … … 763 769 764 770 /** 765 * Get number of items to display on a single page771 * Gets the number of items to display on a single page. 766 772 * 767 773 * @since 3.1.0 … … 794 800 795 801 /** 796 * Display the pagination.802 * Displays the pagination. 797 803 * 798 804 * @since 3.1.0 … … 934 940 935 941 /** 936 * Get a list of columns. The format is: 937 * 'internal-name' => 'Title' 942 * Gets a list of columns. 943 * 944 * The format is: 945 * - `'internal-name' => 'Title'` 938 946 * 939 947 * @since 3.1.0 … … 947 955 948 956 /** 949 * Get a list of sortable columns.957 * Gets a list of sortable columns. 950 958 * 951 959 * The format is: 952 960 * - `'internal-name' => 'orderby'` 953 * - `'internal-name' => array( 'orderby', 'asc' )` - The second element set the initial sorting order.954 * - `'internal-name' => array( 'orderby', true )` - The second element will make the initial sorting order bedescending.961 * - `'internal-name' => array( 'orderby', 'asc' )` - The second element sets the initial sorting order. 962 * - `'internal-name' => array( 'orderby', true )` - The second element makes the initial order descending. 955 963 * 956 964 * @since 3.1.0 … … 1037 1045 1038 1046 /** 1039 * Get a list of all, hidden and sortable columns, with filter applied1047 * Gets a list of all, hidden and sortable columns, with filter applied. 1040 1048 * 1041 1049 * @since 3.1.0 … … 1093 1101 1094 1102 /** 1095 * Return number of visible columns1103 * Returns the number of visible columns. 1096 1104 * 1097 1105 * @since 3.1.0 … … 1106 1114 1107 1115 /** 1108 * Print column headers, accounting for hidden and sortable columns.1116 * Prints column headers, accounting for hidden and sortable columns. 1109 1117 * 1110 1118 * @since 3.1.0 … … 1158 1166 1159 1167 if ( $current_orderby === $orderby ) { 1160 $order = 'asc' === $current_order ? 'desc' : 'asc'; 1168 $order = 'asc' === $current_order ? 'desc' : 'asc'; 1169 1161 1170 $class[] = 'sorted'; 1162 1171 $class[] = $current_order; … … 1167 1176 $order = $desc_first ? 'desc' : 'asc'; 1168 1177 } 1178 1169 1179 $class[] = 'sortable'; 1170 1180 $class[] = 'desc' === $order ? 'asc' : 'desc'; … … 1227 1237 1228 1238 /** 1229 * Get a list of CSS classes for the WP_List_Table table tag.1239 * Gets a list of CSS classes for the WP_List_Table table tag. 1230 1240 * 1231 1241 * @since 3.1.0 … … 1238 1248 1239 1249 /** 1240 * Generate the table navigation above or below the table1250 * Generates the table navigation above or below the table 1241 1251 * 1242 1252 * @since 3.1.0 … … 1266 1276 1267 1277 /** 1268 * Extra controls to be displayed between bulk actions and pagination 1278 * Extra controls to be displayed between bulk actions and pagination. 1269 1279 * 1270 1280 * @since 3.1.0 … … 1275 1285 1276 1286 /** 1277 * Generate the tbody element for the list table.1287 * Generates the tbody element for the list table. 1278 1288 * 1279 1289 * @since 3.1.0 … … 1290 1300 1291 1301 /** 1292 * Generate the table rows1302 * Generates the table rows. 1293 1303 * 1294 1304 * @since 3.1.0 … … 1301 1311 1302 1312 /** 1303 * Generates content for a single row of the table 1313 * Generates content for a single row of the table. 1304 1314 * 1305 1315 * @since 3.1.0 … … 1325 1335 1326 1336 /** 1327 * Generates the columns for a single row of the table 1328 * 1329 * @since 3.1.0 1330 * 1331 * @param object $item The current item 1337 * Generates the columns for a single row of the table. 1338 * 1339 * @since 3.1.0 1340 * 1341 * @param object $item The current item. 1332 1342 */ 1333 1343 protected function single_row_columns( $item ) { … … 1392 1402 1393 1403 /** 1394 * Handle an incoming ajax request (called from admin-ajax.php)1404 * Handles an incoming ajax request (called from admin-ajax.php) 1395 1405 * 1396 1406 * @since 3.1.0 … … 1426 1436 1427 1437 /** 1428 * Send required variables to JavaScript land 1438 * Sends required variables to JavaScript land. 1439 * 1440 * @since 3.1.0 1429 1441 */ 1430 1442 public function _js_vars() {
Note: See TracChangeset
for help on using the changeset viewer.