4 lat temu link-template.php d01d7cf85d first commit 4 lat temu load.php d01d7cf85d first commit 4 lat temu locale.php d01d7cf85d first commit 4 lat temu media-template.php d01d7cf85d first commit 4 lat temu media.php d01d7cf85d first commit 4 lat temu meta.php d01d7cf85d first commit 4 lat temu ms-blogs.php d01d7cf85d first commit 4 lat temu ms-default-constants.php d01d7cf85d first commit 4 lat temu ms-default-filters.php d01d7cf85d first commit 4 lat temu ms-deprecated.php d01d7cf85d first commit 4 lat temu ms-files.php d01d7cf85d first commit 4 lat temu ms-functions.php d01d7cf85d first commit 4 lat temu ms-load.php d01d7cf85d first commit 4 lat temu ms-network.php d01d7cf85d first commit 4 lat temu ms-settings.php d01d7cf85d first commit 4 lat temu ms-site.php d01d7cf85d first commit 4 lat temu nav-menu-template.php d01d7cf85d first commit 4 lat temu nav-menu.php d01d7cf85d first commit 4 lat temu option.php d01d7cf85d first commit 4 lat temu pluggable-deprecated.php d01d7cf85d first commit 4 lat temu pluggable.php d01d7cf85d first commit 4 lat temu plugin.php d01d7cf85d first commit 4 lat temu post-formats.php d01d7cf85d first commit 4 lat temu post-template.php d01d7cf85d first commit 4 lat temu post-thumbnail-template.php d01d7cf85d first commit 4 lat temu post.php d01d7cf85d first commit 4 lat temu query.php d01d7cf85d first commit 4 lat temu registration-functions.php d01d7cf85d first commit 4 lat temu registration.php d01d7cf85d first commit 4 lat temu rest-api.php d01d7cf85d first commit 4 lat temu revision.php d01d7cf85d first commit 4 lat temu rewrite.php d01d7cf85d first commit 4 lat temu robots-template.php d01d7cf85d first commit 4 lat temu rss-functions.php d01d7cf85d first commit 4 lat temu rss.php d01d7cf85d first commit 4 lat temu script-loader.php d01d7cf85d first commit 4 lat temu session.php d01d7cf85d first commit 4 lat temu shortcodes.php d01d7cf85d first commit 4 lat temu sitemaps.php d01d7cf85d first commit 4 lat temu spl-autoload-compat.php d01d7cf85d first commit 4 lat temu taxonomy.php d01d7cf85d first commit 4 lat temu template-canvas.php d01d7cf85d first commit 4 lat temu template-loader.php d01d7cf85d first commit 4 lat temu template.php d01d7cf85d first commit 4 lat temu theme-i18n.json d01d7cf85d first commit 4 lat temu theme-templates.php d01d7cf85d first commit 4 lat temu theme.json d01d7cf85d first commit 4 lat temu theme.php d01d7cf85d first commit 4 lat temu update.php d01d7cf85d first commit 4 lat temu user.php d01d7cf85d first commit 4 lat temu vars.php d01d7cf85d first commit 4 lat temu version.php d01d7cf85d first commit 4 lat temu widgets.php d01d7cf85d first commit 4 lat temu wlwmanifest.xml d01d7cf85d first commit 4 lat temu wp-db.php d01d7cf85d first commit 4 lat temu wp-diff.php d01d7cf85d first commit 4 lat temu tum/whitesports - Gogs: Simplico Git Service

Nessuna descrizione

class-wp-list-table-compat.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * Helper functions for displaying a list of items in an ajaxified HTML table.
  4. *
  5. * @package WordPress
  6. * @subpackage List_Table
  7. * @since 4.7.0
  8. */
  9. /**
  10. * Helper class to be used only by back compat functions.
  11. *
  12. * @since 3.1.0
  13. */
  14. class _WP_List_Table_Compat extends WP_List_Table {
  15. public $_screen;
  16. public $_columns;
  17. /**
  18. * Constructor.
  19. *
  20. * @since 3.1.0
  21. *
  22. * @param string|WP_Screen $screen The screen hook name or screen object.
  23. * @param string[] $columns An array of columns with column IDs as the keys
  24. * and translated column names as the values.
  25. */
  26. public function __construct( $screen, $columns = array() ) {
  27. if ( is_string( $screen ) ) {
  28. $screen = convert_to_screen( $screen );
  29. }
  30. $this->_screen = $screen;
  31. if ( ! empty( $columns ) ) {
  32. $this->_columns = $columns;
  33. add_filter( 'manage_' . $screen->id . '_columns', array( $this, 'get_columns' ), 0 );
  34. }
  35. }
  36. /**
  37. * Gets a list of all, hidden, and sortable columns.
  38. *
  39. * @since 3.1.0
  40. *
  41. * @return array
  42. */
  43. protected function get_column_info() {
  44. $columns = get_column_headers( $this->_screen );
  45. $hidden = get_hidden_columns( $this->_screen );
  46. $sortable = array();
  47. $primary = $this->get_default_primary_column_name();
  48. return array( $columns, $hidden, $sortable, $primary );
  49. }
  50. /**
  51. * Gets a list of columns.
  52. *
  53. * @since 3.1.0
  54. *
  55. * @return array
  56. */
  57. public function get_columns() {
  58. return $this->_columns;
  59. }
  60. }