Changeset 47550 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r47219 r47550 182 182 */ 183 183 public function __get( $name ) { 184 if ( in_array( $name, $this->compat_fields ) ) {184 if ( in_array( $name, $this->compat_fields, true ) ) { 185 185 return $this->$name; 186 186 } … … 197 197 */ 198 198 public function __set( $name, $value ) { 199 if ( in_array( $name, $this->compat_fields ) ) {199 if ( in_array( $name, $this->compat_fields, true ) ) { 200 200 return $this->$name = $value; 201 201 } … … 211 211 */ 212 212 public function __isset( $name ) { 213 if ( in_array( $name, $this->compat_fields ) ) {213 if ( in_array( $name, $this->compat_fields, true ) ) { 214 214 return isset( $this->$name ); 215 215 } … … 224 224 */ 225 225 public function __unset( $name ) { 226 if ( in_array( $name, $this->compat_fields ) ) {226 if ( in_array( $name, $this->compat_fields, true ) ) { 227 227 unset( $this->$name ); 228 228 } … … 239 239 */ 240 240 public function __call( $name, $arguments ) { 241 if ( in_array( $name, $this->compat_methods ) ) {241 if ( in_array( $name, $this->compat_methods, true ) ) { 242 242 return $this->$name( ...$arguments ); 243 243 } … … 1134 1134 $class = array( 'manage-column', "column-$column_key" ); 1135 1135 1136 if ( in_array( $column_key, $hidden ) ) {1136 if ( in_array( $column_key, $hidden, true ) ) { 1137 1137 $class[] = 'hidden'; 1138 1138 } … … 1140 1140 if ( 'cb' === $column_key ) { 1141 1141 $class[] = 'check-column'; 1142 } elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ) ) ) {1142 } elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ), true ) ) { 1143 1143 $class[] = 'num'; 1144 1144 } … … 1330 1330 } 1331 1331 1332 if ( in_array( $column_name, $hidden ) ) {1332 if ( in_array( $column_name, $hidden, true ) ) { 1333 1333 $classes .= ' hidden'; 1334 1334 }
Note: See TracChangeset
for help on using the changeset viewer.