Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
mortezakarimi committed Jul 2, 2023
1 parent 642ece0 commit 5fc588c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/services/UserProfileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public static function showFilterShortcode( $attr ) {
<?= empty( $_GET['category'] ) ? 'selected' : '' ?>><?= __( 'All Categories', 'cbd-information-analyzer-textdomain' ) ?></option>
<?php foreach ( $categories as $category ): ?>
<option value="<?= esc_attr__( $category, 'cbd-information-analyzer-textdomain' ) ?>"
<?= esc_attr__( $category, 'cbd-information-analyzer-textdomain' ) == sanitize_text_field( $_GET['category'] ) ? 'selected' : '' ?>><?= $category ?></option>
<?= esc_attr__( $category, 'cbd-information-analyzer-textdomain' ) == sanitize_text_field( $_GET['category'] ?? '' ) ? 'selected' : '' ?>><?= esc_attr__( $category, 'cbd-information-analyzer-textdomain' ) ?></option>
<?php endforeach; ?>
</select>
</label>
Expand Down

0 comments on commit 5fc588c

Please sign in to comment.