Skip to content

Translation function calls must not contain PHP variables.... #416

@shuvo247

Description

@shuvo247

RECOMMENDED: Possible variable $destination found in translation function in template-parts/common/category-bar.php. Translation function calls must not contain PHP variables, use placeholders instead. See Internationalization Guidelines (Opens in a new window).

Line 2: $destinations = get_terms(
Line 19: if ( ! empty( $destinations ) && is_array( $destinations ) ) {
Line 21: foreach ( $destinations as $destination ) { ?>
Line 24: $destination_info = get_term_meta( $destination->term_id, 'tourx_destinatio
Line 27: <a class='category-box' href='<?php echo esc_url( get_term_link( $destination ) ) ?>'>
Line 29: <img src='<?php echo $destination_info['destination_image']['url'] ?? ''?>' alt='<?php $destinat
Line 31: <?php if(!empty($destination->name)) : ?>
Line 32: <h5><?php echo __($destination->name) ?></h5>

How can I fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions