]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/list-table.php
WordPress 4.3
[autoinstalls/wordpress.git] / wp-admin / includes / list-table.php
index 2403ec859a2d55e087b225fbf4e554677f4baea2..97b4077e76b3cffc92a74402eabfd9e03d215821 100644 (file)
@@ -13,6 +13,8 @@
  * @access private
  * @since 3.1.0
  *
+ * @global string $hook_suffix
+ *
  * @param string $class The type of the list table, which is the class name.
  * @param array $args Optional. Arguments to pass to the class. Accepts 'screen'.
  * @return object|bool Object on success, false if the class does not exist.
@@ -84,10 +86,10 @@ function print_column_headers($screen, $id = true) {
  * @since 3.1.0
  */
 class _WP_List_Table_Compat extends WP_List_Table {
-       var $_screen;
-       var $_columns;
+       public $_screen;
+       public $_columns;
 
-       function _WP_List_Table_Compat( $screen, $columns = array() ) {
+       public function __construct( $screen, $columns = array() ) {
                if ( is_string( $screen ) )
                        $screen = convert_to_screen( $screen );
 
@@ -99,7 +101,12 @@ class _WP_List_Table_Compat extends WP_List_Table {
                }
        }
 
-       function get_column_info() {
+       /**
+        * @access protected
+        *
+        * @return array
+        */
+       protected function get_column_info() {
                $columns = get_column_headers( $this->_screen );
                $hidden = get_hidden_columns( $this->_screen );
                $sortable = array();
@@ -107,7 +114,12 @@ class _WP_List_Table_Compat extends WP_List_Table {
                return array( $columns, $hidden, $sortable );
        }
 
-       function get_columns() {
+       /**
+        * @access public
+        *
+        * @return array
+        */
+       public function get_columns() {
                return $this->_columns;
        }
 }