array { $changed_columns = [];foreach ( self::STRING_FIELDS as $input_key => $column ) { if ( \array_key_exists( $input_key, $input ) ) { $value = $input[ $input_key ]; $indexable->{$column} = ( $value === null || $value === '' ) ? null : (string) $value; $changed_columns[] = $column; } }foreach ( self::BOOLEAN_FIELDS as $input_key => $column ) { if ( \array_key_exists( $input_key, $input ) ) { $indexable->{$column} = (bool) $input[ $input_key ]; $changed_columns[] = $column; } }if ( \array_key_exists( 'noindex', $input ) ) { // Tri-state: null resets to the post-type default, true = noindex, false = index. $indexable->is_robots_noindex = ( $input['noindex'] === null ) ? null : (bool) $input['noindex']; $changed_columns[] = 'is_robots_noindex'; }return $changed_columns; } }