Changeset 53868 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 08/09/2022 12:31:09 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r53502 r53868 1109 1109 protected function get_column_info() { 1110 1110 // $_column_headers is already set / cached. 1111 if ( isset( $this->_column_headers ) && is_array( $this->_column_headers ) ) { 1111 if ( 1112 isset( $this->_column_headers ) && 1113 is_array( $this->_column_headers ) 1114 ) { 1112 1115 /* 1113 1116 * Backward compatibility for `$_column_headers` format prior to WordPress 4.3. … … 1117 1120 * in plugins setting the property directly in the three item format. 1118 1121 */ 1122 if ( 4 === count( $this->_column_headers ) ) { 1123 return $this->_column_headers; 1124 } 1125 1119 1126 $column_headers = array( array(), array(), array(), $this->get_primary_column_name() ); 1120 1127 foreach ( $this->_column_headers as $key => $value ) { … … 1122 1129 } 1123 1130 1124 return $column_headers; 1131 $this->_column_headers = $column_headers; 1132 1133 return $this->_column_headers; 1125 1134 } 1126 1135
Note: See TracChangeset
for help on using the changeset viewer.